Example #1
0
        public static int CanFightPvP(this GameDeck deck)
        {
            var power = deck.GetDeckPower();

            if (power > deck.GetMaxDeckPower())
            {
                return(1);
            }
            if (power < deck.GetMinDeckPower())
            {
                return(-1);
            }
            return(0);
        }
Example #2
0
 public static bool CanFightPvP(this GameDeck deck) =>
 deck.GetMaxDeckPower() >= deck.GetDeckPower();