mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Merge pull request #1719 from drmDev/master
Silkwrap test added for reported bug on Hangarback not getting exiled
This commit is contained in:
commit
61a805106b
1 changed files with 39 additions and 0 deletions
|
@ -0,0 +1,39 @@
|
|||
package org.mage.test.cards.triggers;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* When Silkwrap enters the battlefield, exile target creature with converted mana cost 3 or less an opponent controls until Silkwrap leaves the battlefield.
|
||||
* @author escplan9 (Derek Monturo - dmontur1 at gmail dot com)
|
||||
*/
|
||||
public class SilkwrapTest extends CardTestPlayerBase {
|
||||
|
||||
/*
|
||||
* Reported bug - Silkwrap does not exile Hangarback.
|
||||
Cards with X CMC are considered 0 CMC on the battlefield.
|
||||
*/
|
||||
@Test
|
||||
public void testHangarback() {
|
||||
|
||||
addCard(Zone.HAND, playerA, "Hangarback Walker", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Wastes", 8);
|
||||
addCard(Zone.HAND, playerB, "Silkwrap", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Plains", 2);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Hangarback Walker");
|
||||
setChoice(playerA, "X=4");
|
||||
|
||||
castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerB, "Silkwrap");
|
||||
addTarget(playerB, "Hangarback Walker");
|
||||
|
||||
setStopAt(2, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerB, "Silkwrap", 1);
|
||||
assertPermanentCount(playerA, "Hangarback Walker", 0);
|
||||
assertExileCount("Hangarback Walker", 1);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue