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)))
|
if (!(spellInfo->Attributes & (SPELL_ATTR0_UNK4|SPELL_ATTR0_PASSIVE)))
|
||||||
cdTime *= GetFloatValue(UNIT_MOD_CAST_SPEED);
|
cdTime *= GetFloatValue(UNIT_MOD_CAST_SPEED);
|
||||||
else if (IsRangedWeaponSpell(spellInfo) && !spell->IsAutoRepeat())
|
else if (IsRangedWeaponSpell(spellInfo) && spell && !spell->IsAutoRepeat())
|
||||||
cdTime *= m_modAttackSpeedPct[RANGED_ATTACK];
|
cdTime *= m_modAttackSpeedPct[RANGED_ATTACK];
|
||||||
|
|
||||||
if (cdTime > 1500.0f)
|
if (cdTime > 1500.0f)
|
||||||
|
|||||||
Reference in New Issue
Block a user