From c8964bd4207e7a4803bdeb5efbf406a1486993f9 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 7 Sep 2022 15:40:03 -0400 Subject: [PATCH] Scripts/Spells: Fixed crash in spell_pri_atonement Port From (https://github.com/TrinityCore/TrinityCore/commit/0f09fc355aea4745b711e4c2ba4dfdb731453f1f) --- Source/Scripts/Spells/Priest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Scripts/Spells/Priest.cs b/Source/Scripts/Spells/Priest.cs index 91da07a30..d9d2ff992 100644 --- a/Source/Scripts/Spells/Priest.cs +++ b/Source/Scripts/Spells/Priest.cs @@ -256,7 +256,7 @@ namespace Scripts.Spells.Priest foreach (uint effectIndex in new[] { 0, 1, 2 }) { - AuraEffect sinOfTheMany = GetTarget().GetAuraEffect(SpellIds.SinsOfTheMany, effectIndex); + AuraEffect sinOfTheMany = GetUnitOwner().GetAuraEffect(SpellIds.SinsOfTheMany, effectIndex); if (sinOfTheMany != null) sinOfTheMany.ChangeAmount((int)damageByStack[Math.Min(_appliedAtonements.Count, damageByStack.Length - 1)]); }