diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/CrewTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/CrewTest.java index 74c545302e..4d9e6c830e 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/CrewTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/CrewTest.java @@ -81,4 +81,27 @@ public class CrewTest extends CardTestPlayerBase { 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); + } + }