Exemple #1
0
 public override List <string> Apply(ColossoFighter User, ColossoFighter Target)
 {
     if (Global.RandomNumber(0, 100) <= Probability)
     {
         uint recovery = User.damageDoneThisTurn * Percentage / 100;
         return(User.Heal(recovery));
     }
     return(new List <string>());
 }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }