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:
blinkysc 2026-02-19 14:25:35 -06:00 committed by GitHub
parent e54e280e60
commit 082147fc47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2287,8 +2287,7 @@ float Aura::CalcProcChance(SpellProcEntry const& procEntry, ProcEventInfo& event
uint32 attackSpeed = 0;
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
{