aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMrSmite <MrSmite@users.noreply.github.com>2014-11-14 16:38:12 -0500
committerNayd <dnpd.dd@gmail.com>2014-12-27 13:58:06 +0000
commit584672556c5d485b93ff805f52be548a813581ab (patch)
treecd1165ae08a4d2c092867f5d658e92c7e686237e /src
parentcf893351773c9193b4860a9c54e825f2138773a4 (diff)
Fix spell cooldown for guardian pets
(cherry picked from commit 54cc8adac5db101f427b76373ce79d587f7e5332)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Spell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index 66e67d0f09e..9daf32188df 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -3555,7 +3555,7 @@ void Spell::SendSpellCooldown()
{
// Handle pet cooldowns here if needed instead of in PetAI to avoid hidden cooldown restarts
Creature* _creature = m_caster->ToCreature();
- if (_creature && _creature->IsPet())
+ if (_creature && (_creature->IsPet() || _creature->IsGuardian()))
_creature->AddCreatureSpellCooldown(m_spellInfo->Id);
return;