Core/Players: Don't remove GCD from category if the respective spell doesn't have GCD-time. Fixes certain exploits related to macro's and wands.

Fixes #10
Fixes #220

Any further issues of the same nature should be reported in different tickets.

Signed-off-by: Machiavelli <[email protected]>
This commit is contained in:
seirge
2011-02-17 21:55:15 +01:00
committed by Machiavelli
parent 6618655d04
commit 8003f75781
+1 -1
View File
@@ -22832,7 +22832,7 @@ bool Player::HasGlobalCooldown(SpellEntry const *spellInfo) const
void Player::RemoveGlobalCooldown(SpellEntry const *spellInfo) void Player::RemoveGlobalCooldown(SpellEntry const *spellInfo)
{ {
if (!spellInfo) if (!spellInfo || !spellInfo->StartRecoveryTime)
return; return;
m_globalCooldowns[spellInfo->StartRecoveryCategory] = 0; m_globalCooldowns[spellInfo->StartRecoveryCategory] = 0;