From 082147fc47c21ab4c4632bd8254c396ddcc3e3f6 Mon Sep 17 00:00:00 2001 From: blinkysc <37940565+blinkysc@users.noreply.github.com> Date: Thu, 19 Feb 2026 14:25:35 -0600 Subject: [PATCH] refactor(Core/Spells): remove defensive DamageInfo guard in PPM calc (#24763) Co-authored-by: blinkysc --- src/server/game/Spells/Auras/SpellAuras.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp index bdab990fa..a6fa20e6c 100644 --- a/src/server/game/Spells/Auras/SpellAuras.cpp +++ b/src/server/game/Spells/Auras/SpellAuras.cpp @@ -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 {