From 85f7edc3391555525caaebe0101f45f5f1c5d4bd Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 29 Aug 2021 18:46:18 -0400 Subject: [PATCH] Misc fixes. --- Source/Game/Spells/Auras/Aura.cs | 3 +++ Source/Game/Spells/SpellEffects.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Game/Spells/Auras/Aura.cs b/Source/Game/Spells/Auras/Aura.cs index 623a88cc6..46c95dd75 100644 --- a/Source/Game/Spells/Auras/Aura.cs +++ b/Source/Game/Spells/Auras/Aura.cs @@ -2721,6 +2721,9 @@ namespace Game.Spells if (effMask == 0) return; + if (!_staticApplications.ContainsKey(target.GetGUID())) + _staticApplications[target.GetGUID()] = 0; + _staticApplications[target.GetGUID()] |= effMask; } diff --git a/Source/Game/Spells/SpellEffects.cs b/Source/Game/Spells/SpellEffects.cs index 5d0b61bfa..efedb6e72 100644 --- a/Source/Game/Spells/SpellEffects.cs +++ b/Source/Game/Spells/SpellEffects.cs @@ -948,7 +948,7 @@ namespace Game.Spells if (unitTarget.HasAura(48920) && ((uint)(unitTarget.GetHealth() + (ulong)addhealth) >= unitTarget.GetMaxHealth())) unitTarget.RemoveAura(48920); - m_healing -= addhealth; + m_healing += addhealth; } [SpellEffectHandler(SpellEffectName.HealPct)]