aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2015-12-03 00:08:44 +0100
committerShauren <shauren.trinity@gmail.com>2015-12-03 00:08:44 +0100
commit9dde78716c0e51a9f43564c3bd9e26a2e83d3b9a (patch)
treee80cd21e3de419d26916a95802067e642872b416 /src
parentb512569258a3de5e5d83078cf05002b32b172a50 (diff)
Core/Spells: Extended .cheat cooldown command to also affect spells with charges
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Spell.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index 69bb1d19b73..183ed6d7392 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -3280,7 +3280,10 @@ void Spell::cast(bool skipCheck)
//Clear spell cooldowns after every spell is cast if .cheat cooldown is enabled.
if (m_caster->ToPlayer()->GetCommandStatus(CHEAT_COOLDOWN))
+ {
m_caster->GetSpellHistory()->ResetCooldown(m_spellInfo->Id, true);
+ m_caster->GetSpellHistory()->RestoreCharge(m_spellInfo->ChargeCategoryEntry);
+ }
}
SetExecutedCurrently(false);