aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-22 17:58:46 -0500
committermegamage <none@none>2009-04-22 17:58:46 -0500
commit3b49bfb1ff8fc7a275714fffc2494f767f287574 (patch)
tree9916063007efa26f95b4cffbfb7e7f4a92ec6c80 /src/game/Unit.cpp
parent3a316370b1bc71c68fda3b6d27a8373033e16d83 (diff)
[7697] Interrupt casting at enter to evade mode. Author: VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index eb8a6e919e7..887ef6993df 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -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