From d550424090b2f8533c0accc6d9bf2a010f513c6f Mon Sep 17 00:00:00 2001 From: Foereaper Date: Tue, 24 Mar 2015 22:48:54 +0100 Subject: [PATCH] Fix Mangos build --- UnitMethods.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/UnitMethods.h b/UnitMethods.h index f5c1da0..0656ea4 100644 --- a/UnitMethods.h +++ b/UnitMethods.h @@ -1741,7 +1741,9 @@ 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); -#else +#elif MANGOS + unit->SendAttackStateUpdate(HITINFO_NORMALSWING2, target, 1, SPELL_SCHOOL_MASK_NORMAL, damage, 0, 0, VICTIMSTATE_NORMAL, 0); +#elif CMANGOS unit->SendAttackStateUpdate(HITINFO_NORMALSWING2, target, SPELL_SCHOOL_MASK_NORMAL, damage, 0, 0, VICTIMSTATE_NORMAL, 0); #endif return 0; @@ -1777,7 +1779,9 @@ 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); -#else +#elif MANGOS + unit->SendAttackStateUpdate(HITINFO_NORMALSWING2, target, 1, schoolmask, damage, absorb, resist, VICTIMSTATE_NORMAL, 0); +#elif CMANGOS unit->SendAttackStateUpdate(HITINFO_NORMALSWING2, target, schoolmask, damage, absorb, resist, VICTIMSTATE_NORMAL, 0); #endif return 0;