Added some tests and an legacy example deck.

This commit is contained in:
LevelX2 2015-05-08 09:12:37 +02:00
parent 951198a578
commit 853be4ce65
3 changed files with 66 additions and 9 deletions

View file

@ -0,0 +1,22 @@
4 [RAV:230] Shambling Shell
4 [RAV:167] Golgari Grave-Troll
4 [RAV:87] Golgari Thug
4 [FUT:54] Narcomoeba
4 [TSP:104] Dread Return
4 [PLC:77] Phantasmagorian
4 [JUD:62] Cabal Therapy
4 [TOR:65] Ichorid
3 [NPH:6] Chancellor of the Annex
4 [GTC:57] Balustrade Spy
4 [NPH:35] Gitaxian Probe
4 [RAV:107] Stinkweed Imp
1 [DKA:89] Flayer of the Hatebound
4 [FUT:81] Bridge from Below
4 [5ED:45] Nether Shadow
4 [FUT:90] Street Wraith
SB: 1 [NPH:6] Chancellor of the Annex
SB: 1 [THS:187] Ashen Rider
SB: 4 [M15:237] Tormod's Crypt
SB: 4 [MMQ:168] Unmask
SB: 1 [ALL:4] Contagion
SB: 4 [BOK:82] Sickening Shoal

View file

@ -27,12 +27,9 @@
*/ */
package org.mage.test.cards.copy; package org.mage.test.cards.copy;
import mage.constants.CardType;
import mage.constants.PhaseStep; import mage.constants.PhaseStep;
import mage.constants.Zone; import mage.constants.Zone;
import mage.game.permanent.Permanent; import org.junit.Ignore;
import mage.game.permanent.PermanentToken;
import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase; import org.mage.test.serverside.base.CardTestPlayerBase;
@ -44,6 +41,34 @@ import org.mage.test.serverside.base.CardTestPlayerBase;
public class SharuumTheHegemonTest extends CardTestPlayerBase { public class SharuumTheHegemonTest extends CardTestPlayerBase {
/** /**
* http://www.slightlymagic.net/forum/viewtopic.php?f=70&t=16732&p=172937&hilit=Sharuum+the+Hegemon#p172920
*
* My Sharuum EDH deck uses the standard Sharuum + Clone Effect + Blood Artist as one of the win
* conditions, but when I have Sharuum in plan and play a Clever Impersonator, targetting Sharuum
* and choose to keep the Clever Impersonator and send the original Sharuum to the graveyard Xmage
* never gives me the option to use the Sharuum Ability that the Clever Impersonator should get,
* making the combo not work.
*
* I run a Sharuum EDH deck that wins by cloning Sharuum for infinite death triggers. I know the rules
* check out on this combo irl, but no matter how I stack the triggers for cloning Sharuum and her enter
* the battlefield effect it does not work. It either ends with Sharuum in my graveyard or the reanimate
* effect hits the stack before the legend rule applies
*
[1] Sharuum the Hegemon is on the battlefield.
[2] You cast Clone (or any other Clone-like card).
[3] When Clone resolves, you choose Sharuum for the replacement effect.
[4] Since fake-Sharuum entered the battlefield, its EtB ability triggers.
[5] State-based actions are checked and you are prompted to keep one Sharuum. You sacrifice real-Sharuum.
* 116.2a Triggered abilities can trigger at any time, including while a spell is being cast, an ability is being activated, or a spell or
* ability is resolving. (See rule 603, Handling Triggered Abilities.) However, nothing actually happens at the time an ability triggers.
* Each time a player would receive priority, each ability that has triggered but hasnt yet been put on the stack is put on the stack. See rule 116.5
* 116.5. Each time a player would get priority, the game first performs all applicable state-based actions as a single event (see rule 704,
* State-Based Actions), then repeats this process until no state-based actions are performed. Then triggered abilities are put on the stack
* (see rule 603, Handling Triggered Abilities). These steps repeat in order until no further state-based actions are performed and no abilities
* trigger. Then the player who would have received priority does so.
[6] Once State-based actions are finished, triggered abilities go on the stack. You put the EtB from [4] choosing real-Sharuum.
[7] Real-Sharuum enters the battlefield.
[8] Rinse and repeat.
* *
*/ */
@Test @Test
@ -60,16 +85,23 @@ public class SharuumTheHegemonTest extends CardTestPlayerBase {
setChoice(playerA, "Yes"); setChoice(playerA, "Yes");
setChoice(playerA, "Sharuum the Hegemon"); // what creature to clone setChoice(playerA, "Sharuum the Hegemon"); // what creature to clone
addTarget(playerA, "Sharuum the Hegemon[no copy]"); // which legend to sacrifice addTarget(playerA, "Sharuum the Hegemon[only copy]"); // which legend to keep
setChoice(playerA, "Yes");
addTarget(playerA, "Sharuum the Hegemon[no copy]"); // which legend to sacrifice addTarget(playerA, "Sharuum the Hegemon[only copy]"); // which legend to keep
setChoice(playerA, "No"); setChoice(playerA, "Yes");
addTarget(playerA, "Sharuum the Hegemon[only copy]"); // which legend to keep
setChoice(playerA, "Yes");
addTarget(playerA, "Sharuum the Hegemon[only copy]"); // which legend to keep
setChoice(playerA, "No"); // Don't use it anymore
setStopAt(1, PhaseStep.END_TURN); setStopAt(1, PhaseStep.END_TURN);
execute(); execute();
assertLife(playerA, 21); assertLife(playerA, 24);
assertLife(playerB, 19); assertLife(playerB, 16);

View file

@ -75,6 +75,9 @@ public class SpellskiteTest extends CardTestPlayerBase {
* target never changed. * target never changed.
* *
*/ */
/**
* TODO: This test fails sometimes when building the complete Tets Project -> Find reason
*/
@Test @Test
public void testAfterChangeOfController() { public void testAfterChangeOfController() {
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 1); addCard(Zone.BATTLEFIELD, playerA, "Mountain", 1);