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:
parent
c97e808070
commit
bbd192aff9
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue