コード例 #1
0
ファイル: Fists.cs プロジェクト: zerodowned/UO-Forever
        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));
        }