/** 手牌满时送回卡堆 */ @Test public void test逃跑_手牌满() { SkillTestContext context = prepare(50, 50, "秘银巨石像", "占位符+逃跑", "金属巨龙*5"); context.addToField(0, 0); context.addToField(1, 1); context.addToHand(2, 1); context.addToHand(3, 1); context.addToHand(4, 1); context.addToHand(5, 1); context.addToHand(6, 1); context.startGame(); context.proceedOneRound(); Assert.assertEquals(0, context.getPlayer(1).getField().size()); Assert.assertEquals(5, context.getPlayer(1).getHand().size()); Assert.assertEquals(1, context.getPlayer(1).getDeck().size()); }
@Test public void test圣盾_基本() { SkillTestContext context = prepare(50, 50, "秘银巨石像", "混元大师"); context.addToField(0, 0); CardInfo c混元大师 = context.addToHand(1, 1).setSummonDelay(0); context.startGame(); context.proceedOneRound(); context.proceedOneRound(); context.proceedOneRound(); Assert.assertEquals(0, 1690 - c混元大师.getHP()); // 被圣盾完全防御 context.proceedOneRound(); context.proceedOneRound(); Assert.assertEquals(660, 1690 - c混元大师.getHP()); // 圣盾只能用一次 }