Core/Spells: Take SPELLMOD_CRIT_DAMAGE_BONUS into account also for healing spells

Port From (https://github.com/TrinityCore/TrinityCore/commit/1d7590072c63151f7696f9003b6869f9000cb665)
This commit is contained in:
hondacrx
2021-03-08 13:38:03 -05:00
parent 7b5c65244c
commit cb25ddc507
+5
View File
@@ -397,6 +397,11 @@ namespace Game.Entities
// Calculate critical bonus
int crit_bonus = damage;
// adds additional damage to critBonus (from talents)
Player modOwner = GetSpellModOwner();
if (modOwner != null)
modOwner.ApplySpellMod(spellProto, SpellModOp.CritDamageBonus, ref crit_bonus);
damage += crit_bonus;
damage = (int)(damage * GetTotalAuraMultiplier(AuraType.ModCriticalHealingAmount));