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:
Adrian Petrescu 2019-10-11 09:48:26 -04:00
parent b324886c09
commit e9bbefb814

View file

@ -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);
}
}