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:
@@ -22832,7 +22832,7 @@ bool Player::HasGlobalCooldown(SpellEntry const *spellInfo) const
|
||||
|
||||
void Player::RemoveGlobalCooldown(SpellEntry const *spellInfo)
|
||||
{
|
||||
if (!spellInfo)
|
||||
if (!spellInfo || !spellInfo->StartRecoveryTime)
|
||||
return;
|
||||
|
||||
m_globalCooldowns[spellInfo->StartRecoveryCategory] = 0;
|
||||
|
||||
Reference in New Issue
Block a user