mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
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()->SaveStayPosition(true);
|
||||
|
||||
AddSpellCooldown(tempspell, 0, spellInfo->IsCooldownStartedOnEvent() ? infinityCooldownDelay : 0);
|
||||
|
||||
CastSpell(tempspellTarget, tempspell, false);
|
||||
m_tempspell = 0;
|
||||
m_tempspellTarget = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user