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); }
public override bool QueueAction(FightingEntity user, string[] splitCommand) { user.SetQueuedAction(this, new List <int> { GameManager.Instance.battleComponents.field.GetHeroPlayer().targetId }); return(true); }
public override bool QueueAction(FightingEntity user, string[] splitCommand) { List <int> targetIds = this.GetAllPossibleTargetIds(); user.SetQueuedAction(this, targetIds); return(true); }
public override bool QueueAction(FightingEntity user, string[] splitCommand) { user.SetQueuedAction(this, new List <int> { user.targetId }); return(true); }
public override bool QueueAction(FightingEntity user, string[] splitCommand) { // Can only use mana pot on Hero user.SetQueuedAction(this, new List <int> { 0 }); return(true); }