예제 #1
0
 public override void doAction(Action cause, Card user, HearthstoneBoard board, List <Card> alwaysUse)
 {
     board.printDebugMessage("Performing action: deathrattlesummon: " + user, HearthstoneBoard.OutputPriority.EFFECTTRIGGERS);
     for (int i = 0; i < count; i++)
     {
         board.addNewMinionToBoard(board.getPlayerFromMinion(user), CardCreatorFactory.createGoldenFromName(summon).setAttackPriority(user.attackPriority), board.getPositionFromMinion(user) + i, true);
     }
 }
예제 #2
0
 public Card revive()
 {
     if (gold)
     {
         return(CardCreatorFactory.createGoldenFromName(card));
     }
     else
     {
         return(CardCreatorFactory.createFromName(card));
     }
 }
예제 #3
0
 public override void doAction(Action cause, Card user, HearthstoneBoard board, List <Card> alwaysUse)
 {
     board.printDebugMessage("Performing action: reborn: " + user.getReadableName(), HearthstoneBoard.OutputPriority.EFFECTTRIGGERS);
     if (golden)
     {
         board.addNewMinionToBoard(board.getPlayerFromMinion(user), CardCreatorFactory.createGoldenFromName(user.cardID).setHp(1).setAttackPriority(user.attackPriority).removeReborn(), board.getPositionFromMinion(user), true);
     }
     else
     {
         board.addNewMinionToBoard(board.getPlayerFromMinion(user), CardCreatorFactory.createFromName(user.cardID).setHp(1).setAttackPriority(user.attackPriority).removeReborn(), board.getPositionFromMinion(user), true);
     }
 }
예제 #4
0
        public static string testSelflessGolden(BoardSide b1, BoardSide b2, List <HearthstoneBoard> expected)
        {
            b1.Add(CardCreatorFactory.createGoldenFromName(CardCreatorFactory.Cards.SelflessHero));
            b1.Add(CardCreatorFactory.createFromName(CardCreatorFactory.Cards.Annoyomodule));
            b1.Add(CardCreatorFactory.createFromName(CardCreatorFactory.Cards.IronSensei));
            b2.Add(CardCreatorFactory.createFromName(CardCreatorFactory.Cards.IronSensei));
            b2.Add(CardCreatorFactory.createFromName(CardCreatorFactory.Cards.IronSensei));

            HearthstoneBoard exp1 = new HearthstoneBoard();

            exp1.p1Board = new BoardSide {
                CardCreatorFactory.createFromName(CardCreatorFactory.Cards.Annoyomodule).setDivineShield(false), CardCreatorFactory.createFromName(CardCreatorFactory.Cards.IronSensei).setDivineShield(true)
            };
            expected.Add(exp1);

            return("test golden selfless");
        }
 public override void doAction(Action cause, Card user, HearthstoneBoard board, List <Card> alwaysUse)
 {
     board.printDebugMessage("Performing action: overkillspawn: " + user.getReadableName(), HearthstoneBoard.OutputPriority.EFFECTTRIGGERS);
     board.addNewMinionToBoard(board.getPlayerFromMinion(user), CardCreatorFactory.createGoldenFromName(spawn).setAttackPriority(user.attackPriority), board.getPositionFromMinion(user), false);
 }