fix(Core/Pets): Add cooldown on spell cast if pet initially was out of range or not in LoS. (#9539)

Fixes #8425
This commit is contained in:
UltraNix
2021-12-12 03:01:21 +01:00
committed by GitHub
parent 0e15d10633
commit 6cc1d1a497

View File

@@ -490,6 +490,8 @@ void Pet::Update(uint32 diff)
GetCharmInfo()->SetIsReturning(false);
GetCharmInfo()->SaveStayPosition(true);
AddSpellCooldown(tempspell, 0, spellInfo->IsCooldownStartedOnEvent() ? infinityCooldownDelay : 0);
CastSpell(tempspellTarget, tempspell, false);
m_tempspell = 0;
m_tempspellTarget = nullptr;