*Try to fix the bug that creature does not regenerate after evade.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-09-02 12:46:26 -05:00
parent c150629f8d
commit 8efb15c52a
6 changed files with 9 additions and 17 deletions

View File

@@ -10509,7 +10509,7 @@ void Unit::SetInCombatState(bool PvP, Unit* enemy)
if(PvP)
m_CombatTimer = 5000;
if(isInCombat())
if(isInCombat() || hasUnitState(UNIT_STAT_EVADE))
return;
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IN_COMBAT);