public override List <string> Apply(ColossoFighter user, ColossoFighter target) { if (Global.RandomNumber(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); }