mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
[7365] Implement potion in combat delay proper work. Author: VladimirMangos
Original patch provided by miranda.conrado. --HG-- branch : trunk
This commit is contained in:
@@ -9476,6 +9476,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();
|
||||
|
||||
if(GetTypeId() != TYPEID_PLAYER && ((Creature*)this)->isPet())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user