fix: Fixes casting by sending ParalyzeFlag to client while animating (#1397)

This commit is contained in:
mark1145 2023-04-28 16:12:07 +10:00 • committed by GitHub
parent ba4c4627c3
commit 55dc4a7da5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 17 deletions

View file

@ -33,6 +33,7 @@ public interface IHued
public interface ISpell
{
bool BlocksMovement { get; }
bool IsCasting { get; }
void OnCasterHurt();
void OnCasterKilled();

View file

@ -6959,7 +6959,7 @@ public class Mobile : IHued, IComparable<Mobile>, ISpawnable, IObjectPropertyLis
{
var flags = 0x0;
if (m_Paralyzed || m_Frozen)
if (m_Paralyzed || m_Frozen || m_Spell?.BlocksMovement == true)
{
flags |= 0x01;
}