mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
InfestTest
This commit is contained in:
parent
610372d92e
commit
c683554573
1 changed files with 44 additions and 0 deletions
|
@ -0,0 +1,44 @@
|
|||
package org.mage.test.cards.continuous;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* Infest
|
||||
* All creatures get -2/-2 until end of turn.
|
||||
*
|
||||
* @author noxx
|
||||
*/
|
||||
public class InfestTest extends CardTestPlayerBase {
|
||||
|
||||
/**
|
||||
* Tests creatures for Flying gained from Wonder ability when all conditions were met
|
||||
*/
|
||||
@Test
|
||||
public void testMassBoostEffectLocked() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 3);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 4);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Elite Vanguard", 2);
|
||||
|
||||
addCard(Zone.HAND, playerA, "Infest");
|
||||
addCard(Zone.HAND, playerA, "Grizzly Bears");
|
||||
addCard(Zone.HAND, playerA, "Grizzly Bears");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Infest");
|
||||
castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerA, "Grizzly Bears");
|
||||
castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerA, "Grizzly Bears");
|
||||
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertHandCount(playerA, 0);
|
||||
assertPermanentCount(playerA, "Elite Vanguard", 0);
|
||||
assertGraveyardCount(playerA, "Elite Vanguard", 2);
|
||||
assertPermanentCount(playerA, "Grizzly Bears", 2);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in a new issue