Global cooldown for players should never exceed 1,5 seconds. Fixes issue #1998

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-05-13 00:37:43 +02:00
parent a3a8e6da2c
commit 5d70f62c07
+3
View File
@@ -22271,6 +22271,9 @@ void Player::AddGlobalCooldown(SpellEntry const *spellInfo, Spell *spell)
else if (IsRangedWeaponSpell(spellInfo) && !spell->IsAutoRepeat())
cdTime *= m_modAttackSpeedPct[RANGED_ATTACK];
if (cdTime > 1500.0f)
cdTime = 1500.0f;
ApplySpellMod(spellInfo->Id, SPELLMOD_GLOBAL_COOLDOWN, cdTime, spell);
if (cdTime > 0)
m_globalCooldowns[spellInfo->StartRecoveryCategory] = uint32(cdTime);