fix: Creates an override for disabling cast paralyze (#1398)
This commit is contained in:
parent
55dc4a7da5
commit
4242c446c8
1 changed files with 8 additions and 1 deletions
|
|
@ -230,6 +230,13 @@ public class Mobile : IHued, IComparable<Mobile>, ISpawnable, IObjectPropertyLis
|
|||
" (Order)"
|
||||
};
|
||||
|
||||
private static bool _disableCastParalyze = true;
|
||||
|
||||
public static void Configure()
|
||||
{
|
||||
_disableCastParalyze = ServerConfiguration.GetSetting("spellCasting.disableCastParalyze", true);
|
||||
}
|
||||
|
||||
private List<object> _actions;
|
||||
private AccessLevel m_AccessLevel;
|
||||
|
||||
|
|
@ -6959,7 +6966,7 @@ public class Mobile : IHued, IComparable<Mobile>, 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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue