* Correctly set SPELLMOD_COOLDOWN for pet cooldowns. By pasdVn.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2009-08-17 14:36:36 +02:00
parent d8554f60be
commit 798ff48c59

View File

@@ -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);