Пример #1
0
        private static bool HasFreeHands(Mobile m)
        {
            Item item = m.FindItemOnLayer(Layer.OneHanded);

            if (item != null && !(item is Spellbook) && !(item.AllowEquippedCast(m)))
            {
                return(false);
            }

            Item twoHanded = m.FindItemOnLayer(Layer.TwoHanded);

            return(twoHanded == null || twoHanded.AllowEquippedCast(m));
        }