mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
Adding incorrectly-failing test for SyrKonradTheGrim
His ability should only trigger on creatures leaving the controller's graveyard, not any graveyard.
This commit is contained in:
parent
b324886c09
commit
e9bbefb814
1 changed files with 31 additions and 0 deletions
|
|
@ -0,0 +1,31 @@
|
|||
package org.mage.test.cards.single;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
public class SyrKonradTheGrimTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void ownGraveyardTriggerTest() {
|
||||
addCard(Zone.HAND, playerA, "Rest in Peace");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 2);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Syr Konrad, the Grim");
|
||||
addCard(Zone.GRAVEYARD, playerA, "Grizzly Bears", 2);
|
||||
addCard(Zone.GRAVEYARD, playerB, "Grizzly Bears");
|
||||
setStopAt(1, PhaseStep.UNTAP);
|
||||
execute();
|
||||
|
||||
assertLife(playerB, 20);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Rest in Peace");
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerA, 0);
|
||||
assertGraveyardCount(playerB, 0);
|
||||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 18);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue