Fixed that creatures forced to attack that have to pay a cost to attack lock the UI (not completed for all existing cards yet).

This commit is contained in:
LevelX2 2015-07-01 02:00:07 +02:00
parent 5f5513f4ed
commit 15fe85c5da
13 changed files with 326 additions and 301 deletions

View file

@ -118,4 +118,26 @@ public class CantAttackTest extends CardTestPlayerBase {
assertCounterCount("Ajani Goldmane", CounterType.LOYALTY, 2);
}
@Test
public void testCowedByWisdom() {
addCard(Zone.BATTLEFIELD, playerA, "Plains", 1);
// Enchant creature
// Enchanted creature can't attack or block unless its controller pays {1} for each card in your hand.
addCard(Zone.HAND, playerA, "Cowed by Wisdom"); // Planeswalker 4 loyality counter
// Bushido 2 (When this blocks or becomes blocked, it gets +2/+2 until end of turn.)
// Battle-Mad Ronin attacks each turn if able.
addCard(Zone.BATTLEFIELD, playerB, "Battle-Mad Ronin");
addCard(Zone.HAND, playerA, "Mountain", 4);
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 2);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Cowed by Wisdom", "Battle-Mad Ronin");
setStopAt(2, PhaseStep.POSTCOMBAT_MAIN);
execute();
assertLife(playerA, 20);
assertTapped("Battle-Mad Ronin", false);
}
}