Core/Auras: Fixed stacking SPELL_AURA_MOD_CRIT_DAMAGE_BONUS with SPELLMOD_CRIT_DAMAGE_BONUS

Port From (https://github.com/TrinityCore/TrinityCore/commit/22d6ea3620def585c07262d1700d6f67e95eb103)
This commit is contained in:
hondacrx
2021-02-02 10:15:31 -05:00
parent c96fc90f5b
commit 3234d5c42c
+4 -7
View File
@@ -2176,13 +2176,10 @@ namespace Game.Entities
crit_bonus -= (int)damage;
if (damage > crit_bonus)
{
// adds additional damage to critBonus (from talents)
Player modOwner = GetSpellModOwner();
if (modOwner != null)
modOwner.ApplySpellMod(spellProto.Id, SpellModOp.CritDamageBonus, ref crit_bonus);
}
// adds additional damage to critBonus (from talents)
Player modOwner = GetSpellModOwner();
if (modOwner != null)
modOwner.ApplySpellMod(spellProto.Id, SpellModOp.CritDamageBonus, ref crit_bonus);
crit_bonus += (int)damage;