diff options
author | ariel- <ariel-@users.noreply.github.com> | 2017-02-07 17:34:42 -0300 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2017-02-07 17:34:42 -0300 |
commit | 3a65c706572ea0d0b66b9b79a275f8d230f7991d (patch) | |
tree | f140048fad503754ef4ba4e9a60d82a616f3e2df /src | |
parent | d550ba73927350c3f79ff6804609cf2f5d368987 (diff) |
Core/Spell: properly add SPELLMOD_COOLDOWN to spells without initial cooldown
Closes #15605
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Spells/SpellHistory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellHistory.cpp b/src/server/game/Spells/SpellHistory.cpp index de7414a66d7..a3c30f02329 100644 --- a/src/server/game/Spells/SpellHistory.cpp +++ b/src/server/game/Spells/SpellHistory.cpp @@ -308,10 +308,10 @@ void SpellHistory::StartCooldown(SpellInfo const* spellInfo, uint32 itemId, Spel // Now we have cooldown data (if found any), time to apply mods if (Player* modOwner = _owner->GetSpellModOwner()) { - if (cooldown > 0) + if (cooldown >= 0) modOwner->ApplySpellMod<SPELLMOD_COOLDOWN>(spellInfo->Id, cooldown, spell); - if (categoryCooldown > 0 && !spellInfo->HasAttribute(SPELL_ATTR6_IGNORE_CATEGORY_COOLDOWN_MODS)) + if (categoryCooldown >= 0 && !spellInfo->HasAttribute(SPELL_ATTR6_IGNORE_CATEGORY_COOLDOWN_MODS)) modOwner->ApplySpellMod<SPELLMOD_COOLDOWN>(spellInfo->Id, categoryCooldown, spell); } |