aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-10 15:54:54 -0600
committermegamage <none@none>2008-12-10 15:54:54 -0600
commit22c7db127886c9c24c7eef0ce1640c323b01ef35 (patch)
treef0332ce5a64448b51ebcdc55e54fbb2eee7f0ce4
parent5a378392504b7c1ac6d21c97a7203bd2b51db04a (diff)
*Fix a bug that makes creatures stunned/rooted forever.
--HG-- branch : trunk
-rw-r--r--src/game/Unit.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index ec3f687f0e6..81e6fa521b0 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -12678,13 +12678,13 @@ void Unit::SetControlled(bool apply, UnitState state)
switch(state)
{
case UNIT_STAT_STUNNED: if(HasAuraType(SPELL_AURA_MOD_STUN)) return;
- else(SetStunned(false));
+ else SetStunned(false); break;
case UNIT_STAT_ROOT: if(HasAuraType(SPELL_AURA_MOD_ROOT)) return;
- else(SetRooted(false));
+ else SetRooted(false); break;
case UNIT_STAT_CONFUSED:if(HasAuraType(SPELL_AURA_MOD_CONFUSE)) return;
- else(SetConfused(false));
+ else SetConfused(false); break;
case UNIT_STAT_FLEEING: if(HasAuraType(SPELL_AURA_MOD_FEAR)) return;
- else(SetFeared(false));
+ else SetFeared(false); break;
default: return;
}