mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Core/Players: Fixed possible crash in cooldown handling
This commit is contained in:
@@ -22873,7 +22873,7 @@ void Player::AddGlobalCooldown(SpellEntry const *spellInfo, Spell *spell)
|
||||
|
||||
if (!(spellInfo->Attributes & (SPELL_ATTR0_UNK4|SPELL_ATTR0_PASSIVE)))
|
||||
cdTime *= GetFloatValue(UNIT_MOD_CAST_SPEED);
|
||||
else if (IsRangedWeaponSpell(spellInfo) && !spell->IsAutoRepeat())
|
||||
else if (IsRangedWeaponSpell(spellInfo) && spell && !spell->IsAutoRepeat())
|
||||
cdTime *= m_modAttackSpeedPct[RANGED_ATTACK];
|
||||
|
||||
if (cdTime > 1500.0f)
|
||||
|
||||
Reference in New Issue
Block a user