public override List <string> Apply(ColossoFighter User, ColossoFighter Target) { if (Global.Random.Next(0, 100) <= probability) { uint recovery = User.damageDoneThisTurn * percentage / 100; return(User.RestorePP(recovery)); } return(new List <string>()); }
public override List <string> Apply(ColossoFighter User, ColossoFighter Target) { var log = new List <string>(); int Power = (int)(User.ElStats.GetPower(Element) * User.MultiplyBuffs("Power")); var HPtoHeal = (uint)(HealPower * Power / 100 + Target.Stats.MaxHP * Percentage / 100); if (HPtoHeal > 0) { log.AddRange(Target.Heal(HPtoHeal)); } var PPToHeal = (uint)(PPHeal * Power / 100 + Target.Stats.MaxPP * PPPercent / 100); if (PPToHeal > 0) { log.AddRange(Target.RestorePP(PPToHeal)); } if (User is PlayerFighter p) { p.battleStats.HPhealed += HPtoHeal; } return(log); }