mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
*Try to fix the bug that creature does not regenerate after evade.
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user