Added bouncing a crewed vehicle will uncrew it test

This commit is contained in:
Goesta 2017-02-14 21:24:53 +01:00
parent 5ece29e5d7
commit 338baa546e

View file

@ -81,4 +81,27 @@ public class CrewTest extends CardTestPlayerBase {
assertType("Smuggler's Copter", CardType.CREATURE, "Vehicle"); assertType("Smuggler's Copter", CardType.CREATURE, "Vehicle");
} }
@Test
public void testThatBouncingACrewedVehicleWillUncrewIt() {
addCard(Zone.BATTLEFIELD, playerA, "Smuggler's Copter", 1);
addCard(Zone.BATTLEFIELD, playerA, "Speedway Fanatic", 1);
addCard(Zone.BATTLEFIELD, playerA, "Island", 7);
addCard(Zone.HAND, playerA, "Evacuation", 1);
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Crew 1");
setChoice(playerA, "Speedway Fanatic");
// Return all creatures to there owners hands
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Evacuation");
// (Re)Cast Smugglers Copter
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Smuggler's Copter");
setStopAt(1, PhaseStep.BEGIN_COMBAT);
execute();
// Only crewed vehicles have card type creature
assertNotType("Smuggler's Copter", CardType.CREATURE);
}
} }