/// <returns></returns>
public virtual bool OnCasterMoving(Direction d)
{
if (IsCasting && BlocksMovement && (!(m_Caster is BaseCreature) || ((BaseCreature)m_Caster).FreezeOnCast))
{
m_Caster.SendLocalizedMessage(500111); // You are frozen and can not move.
return false;
}
return true;
}
/// <summary>
/// Post ML code where player is frozen in place while casting.
/// </summary>
/// <param name="caster"></param>
/// <returns></returns>
public virtual bool CheckMovement(Mobile caster)
{
if (IsCasting && BlocksMovement && (!(m_Caster is BaseCreature) || ((BaseCreature)m_Caster).FreezeOnCast))
{
return false;
}
return true;
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.