mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
implement Beasts of Bogardan
also fixed Ivory Guardians to correctly boost other Ivory Guardians, and changed many similar cards to use OpponentControlsPermanentCondition instead of custom Conditions.
This commit is contained in:
parent
cfb612b68a
commit
5e1bc1e583
14 changed files with 294 additions and 203 deletions
|
|
@ -0,0 +1,72 @@
|
|||
package org.mage.test.cards.filters;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.permanent.Permanent;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author nigelzor
|
||||
*/
|
||||
public class IvoryGuardiansTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testOneGuardian() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Goblin Hero");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Ivory Guardians");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPowerToughness(playerA, "Goblin Hero", 2, 2);
|
||||
assertPowerToughness(playerA, "Ivory Guardians", 3, 3);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testOneGuardianAndRedToken() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 2);
|
||||
addCard(Zone.HAND, playerA, "Dragon Fodder");
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Ivory Guardians");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Dragon Fodder");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPowerToughness(playerA, "Goblin", 1, 1);
|
||||
assertPowerToughness(playerB, "Ivory Guardians", 3, 3);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testOneGuardianAndRedPermanent() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Goblin Hero");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Ivory Guardians");
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Mons's Goblin Raiders");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPowerToughness(playerA, "Goblin Hero", 2, 2);
|
||||
assertPowerToughness(playerA, "Ivory Guardians", 4, 4);
|
||||
assertPowerToughness(playerB, "Mons's Goblin Raiders", 1, 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTwoGuardiansAndRedPermanent() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Goblin Hero");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Ivory Guardians");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Ivory Guardians");
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Mons's Goblin Raiders");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPowerToughness(playerA, "Goblin Hero", 2, 2);
|
||||
assertPowerToughness(playerA, "Ivory Guardians", 5, 5);
|
||||
assertPowerToughness(playerB, "Mons's Goblin Raiders", 1, 1);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue