From b5af2546b578256e2758ee024999ae25e4a98d07 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 1 Dec 2008 16:33:50 -0600 Subject: [PATCH] *Remove AURA_INTERRUPT_FLAG_ATTACK auras only when melee attack but not combat start. --HG-- branch : trunk --- src/game/Unit.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 37c393fd39..f164a5ee89 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -512,6 +512,8 @@ void Unit::RemoveAurasWithInterruptFlags(uint32 flag, uint32 except) && (spell->m_spellInfo->ChannelInterruptFlags & flag) && spell->m_spellInfo->Id != except) InterruptNonMeleeSpells(false); + + UpdateInterruptMask(); } void Unit::UpdateInterruptMask() @@ -2779,6 +2781,7 @@ void Unit::AttackerStateUpdate (Unit *pVictim, WeaponAttackType attType, bool ex return; CombatStart(pVictim); + RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_ATTACK); uint32 hitInfo; if (attType == BASE_ATTACK) @@ -9766,8 +9769,6 @@ void Unit::CombatStart(Unit* target) if(Player* attackedPlayer = target->GetCharmerOrOwnerPlayerOrPlayerItself()) SetContestedPvP(attackedPlayer); - - RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_ATTACK); } void Unit::SetInCombatState(bool PvP)