[7697] Interrupt casting at enter to evade mode. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-04-22 17:58:46 -05:00
1 parent 3a316370b1
commit 3b49bfb1ff
7 files changed
+15 -15

No files matched your search

+5 -5
View File
@@ -7845,9 +7845,9 @@ bool Unit::AttackStop()
return true;
}
void Unit::CombatStop(bool cast)
void Unit::CombatStop(bool includingCast)
{
if(cast && IsNonMeleeSpellCasted(false))
if (includingCast && IsNonMeleeSpellCasted(false))
InterruptNonMeleeSpells(false);
AttackStop();
@@ -7857,12 +7857,12 @@ void Unit::CombatStop(bool cast)
ClearInCombat();
}
void Unit::CombatStopWithPets(bool cast)
void Unit::CombatStopWithPets(bool includingCast)
{
CombatStop(cast);
CombatStop(includingCast);
for(ControlList::const_iterator itr = m_Controlled.begin(); itr != m_Controlled.end(); ++itr)
(*itr)->CombatStop(cast);
(*itr)->CombatStop(includingCast);
}
bool Unit::isAttackingPlayer() const