fix(Core/Spells): Properly handle pet spell auras with infinity cooldown. (#9576)
Fixes #9339
This commit is contained in:
parent
b1303e0e96
commit
4e70e60427
3 changed files with 34 additions and 13 deletions
|
|
@ -750,7 +750,10 @@ void WorldSession::HandlePetActionHelper(Unit* pet, ObjectGuid guid1, uint32 spe
|
|||
|
||||
if (result == SPELL_CAST_OK)
|
||||
{
|
||||
pet->ToCreature()->AddSpellCooldown(spellid, 0, spellInfo->IsCooldownStartedOnEvent() ? infinityCooldownDelay : 0);
|
||||
if (!spellInfo->IsCooldownStartedOnEvent())
|
||||
{
|
||||
pet->ToCreature()->AddSpellCooldown(spellid, 0, 0);
|
||||
}
|
||||
|
||||
unit_target = spell->m_targets.GetUnitTarget();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue