mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
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:
co-authored by
blinkysc
ariel-
Shauren
parent
c97e808070
commit
bbd192aff9
@@ -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