aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-01 16:33:50 -0600
committermegamage <none@none>2008-12-01 16:33:50 -0600
commitb5af2546b578256e2758ee024999ae25e4a98d07 (patch)
tree4005a386d243fe5bfc860a4612ed82bfbd6be5ab
parent27adb19eb86fd4d4b22439259014d5e39c104c03 (diff)
*Remove AURA_INTERRUPT_FLAG_ATTACK auras only when melee attack but not combat start.
--HG-- branch : trunk
-rw-r--r--src/game/Unit.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 37c393fd393..f164a5ee895 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)