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:
@@ -2176,13 +2176,10 @@ namespace Game.Entities
|
|||||||
|
|
||||||
crit_bonus -= (int)damage;
|
crit_bonus -= (int)damage;
|
||||||
|
|
||||||
if (damage > crit_bonus)
|
// adds additional damage to critBonus (from talents)
|
||||||
{
|
Player modOwner = GetSpellModOwner();
|
||||||
// adds additional damage to critBonus (from talents)
|
if (modOwner != null)
|
||||||
Player modOwner = GetSpellModOwner();
|
modOwner.ApplySpellMod(spellProto.Id, SpellModOp.CritDamageBonus, ref crit_bonus);
|
||||||
if (modOwner != null)
|
|
||||||
modOwner.ApplySpellMod(spellProto.Id, SpellModOp.CritDamageBonus, ref crit_bonus);
|
|
||||||
}
|
|
||||||
|
|
||||||
crit_bonus += (int)damage;
|
crit_bonus += (int)damage;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user