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:
parent
0e15d10633
commit
6cc1d1a497
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue