From aa0ec9a021de7b70322ea0d3a96765f8df779784 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 16 Nov 2017 12:46:06 -0500 Subject: [PATCH] Misc fix --- Source/Scripts/Northrend/IcecrownCitadel/LordMarrowgar.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Scripts/Northrend/IcecrownCitadel/LordMarrowgar.cs b/Source/Scripts/Northrend/IcecrownCitadel/LordMarrowgar.cs index 588497b4d..4ae0da0ec 100644 --- a/Source/Scripts/Northrend/IcecrownCitadel/LordMarrowgar.cs +++ b/Source/Scripts/Northrend/IcecrownCitadel/LordMarrowgar.cs @@ -521,8 +521,10 @@ namespace Scripts.Northrend.IcecrownCitadel if (target.HasAura(Spells.Impaled)) return false; - if (target.GetExactDist2d(GetOwner()) > GetSpellInfo().GetEffect(target.GetMap().GetDifficultyID(), 0).CalcRadius()) - return false; + SpellEffectInfo effect = GetSpellInfo().GetEffect(target.GetMap().GetDifficultyID(), 0); + if (effect != null) + if (target.GetExactDist2d(GetOwner()) > effect.CalcRadius()) + return false; Aura aur = target.GetAura(GetId()); if (aur != null)