mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
* Praetor's Grasp - fixed that it freeze the game after cast;
This commit is contained in:
parent
9a08ccda95
commit
2197d8ee4a
3 changed files with 40 additions and 15 deletions
|
|
@ -0,0 +1,34 @@
|
|||
package org.mage.test.cards.continuous;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* @author JayDi85
|
||||
*/
|
||||
public class PraetorsGraspTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void test_SimpleCast() {
|
||||
// Search target opponent’s library for a card and exile it face down. Then that player shuffles their library.
|
||||
// You may look at and play that card for as long as it remains exiled.
|
||||
addCard(Zone.HAND, playerA, "Praetor's Grasp", 1); // {1}{B}{B}
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 3);
|
||||
addCard(Zone.LIBRARY, playerB, "Mountain", 1);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Praetor's Grasp");
|
||||
addTarget(playerA, playerB);
|
||||
addTarget(playerA, "Mountain");
|
||||
|
||||
showAvaileableAbilities("after", 1, PhaseStep.POSTCOMBAT_MAIN, playerA);
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertGraveyardCount(playerA, "Praetor's Grasp", 1);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue