public override List <string> Apply(ColossoFighter user, ColossoFighter target) { target.AddCondition(Condition.Counter); return(new List <string>() { $"{target.Name} gets ready to strike back!" }); }
public override List <string> Apply(ColossoFighter user, ColossoFighter target) { List <string> log = new List <string>(); if (target.IsImmuneToConditions.Contains(Condition)) { return(log); } if (!target.IsAlive) { return(log); } if (Global.RandomNumber(0, 100) <= Probability) { target.AddCondition(Condition); log.Add($"{target.Name} gets hit with {Condition}!"); } return(log); }
public override List <string> Apply(ColossoFighter User, ColossoFighter Target) { List <string> log = new List <string>(); if (Target.isImmuneToConditions.Contains(Cond)) { return(log); } if (!Target.IsAlive) { return(log); } if (Global.Random.Next(1, 100) <= Probability) { Target.AddCondition(Cond); log.Add($"{Target.Name} gets hit with {Cond.ToString()}!"); } return(log); }