mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
added UT, fix small bug on Hour of Revelation
This commit is contained in:
parent
1f59818515
commit
b573d72883
4 changed files with 102 additions and 2 deletions
|
|
@ -0,0 +1,33 @@
|
|||
package org.mage.test.cards.single.hou;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
public class BontusLastReckoningTest extends CardTestPlayerBase {
|
||||
|
||||
private String reckoning = "Bontu's Last Reckoning";
|
||||
|
||||
@Test
|
||||
public void testDelayedUntap(){
|
||||
String pouncer = "Adorned Pouncer";
|
||||
String angel = "Angel of Condemnation";
|
||||
addCard(Zone.HAND, playerA, reckoning);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 4);
|
||||
addCard(Zone.BATTLEFIELD, playerA, pouncer);
|
||||
addCard(Zone.BATTLEFIELD, playerB, angel);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Island");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN,playerA, reckoning);
|
||||
|
||||
setStopAt(3, PhaseStep.PRECOMBAT_MAIN);
|
||||
|
||||
execute();
|
||||
|
||||
assertTappedCount("Swamp", true, 3);
|
||||
assertTappedCount("Island", false, 1);
|
||||
assertGraveyardCount(playerA, pouncer, 1);
|
||||
assertGraveyardCount(playerB, angel, 1);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package org.mage.test.cards.single.hou;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
public class ChampionOfWitsTest extends CardTestPlayerBase {
|
||||
|
||||
|
||||
private final String champion = "Champion of Wits";
|
||||
|
||||
@Test
|
||||
public void testEternalize(){
|
||||
addCard(Zone.GRAVEYARD, playerA, champion);
|
||||
addCard(Zone.BATTLEFIELD,playerA, "Island", 10);
|
||||
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA,"Eternalize {5}{U}{U}");
|
||||
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
|
||||
execute();
|
||||
assertHandCount(playerA, 2);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEternalizeWithAnthem(){
|
||||
String anthem = "Glorious Anthem";
|
||||
addCard(Zone.GRAVEYARD, playerA, champion);
|
||||
addCard(Zone.BATTLEFIELD,playerA, "Island", 10);
|
||||
addCard(Zone.BATTLEFIELD, playerA, anthem);
|
||||
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA,"Eternalize {5}{U}{U}");
|
||||
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
|
||||
execute();
|
||||
assertHandCount(playerA, 3);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
package org.mage.test.cards.single.hou;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
public class HourOfRevelationTest extends CardTestPlayerBase {
|
||||
|
||||
private final String hour = "Hour of Revelation";
|
||||
|
||||
@Test
|
||||
public void testCountAllPlayers() {
|
||||
addCard(Zone.HAND, playerA, hour, 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 6);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Grizzly Bears", 5);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Grizzly Bears", 5);
|
||||
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, hour);
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertTappedCount("Plains", true, 3);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue