fix(Core/Spells): No SP bonus for DmgClass NONE without spell_bonus_data (#25468)

Co-authored-by: blinkysc <[email protected]>
Co-authored-by: ariel- <[email protected]>
Co-authored-by: Shauren <[email protected]>
This commit is contained in:
blinkysc
2026-04-14 17:16:39 -05:00
committed by GitHub
co-authored by blinkysc ariel- Shauren
parent c97e808070
commit bbd192aff9
+6
View File
@@ -8870,6 +8870,12 @@ uint32 Unit::SpellDamageBonusDone(Unit* victim, SpellInfo const* spellProto, uin
} }
} }
} }
else
{
// No bonus damage for SPELL_DAMAGE_CLASS_NONE class spells by default
if (spellProto->DmgClass == SPELL_DAMAGE_CLASS_NONE)
return uint32(std::max((float(pdamage) + DoneTotal) * DoneTotalMod, 0.0f));
}
// Default calculation // Default calculation
if (coeff && DoneAdvertisedBenefit) if (coeff && DoneAdvertisedBenefit)