From 2371fdb343d7e4d314c0ea5c2e67b5aa49d72256 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 10 Aug 2022 09:34:23 -0400 Subject: [PATCH] fixed a crash --- Source/Game/Spells/Spell.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index 2ea0309cb..e088ac8b1 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -3037,7 +3037,7 @@ namespace Game.Spells { m_spellState = SpellState.Casting; // GameObjects shouldn't cast channeled spells - m_caster.ToUnit().AddInterruptMask(m_spellInfo.ChannelInterruptFlags, m_spellInfo.ChannelInterruptFlags2); + m_caster.ToUnit()?.AddInterruptMask(m_spellInfo.ChannelInterruptFlags, m_spellInfo.ChannelInterruptFlags2); } }