Skip to content

Commit 0377c75

Browse files
author
demilich
committed
Added test case for Cone of Cold bug
1 parent cdf4ad9 commit 0377c75

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

game/src/test/java/net/demilich/metastone/tests/CardInteractionTests.java

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,5 +366,25 @@ public void testHauntedCreeperHarvestGolem() {
366366
}
367367
}
368368
}
369-
369+
370+
@Test
371+
public void testImpGangBossConeOfCold() {
372+
GameContext context = createContext(HeroClass.MAGE, HeroClass.WARRIOR);
373+
Player player = context.getPlayer1();
374+
Player opponent = context.getPlayer2();
375+
376+
context.endTurn();
377+
Minion firstYeti = playMinionCard(context, opponent, (MinionCard) CardCatalogue.getCardById("minion_chillwind_yeti"));
378+
Minion impGangBoss = playMinionCard(context, opponent, (MinionCard) CardCatalogue.getCardById("minion_imp_gang_boss"));
379+
Minion secondYeti = playMinionCard(context, opponent, (MinionCard) CardCatalogue.getCardById("minion_chillwind_yeti"));
380+
Assert.assertEquals(opponent.getMinions().size(), 3);
381+
context.endTurn();
382+
383+
playCardWithTarget(context, player, CardCatalogue.getCardById("spell_cone_of_cold"), impGangBoss);
384+
Assert.assertEquals(opponent.getMinions().size(), 4);
385+
Assert.assertTrue(firstYeti.hasAttribute(Attribute.FROZEN));
386+
Assert.assertTrue(impGangBoss.hasAttribute(Attribute.FROZEN));
387+
Assert.assertFalse(secondYeti.hasAttribute(Attribute.FROZEN));
388+
}
370389
}
390+

0 commit comments

Comments
 (0)