mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Failing test for [AVR] Cloudshift
This commit is contained in:
parent
8759b6de33
commit
38fc180ed4
1 changed files with 35 additions and 0 deletions
|
@ -0,0 +1,35 @@
|
|||
package org.mage.test.cards.control;
|
||||
|
||||
import mage.Constants;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* Tests the effect:
|
||||
* - Exile target creature you control, then return that card to the battlefield under your control
|
||||
*
|
||||
* This effect grants you permanent control over the returned creature.
|
||||
* So you mail steal opponent's creature with "Act of Treason" and then use this effect for permanent control effect.
|
||||
*
|
||||
* @author noxx
|
||||
*/
|
||||
public class ExileAndReturnUnderYourControl extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testPermanentControlEffect() {
|
||||
addCard(Constants.Zone.HAND, playerA, "Cloudshift");
|
||||
addCard(Constants.Zone.HAND, playerA, "Act of Treason");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Plains", 3);
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Mountain", 3);
|
||||
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerB, "Elite Vanguard");
|
||||
|
||||
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Act of Treason", "Elite Vanguard");
|
||||
castSpell(1, Constants.PhaseStep.POSTCOMBAT_MAIN, playerA, "Cloudshift", "Elite Vanguard");
|
||||
|
||||
setStopAt(2, Constants.PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Elite Vanguard", 1);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue