/** 骑士守护无法防御斩杀 */ @Test public void test骑士守护_斩杀() { SkillTestContext context = prepare(50, 50, "秘银巨石像+斩杀", "占位符+骑士守护"); context.addToField(0, 0); CardInfo c占位符 = context.addToField(1, 1); c占位符.setBasicHP(1000); context.startGame(); context.proceedOneRound(); Assert.assertTrue(c占位符.isDead()); }
/** 骑士守护无法减少燕返伤害 */ @Test public void test骑士守护_燕返() { SkillTestContext context = prepare(50, 50, "秘银巨石像+骑士守护", "魔剑士+燕返"); CardInfo c秘银巨石像 = context.addToField(0, 0); CardInfo c魔剑士 = context.addToField(1, 1); c魔剑士.setBasicHP(2); context.startGame(); context.proceedOneRound(); Assert.assertEquals(275 * 2 /* 燕返伤害无法被减免 */, 1550 - c秘银巨石像.getHP()); }
/* * 水流护甲无法防御燕返 */ @Test public void test水流护甲_燕返() throws HeroDieSignal { SkillTestContext context = prepare(50, 50, "秘银巨石像+水流护甲1", "魔剑士+燕返"); CardInfo c秘银巨石像 = context.addToField(0, 0); CardInfo c魔剑士 = context.addToField(1, 1); c魔剑士.setBasicHP(1); context.getPlayer(1).setHP(100); context.startGame(); context.proceedOneRound(); Assert.assertTrue(c魔剑士.isDead()); Assert.assertEquals(100 /* 水流护甲面对燕返无效 */, context.getPlayer(1).getHP()); Assert.assertEquals(275 * 2, 1550 - c秘银巨石像.getHP()); }