From 3234d5c42cf922e1f259c853153d032a29f51659 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 2 Feb 2021 10:15:31 -0500 Subject: [PATCH] Core/Auras: Fixed stacking SPELL_AURA_MOD_CRIT_DAMAGE_BONUS with SPELLMOD_CRIT_DAMAGE_BONUS Port From (https://github.com/TrinityCore/TrinityCore/commit/22d6ea3620def585c07262d1700d6f67e95eb103) --- Source/Game/Entities/Unit/Unit.Spells.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Source/Game/Entities/Unit/Unit.Spells.cs b/Source/Game/Entities/Unit/Unit.Spells.cs index 8cc733173..e6d108e5f 100644 --- a/Source/Game/Entities/Unit/Unit.Spells.cs +++ b/Source/Game/Entities/Unit/Unit.Spells.cs @@ -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;