use of mage.abilities.keyword.ChangelingAbility in project mage by magefree.
the class ChangelingTest method testLoseAllCreatureTypes.
@Test
public void testLoseAllCreatureTypes() {
addCard(Zone.BATTLEFIELD, playerA, "Game-Trail Changeling");
addCard(Zone.BATTLEFIELD, playerA, "Goblin Chieftain");
addCard(Zone.HAND, playerA, "Nameless Inversion");
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 2);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Nameless Inversion", "Game-Trail Changeling");
setStopAt(1, PhaseStep.END_TURN);
execute();
// Should have no creature types but still have the Changeling ability
assertPowerToughness(playerA, "Game-Trail Changeling", 7, 1);
assertNotSubtype("Game-Trail Changeling", SubType.SHAPESHIFTER);
assertAbility(playerA, "Game-Trail Changeling", HasteAbility.getInstance(), false);
assertAbility(playerA, "Game-Trail Changeling", new ChangelingAbility(), true);
}
use of mage.abilities.keyword.ChangelingAbility in project mage by magefree.
the class MoritteOfTheFrostCopyApplier method apply.
@Override
public boolean apply(Game game, MageObject blueprint, Ability source, UUID copyToObjectId) {
blueprint.addSuperType(SuperType.LEGENDARY);
blueprint.addSuperType(SuperType.SNOW);
if (!isCopyOfCopy(source, blueprint, copyToObjectId) && blueprint.isCreature(game)) {
blueprint.getAbilities().add(new ChangelingAbility());
blueprint.getAbilities().add(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance(2), false)));
}
return true;
}
use of mage.abilities.keyword.ChangelingAbility in project mage by magefree.
the class ChangelingTest method testLoseAbilities.
@Test
public void testLoseAbilities() {
addCard(Zone.BATTLEFIELD, playerA, "Island", 2);
addCard(Zone.BATTLEFIELD, playerB, "Game-Trail Changeling");
addCard(Zone.HAND, playerA, "Merfolk Trickster");
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Merfolk Trickster");
addTarget(playerA, "Game-Trail Changeling");
setStopAt(1, PhaseStep.END_TURN);
execute();
assertTapped("Game-Trail Changeling", true);
assertSubtype("Game-Trail Changeling", SubType.GOBLIN);
assertSubtype("Game-Trail Changeling", SubType.ELF);
assertSubtype("Game-Trail Changeling", SubType.SHAPESHIFTER);
assertAbility(playerB, "Game-Trail Changeling", new ChangelingAbility(), false);
}
Aggregations