refactor(Core/Spells): remove defensive DamageInfo guard in PPM calc (#24763)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
@@ -2287,7 +2287,6 @@ float Aura::CalcProcChance(SpellProcEntry const& procEntry, ProcEventInfo& event
|
|||||||
uint32 attackSpeed = 0;
|
uint32 attackSpeed = 0;
|
||||||
if (!procSpell || procSpell->DmgClass == SPELL_DAMAGE_CLASS_MELEE || procSpell->IsRangedWeaponSpell())
|
if (!procSpell || procSpell->DmgClass == SPELL_DAMAGE_CLASS_MELEE || procSpell->IsRangedWeaponSpell())
|
||||||
{
|
{
|
||||||
if (eventInfo.GetDamageInfo())
|
|
||||||
attackSpeed = caster->GetAttackTime(eventInfo.GetDamageInfo()->GetAttackType());
|
attackSpeed = caster->GetAttackTime(eventInfo.GetDamageInfo()->GetAttackType());
|
||||||
}
|
}
|
||||||
else // spells use their cast time for PPM calculations
|
else // spells use their cast time for PPM calculations
|
||||||
|
|||||||
Reference in New Issue
Block a user