* Bushido - Fixed that it triggerd wrongly for each blocker instead of only once if blocked.

This commit is contained in:
LevelX2 2018-02-04 21:13:07 +01:00
parent 0044c9df78
commit 88d4e2b965
2 changed files with 54 additions and 9 deletions

View file

@ -46,4 +46,24 @@ public class BushidoTest extends CardTestPlayerBase {
assertPermanentCount(playerB, "Elite Vanguard", 0);
}
/**
* Tests boosting on double block, it may only trigger once
*/
@Test
public void testMultipleBlocker() {
addCard(Zone.BATTLEFIELD, playerA, "Llanowar Elves", 1);
addCard(Zone.BATTLEFIELD, playerA, "Quirion Elves", 1);
addCard(Zone.BATTLEFIELD, playerB, "Isao, Enlightened Bushi"); // 2/1 Bushido 2
attack(2, playerB, "Isao, Enlightened Bushi");
block(2, playerA, "Llanowar Elves", "Isao, Enlightened Bushi");
block(2, playerA, "Quirion Elves", "Isao, Enlightened Bushi");
setStopAt(2, PhaseStep.END_COMBAT);
execute();
assertPowerToughness(playerB, "Isao, Enlightened Bushi", 4, 3);
assertPermanentCount(playerA, "Llanowar Elves", 0);
assertPermanentCount(playerA, "Quirion Elves", 0);
}
}