mirror of
https://github.com/correl/mage.git
synced 2025-03-07 20:53:18 -10:00
failing test for Clone and copied triggered ability
This commit is contained in:
parent
6f31c00811
commit
ab4823a4c2
1 changed files with 66 additions and 0 deletions
|
@ -0,0 +1,66 @@
|
|||
package org.mage.test.cards.copy;
|
||||
|
||||
import mage.Constants;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* @author noxx
|
||||
*/
|
||||
public class CloneTest extends CardTestPlayerBase {
|
||||
|
||||
/**
|
||||
* Tests triggers working on both sides after Clone comming onto battlefield
|
||||
*/
|
||||
@Test
|
||||
public void testCloneTriggered() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Bloodgift Demon", 1);
|
||||
|
||||
addCard(Constants.Zone.HAND, playerB, "Clone");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerB, "Island", 4);
|
||||
|
||||
castSpell(2, Constants.PhaseStep.PRECOMBAT_MAIN, playerB, "Clone");
|
||||
|
||||
setStopAt(4, Constants.PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 18);
|
||||
assertLife(playerB, 19);
|
||||
|
||||
assertHandCount(playerA, 2);
|
||||
assertHandCount(playerB, 1);
|
||||
|
||||
assertPermanentCount(playerA, "Bloodgift Demon", 1);
|
||||
assertPermanentCount(playerB, "Bloodgift Demon", 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests Clone is sacrificed and only one effect is turned on
|
||||
*/
|
||||
//TODO: try this scenario in the game (bug report from player)
|
||||
@Test
|
||||
public void testCloneSacrifice() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Bloodgift Demon", 1);
|
||||
|
||||
addCard(Constants.Zone.HAND, playerA, "Diabolic Edict");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Swamp", 2);
|
||||
|
||||
addCard(Constants.Zone.HAND, playerB, "Clone");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerB, "Island", 4);
|
||||
|
||||
castSpell(2, Constants.PhaseStep.PRECOMBAT_MAIN, playerB, "Clone");
|
||||
castSpell(3, Constants.PhaseStep.POSTCOMBAT_MAIN, playerA, "Diabolic Edict", playerB);
|
||||
|
||||
setStopAt(4, Constants.PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 18);
|
||||
assertLife(playerB, 19);
|
||||
|
||||
assertHandCount(playerA, 2);
|
||||
assertHandCount(playerB, 0);
|
||||
|
||||
assertPermanentCount(playerA, "Bloodgift Demon", 1);
|
||||
assertPermanentCount(playerB, "Bloodgift Demon", 0);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue