mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
add Jhoira Weatherlight Captain + tests
This commit is contained in:
parent
7344a15a9b
commit
bd4b5f6300
3 changed files with 64 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue