mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7365] Implement potion in combat delay proper work.
Original patch provided by miranda.conrado.
This commit is contained in:
parent
2b10d8fd71
commit
de51363151
5 changed files with 45 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue