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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user