From 4242c446c8453596a891e869ab9ce88cbf371b80 Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Fri, 28 Apr 2023 20:44:30 -0700 Subject: [PATCH] fix: Creates an override for disabling cast paralyze (#1398) --- Projects/Server/Mobiles/Mobile.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Projects/Server/Mobiles/Mobile.cs b/Projects/Server/Mobiles/Mobile.cs index 33504bed9..39c8277bd 100644 --- a/Projects/Server/Mobiles/Mobile.cs +++ b/Projects/Server/Mobiles/Mobile.cs @@ -230,6 +230,13 @@ public class Mobile : IHued, IComparable, ISpawnable, IObjectPropertyLis " (Order)" }; + private static bool _disableCastParalyze = true; + + public static void Configure() + { + _disableCastParalyze = ServerConfiguration.GetSetting("spellCasting.disableCastParalyze", true); + } + private List _actions; private AccessLevel m_AccessLevel; @@ -6959,7 +6966,7 @@ public class Mobile : IHued, IComparable, ISpawnable, IObjectPropertyLis { var flags = 0x0; - if (m_Paralyzed || m_Frozen || m_Spell?.BlocksMovement == true) + if (m_Paralyzed || m_Frozen || _disableCastParalyze && m_Spell?.BlocksMovement == true) { flags |= 0x01; }