public static ICard SpellMagic(FightState gameState)
        {
            if (ClashEngine.Instance.LocalPlayer == null)
            {
                return(null);
            }
            Spells = CardClassifying.Troop;

            CardTypeOld cardTypeToPlay = ChooseCardType(gameState);

            switch (cardTypeToPlay)
            {
            case CardTypeOld.All:
                return(AllSpellDecision());

            case CardTypeOld.Defense:
                return(DefenseSpellDecision());

            case CardTypeOld.Troop:
                return(DefenseTroopSpellDecision());

            case CardTypeOld.Buildings:
                return(BuildingsSpellDecision());

            case CardTypeOld.NONE:
                return(null);
            }
            return(null);
        }
Esempio n. 2
0
        private static Handcard SpellMagic(Playfield p, FightState currentSituation)
        {
            CardTypeOld cardTypeToPlay = ChooseCardType(currentSituation);

            switch (cardTypeToPlay)
            {
            case CardTypeOld.All:
                return(All(p));

            case CardTypeOld.Defense:
                return(Defense(p));

            case CardTypeOld.Troop:
                return(DefenseTroop(p));

            case CardTypeOld.Buildings:
                return(Building(p));

            case CardTypeOld.NONE:
                return(null);
            }
            return(null);
        }