mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
* Correctly set SPELLMOD_COOLDOWN for pet cooldowns. By pasdVn.
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user