public override List <string> Apply(ColossoFighter User, ColossoFighter Target) { List <string> log = new List <string>(); bool wasDead = !Target.IsAlive; log.AddRange(Target.Revive(Percentage)); if (wasDead) { if (User is PlayerFighter p) { p.battleStats.Revives++; } } return(log); }
public override List <string> Apply(ColossoFighter User, ColossoFighter Target) { List <string> log = new List <string>(); bool wasDead = !Target.IsAlive; if (Global.RandomNumber(0, 100) > Probability) { log.Add($"But it has no effect on {Target.Name}"); return(log); } log.AddRange(Target.Revive(Percentage)); if (wasDead) { if (User is PlayerFighter p) { p.battleStats.Revives++; } } return(log); }