[7365] Implement potion in combat delay proper work.

Original patch provided by miranda.conrado.
This commit is contained in:
VladimirMangos 2009-03-01 10:30:24 +03:00
parent 2b10d8fd71
commit de51363151
5 changed files with 45 additions and 1 deletions

View file

@ -8597,6 +8597,8 @@ void Unit::ClearInCombat()
// Player's state will be cleared in Player::UpdateContestedPvP
if(GetTypeId()!=TYPEID_PLAYER)
clearUnitState(UNIT_STAT_ATTACK_PLAYER);
else
((Player*)this)->UpdatePotionCooldown();
}
bool Unit::isTargetableForAttack() const