示例#1
0
        protected void UseItem(int slot, IEnumerable <Combatant> targets, bool releaseAlly = true)
        {
            Item item   = (Item)BattleState.Party.Inventory.GetItem(slot);
            Ally source = BattleState.Commanding;

            UseItemEvent e = new UseItemEvent(item, slot, source, targets, releaseAlly);

            BattleState.EnqueueAction(e);
        }