mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
updated searching/shuffling interaction
This commit is contained in:
parent
607b554fac
commit
e03aaee4b6
29 changed files with 270 additions and 170 deletions
|
|
@ -0,0 +1,37 @@
|
|||
package org.mage.test.cards.events;
|
||||
|
||||
import mage.Constants;
|
||||
import mage.counters.CounterType;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class TestSearchShuffle extends CardTestPlayerBase {
|
||||
|
||||
|
||||
/**
|
||||
* even though Leonin Arbiter prevents searching, the library should still
|
||||
* get shuffled and Cosi's Trickster will still get a counter
|
||||
*/
|
||||
@Test
|
||||
public void testEvent() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Cosi's Trickster");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Leonin Arbiter");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Arid Mesa");
|
||||
|
||||
activateAbility(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "{T}, Pay 1 life");
|
||||
|
||||
setStopAt(1, Constants.PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 19);
|
||||
assertLife(playerB, 20);
|
||||
assertPermanentCount(playerA, "Arid Mesa", 0);
|
||||
assertPermanentCount(playerA, "Mountain", 0);
|
||||
assertPermanentCount(playerA, "Plains", 0);
|
||||
assertCounterCount("Cosi's Trickster", CounterType.P1P1, 1);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue