Exemple #1
0
        private static bool _cast(this ItemData.Item item, GameObject target)
        {
            var slot = item.GetItemSlot();

            return(slot != null && slot.SpellSlot != SpellSlot.Unknown && slot.SpellSlot.IsReady() &&
                   ObjectManager.Player.Spellbook.CastSpell(slot.SpellSlot, target));
        }
Exemple #2
0
        public static bool IsReady(this ItemData.Item item)
        {
            var slot = item.GetItemSlot();

            return(slot != null && slot.IsValidSlot() && slot.SpellSlot.IsReady());
        }
Exemple #3
0
        public static bool HasItem(this ItemData.Item item)
        {
            var slot = item.GetItemSlot();

            return(slot != null && slot.IsValidSlot());
        }