Ejemplo n.º 1
0
    public virtual bool QueueAction(FightingEntity user, string[] splitCommand)
    {
        if (targetInfo.targetType == TargetType.SINGLE && splitCommand.Length == 2)
        {
            int targetId = this.GetTargetIdFromString(splitCommand[1], user);
            user.SetQueuedAction(this, new List <int> {
                targetId
            });
        }
        else if (targetInfo.targetType == TargetType.ALL && splitCommand.Length == 1)
        {
            List <int> targetIds = GetAllPossibleActiveTargets(user).Map(target => target.targetId);
            user.SetQueuedAction(this, targetIds);
        }
        else if (targetInfo.targetType == TargetType.RANDOM && splitCommand.Length == 1)
        {
            user.SetQueuedAction(this, new List <int> {
            });
        }
        else if (targetInfo.targetType == TargetType.NONE && splitCommand.Length == 1)
        {
            user.SetQueuedAction(this, new List <int> {
            });
        }

        return(true);
    }
Ejemplo n.º 2
0
 public override bool QueueAction(FightingEntity user, string[] splitCommand)
 {
     user.SetQueuedAction(this, new List <int> {
         GameManager.Instance.battleComponents.field.GetHeroPlayer().targetId
     });
     return(true);
 }
Ejemplo n.º 3
0
    public override bool QueueAction(FightingEntity user, string[] splitCommand)
    {
        List <int> targetIds = this.GetAllPossibleTargetIds();

        user.SetQueuedAction(this, targetIds);
        return(true);
    }
Ejemplo n.º 4
0
 public override bool QueueAction(FightingEntity user, string[] splitCommand)
 {
     user.SetQueuedAction(this, new List <int> {
         user.targetId
     });
     return(true);
 }
Ejemplo n.º 5
0
 public override bool QueueAction(FightingEntity user, string[] splitCommand)
 {
     // Can only use mana pot on Hero
     user.SetQueuedAction(this, new List <int> {
         0
     });
     return(true);
 }