add Jhoira Weatherlight Captain + tests

This commit is contained in:
igoudt 2018-03-18 11:55:50 +01:00
parent 7344a15a9b
commit bd4b5f6300
3 changed files with 64 additions and 0 deletions

View file

@ -5,6 +5,8 @@ import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
import javax.ws.rs.POST;
public class SimpleDominariaCards extends CardTestPlayerBase {
@Test
@ -84,4 +86,28 @@ public class SimpleDominariaCards extends CardTestPlayerBase {
assertPowerToughness(playerA, "Knight of Grace", 3, 2);
}
@Test
public void jhoiraCastHistoric(){
addCard(Zone.BATTLEFIELD, playerA, "Jhoira, Weatherlight Captain");
addCard(Zone.HAND, playerA, "Ornithopter");
addCard(Zone.LIBRARY, playerA, "Forest", 10);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Ornithopter");
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
execute();
assertHandCount(playerA, 1);
}
@Test
public void jhoiraCastNonHistoric(){
addCard(Zone.BATTLEFIELD, playerA, "Jhoira, Weatherlight Captain");
addCard(Zone.HAND, playerA, "Giant Growth");
addCard(Zone.BATTLEFIELD, playerA, "Forest", 2);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Giant Growth", "Jhoira, Weatherlight Captain");
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
execute();
assertHandCount(playerA, 0);
}
}