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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user