From f552a6edcdbca2da02a0293175c51c8758583999 Mon Sep 17 00:00:00 2001 From: Foereaper Date: Thu, 26 Mar 2015 14:39:36 +0100 Subject: [PATCH] Updated to match mangos --- UnitMethods.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/UnitMethods.h b/UnitMethods.h index 07fcbf5..f5c1da0 100644 --- a/UnitMethods.h +++ b/UnitMethods.h @@ -1741,9 +1741,7 @@ 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) - unit->SendAttackStateUpdate(HITINFO_NORMALSWING2, target, 1, SPELL_SCHOOL_MASK_NORMAL, damage, 0, 0, VICTIMSTATE_NORMAL, 0); -#elif defined(CMANGOS) +#else unit->SendAttackStateUpdate(HITINFO_NORMALSWING2, target, SPELL_SCHOOL_MASK_NORMAL, damage, 0, 0, VICTIMSTATE_NORMAL, 0); #endif return 0; @@ -1779,9 +1777,7 @@ 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) - unit->SendAttackStateUpdate(HITINFO_NORMALSWING2, target, 1, schoolmask, damage, absorb, resist, VICTIMSTATE_NORMAL, 0); -#elif defined(CMANGOS) +#else unit->SendAttackStateUpdate(HITINFO_NORMALSWING2, target, schoolmask, damage, absorb, resist, VICTIMSTATE_NORMAL, 0); #endif return 0;