Пример #1
0
        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);
        }
Пример #2
0
        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);
        }