mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
huge rework on subtypes (#3668)
* huge rework on subtypes * update for coat of arms * fix test
This commit is contained in:
parent
81fb4b5d92
commit
09f0c9ad97
185 changed files with 1068 additions and 906 deletions
|
|
@ -0,0 +1,58 @@
|
|||
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;
|
||||
|
||||
public class ChangelingTest extends CardTestPlayerBase {
|
||||
|
||||
// Mistform Ultimus is every creature type
|
||||
private final String ultimus = "Mistform Ultimus";
|
||||
// each creature gets +1/+1 for each creature you control that shares a creatureype
|
||||
private final String coatOfArms = "Coat of Arms";
|
||||
// all merfolk get +1/+1
|
||||
private final String lordOfAtlantis = "Lord of Atlantis";
|
||||
// all illusions get +1/+1
|
||||
private final String lordOfUnreal = "Lord of the Unreal";
|
||||
// mutavault becomes a token that is all creature types
|
||||
private final String mutavault = "Mutavault";
|
||||
|
||||
// 2/2 changeling
|
||||
private final String woodlandChangeling = "Woodland Changeling";
|
||||
|
||||
@Test
|
||||
public void coatOfArmsTest(){
|
||||
addCard(Zone.BATTLEFIELD, playerA, ultimus);
|
||||
addCard(Zone.BATTLEFIELD, playerA, coatOfArms);
|
||||
addCard(Zone.BATTLEFIELD, playerA, lordOfAtlantis);
|
||||
addCard(Zone.BATTLEFIELD, playerA, lordOfUnreal);
|
||||
addCard(Zone.BATTLEFIELD, playerA, mutavault);
|
||||
addCard(Zone.BATTLEFIELD, playerA, woodlandChangeling, 2);
|
||||
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{1}: Until end of turn {this} becomes");
|
||||
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
/*
|
||||
ultimus; +3
|
||||
atlantis +1
|
||||
unreal: +1
|
||||
coat of arms: +5
|
||||
*/
|
||||
assertPowerToughness(playerA, ultimus, 10, 10);
|
||||
/*
|
||||
atlantis : +2
|
||||
coat of arms: + 4
|
||||
*/
|
||||
assertPowerToughness(playerA, lordOfAtlantis, 6, 6);
|
||||
/*
|
||||
mutavault token; +3
|
||||
atlantis +1
|
||||
unreal: +1
|
||||
coat of arms: +5
|
||||
*/
|
||||
assertPowerToughness(playerA, mutavault, 9, 9);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
package org.mage.test.cards.single;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
public class TerastodonTest extends CardTestPlayerBase {
|
||||
|
||||
|
||||
public final String terastodon = "Terastodon";
|
||||
public final String parallelLives = "Parallel Lives";
|
||||
|
||||
@Test
|
||||
public void testAmountTokens() {
|
||||
addCard(Zone.HAND, playerA, terastodon);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 2);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 2);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 2);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 2);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 2);
|
||||
addCard(Zone.BATTLEFIELD, playerA, parallelLives);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, terastodon);
|
||||
|
||||
addTarget(playerA, parallelLives + "^Mountain^Swamp");
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerA, 3);
|
||||
assertPermanentCount(playerA, "Elephant", 3);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue