From 60952d2a7f8f1ef1d12c8f053893d97bfce55b06 Mon Sep 17 00:00:00 2001 From: Foereaper Date: Fri, 10 Apr 2015 02:17:23 +0200 Subject: [PATCH] Fix for Mangos One build This is temporary until SendAttackStateUpdate is updated on Mangos One+ --- UnitMethods.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UnitMethods.h b/UnitMethods.h index f5c1da0..fe39e4c 100644 --- a/UnitMethods.h +++ b/UnitMethods.h @@ -1741,6 +1741,8 @@ namespace LuaUnit unit->DealDamage(target, damage, NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, durabilityloss); #ifdef TRINITY unit->SendAttackStateUpdate(HITINFO_AFFECTS_VICTIM, target, 1, SPELL_SCHOOL_MASK_NORMAL, damage, 0, 0, VICTIMSTATE_HIT, 0); +#elif (defined(MANGOS) && defined(TBC)) + unit->SendAttackStateUpdate(HITINFO_NORMALSWING2, target, 1, SPELL_SCHOOL_MASK_NORMAL, damage, 0, 0, VICTIMSTATE_NORMAL, 0); #else unit->SendAttackStateUpdate(HITINFO_NORMALSWING2, target, SPELL_SCHOOL_MASK_NORMAL, damage, 0, 0, VICTIMSTATE_NORMAL, 0); #endif @@ -1777,6 +1779,8 @@ namespace LuaUnit unit->DealDamage(target, damage, NULL, DIRECT_DAMAGE, schoolmask, NULL, false); #ifdef TRINITY unit->SendAttackStateUpdate(HITINFO_AFFECTS_VICTIM, target, 1, schoolmask, damage, absorb, resist, VICTIMSTATE_HIT, 0); +#elif (defined(MANGOS) && defined(TBC)) + unit->SendAttackStateUpdate(HITINFO_NORMALSWING2, target, 1, schoolmask, damage, absorb, resist, VICTIMSTATE_NORMAL, 0); #else unit->SendAttackStateUpdate(HITINFO_NORMALSWING2, target, schoolmask, damage, absorb, resist, VICTIMSTATE_NORMAL, 0); #endif