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:
@@ -490,6 +490,8 @@ void Pet::Update(uint32 diff)
|
|||||||
GetCharmInfo()->SetIsReturning(false);
|
GetCharmInfo()->SetIsReturning(false);
|
||||||
GetCharmInfo()->SaveStayPosition(true);
|
GetCharmInfo()->SaveStayPosition(true);
|
||||||
|
|
||||||
|
AddSpellCooldown(tempspell, 0, spellInfo->IsCooldownStartedOnEvent() ? infinityCooldownDelay : 0);
|
||||||
|
|
||||||
CastSpell(tempspellTarget, tempspell, false);
|
CastSpell(tempspellTarget, tempspell, false);
|
||||||
m_tempspell = 0;
|
m_tempspell = 0;
|
||||||
m_tempspellTarget = nullptr;
|
m_tempspellTarget = nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user