aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-02-07 17:34:42 -0300
committerShauren <shauren.trinity@gmail.com>2019-06-15 18:41:09 +0200
commit248fd9691bc0f9302455d14c06b6554ff7d3d888 (patch)
treea724bf3da9bb07dff83faa7d33821489aceb5075
parent5291842a33ac535db351072a230e3da6e43123a7 (diff)
Core/Spell: properly add SPELLMOD_COOLDOWN to spells without initial cooldown
Closes #15605 (cherrypicked from 3a65c706572ea0d0b66b9b79a275f8d230f7991d)
-rw-r--r--src/server/game/Spells/SpellHistory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellHistory.cpp b/src/server/game/Spells/SpellHistory.cpp
index 989223c8b22..719ba44300e 100644
--- a/src/server/game/Spells/SpellHistory.cpp
+++ b/src/server/game/Spells/SpellHistory.cpp
@@ -420,10 +420,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(spellInfo->Id, SPELLMOD_COOLDOWN, 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(spellInfo->Id, SPELLMOD_COOLDOWN, categoryCooldown, spell);
}