mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
a few more getId fixes
This commit is contained in:
parent
2025bca358
commit
cf9a2f936a
5 changed files with 183 additions and 254 deletions
|
|
@ -0,0 +1,56 @@
|
|||
package org.mage.test.cards.single.eve;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public class SoulReapTest extends CardTestPlayerBase {
|
||||
private static final String reap = "Soul Reap";
|
||||
private static final String lion = "Silvercoat Lion";
|
||||
private static final String rats = "Muck Rats";
|
||||
|
||||
@Test
|
||||
public void t() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 3);
|
||||
addCard(Zone.BATTLEFIELD, playerA, lion);
|
||||
addCard(Zone.HAND, playerA, reap);
|
||||
addCard(Zone.HAND, playerA, rats);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, rats);
|
||||
castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerA, reap, lion);
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertPermanentCount(playerA, lion, 0);
|
||||
assertPermanentCount(playerA, rats, 1);
|
||||
assertGraveyardCount(playerA, lion, 1);
|
||||
assertGraveyardCount(playerA, reap, 1);
|
||||
assertLife(playerA, 20 - 3);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void t2() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 2);
|
||||
addCard(Zone.BATTLEFIELD, playerA, lion);
|
||||
addCard(Zone.HAND, playerA, reap);
|
||||
|
||||
castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerA, reap, lion);
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertPermanentCount(playerA, lion, 0);
|
||||
assertGraveyardCount(playerA, lion, 1);
|
||||
assertGraveyardCount(playerA, reap, 1);
|
||||
assertLife(playerA, 20);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue