mirror of
https://github.com/correl/mage.git
synced 2025-04-10 09:11:04 -09:00
Failing test for flicker and spell fizzle
This commit is contained in:
parent
9280a84ecf
commit
4aa0f8beda
1 changed files with 34 additions and 0 deletions
|
@ -0,0 +1,34 @@
|
||||||
|
package org.mage.test.cards.abilities.flicker;
|
||||||
|
|
||||||
|
import mage.Constants;
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author noxx
|
||||||
|
*/
|
||||||
|
public class CloudshiftTest extends CardTestPlayerBase {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tests that casting Cloudshift makes targeting spell fizzling
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testSpellFizzle() {
|
||||||
|
addCard(Constants.Zone.BATTLEFIELD, playerA, "Elite Vanguard");
|
||||||
|
addCard(Constants.Zone.BATTLEFIELD, playerA, "Plains");
|
||||||
|
addCard(Constants.Zone.BATTLEFIELD, playerA, "Mountain");
|
||||||
|
|
||||||
|
addCard(Constants.Zone.HAND, playerA, "Cloudshift");
|
||||||
|
addCard(Constants.Zone.HAND, playerA, "Lightning Bolt");
|
||||||
|
|
||||||
|
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Lightning Bolt", "Elite Vanguard");
|
||||||
|
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Cloudshift", "Elite Vanguard");
|
||||||
|
|
||||||
|
setStopAt(1, Constants.PhaseStep.BEGIN_COMBAT);
|
||||||
|
execute();
|
||||||
|
|
||||||
|
// should be alive because of Cloudshift
|
||||||
|
assertPermanentCount(playerA, "Elite Vanguard", 1);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue