From 88de69be28dd048892d382bfd78771fc6f04d8f5 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 5 Nov 2017 15:29:56 -0500 Subject: [PATCH] allow damage from periodics to trigger auras if they're not fully resisted/absorbed --- Source/Game/Spells/Auras/AuraEffect.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/Game/Spells/Auras/AuraEffect.cs b/Source/Game/Spells/Auras/AuraEffect.cs index 2856b74b1..037424c9a 100644 --- a/Source/Game/Spells/Auras/AuraEffect.cs +++ b/Source/Game/Spells/Auras/AuraEffect.cs @@ -5622,11 +5622,12 @@ namespace Game.Spells ProcFlags procAttacker = ProcFlags.DonePeriodic; ProcFlags procVictim = ProcFlags.TakenPeriodic; ProcFlagsHit hitMask = damageInfo.GetHitMask(); - if (hitMask == 0) - hitMask = crit ? ProcFlagsHit.Critical : ProcFlagsHit.Normal; if (damage != 0) + { + hitMask |= crit ? ProcFlagsHit.Critical : ProcFlagsHit.Normal; procVictim |= ProcFlags.TakenDamage; + } int overkill = (int)(damage - target.GetHealth()); if (overkill < 0) @@ -5716,11 +5717,12 @@ namespace Game.Spells ProcFlags procAttacker = ProcFlags.DonePeriodic; ProcFlags procVictim = ProcFlags.TakenPeriodic; ProcFlagsHit hitMask = damageInfo.GetHitMask(); - if (hitMask == 0) - hitMask = crit ? ProcFlagsHit.Critical : ProcFlagsHit.Normal; if (damage != 0) + { + hitMask |= crit ? ProcFlagsHit.Critical : ProcFlagsHit.Normal; procVictim |= ProcFlags.TakenDamage; + } if (caster.IsAlive()) caster.ProcSkillsAndAuras(target, procAttacker, procVictim, ProcFlagsSpellType.Damage, ProcFlagsSpellPhase.None, hitMask, null, damageInfo, null);