aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-08-17 14:36:36 +0200
committerMachiavelli <none@none>2009-08-17 14:36:36 +0200
commit798ff48c597eb267a450ebff41c8764d2c886345 (patch)
treee3caf8e992a8c3ec75cfbf314e06a3f122d2ab01
parentd8554f60be899230057643c4d133bd12c11bf34f (diff)
* Correctly set SPELLMOD_COOLDOWN for pet cooldowns. By pasdVn.
--HG-- branch : trunk
-rw-r--r--src/game/Creature.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 1fc31e8a93a..a9eb6041488 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -2356,6 +2356,9 @@ void Creature::AddCreatureSpellCooldown(uint32 spellid)
return;
uint32 cooldown = GetSpellRecoveryTime(spellInfo);
+ if(Player *modOwner = GetSpellModOwner())
+ modOwner->ApplySpellMod(spellid, SPELLMOD_COOLDOWN, cooldown);
+
if(cooldown)
_AddCreatureSpellCooldown(spellid, time(NULL) + cooldown/IN_MILISECONDS);