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

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
Co-authored-by: ariel- <ariel-@users.noreply.github.com>
Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
blinkysc 2026-04-14 17:16:39 -05:00 committed by GitHub
parent c97e808070
commit bbd192aff9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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
if (coeff && DoneAdvertisedBenefit)