mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
* Amoeboid Changeling, Wings of Veles-Vel - Fixed that the character types were changed on the wrong layer.
This commit is contained in:
parent
4d01eb143a
commit
0488da6b22
6 changed files with 73 additions and 21 deletions
|
|
@ -27,8 +27,11 @@
|
|||
*/
|
||||
package org.mage.test.cards.abilities.keywords;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
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;
|
||||
|
||||
|
|
@ -36,18 +39,17 @@ import org.mage.test.serverside.base.CardTestPlayerBase;
|
|||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
|
||||
public class ChangelingTest extends CardTestPlayerBase {
|
||||
|
||||
/**
|
||||
* Casting changelings with a Long-Forgotten Gohei in play reduces its casting cost by {1}.
|
||||
* Casting changelings with a Long-Forgotten Gohei in play reduces its
|
||||
* casting cost by {1}.
|
||||
*/
|
||||
|
||||
@Test
|
||||
public void testLongForgottenGohei() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 1);
|
||||
addCard(Zone.HAND, playerA, "Woodland Changeling");
|
||||
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Long-Forgotten Gohei");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Woodland Changeling");
|
||||
|
|
@ -58,6 +60,46 @@ public class ChangelingTest extends CardTestPlayerBase {
|
|||
assertPermanentCount(playerA, "Woodland Changeling", 0); // Casting cost of spell is not reduced so not on the battlefield
|
||||
assertHandCount(playerA, "Woodland Changeling", 1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* Another bug, was playing Slivers again. I had a Amoeboid Changeling, a
|
||||
* Hibernation Sliver and a Prophet of Kruphix. In response to a boardwipe,
|
||||
* I tapped my Changeling, giving my Prophet Changeling. However, it didn't
|
||||
* gain any Sliver abilities despite having all creature types, including
|
||||
* Sliver, so I couldn't save it with my Hibernation Sliver. I clicked the
|
||||
* Prophet and nothing happened at all.
|
||||
*/
|
||||
@Test
|
||||
public void testGainingChangeling() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 2);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 3);
|
||||
// Untap all creatures and lands you control during each other player's untap step.
|
||||
// You may cast creature cards as though they had flash.
|
||||
addCard(Zone.HAND, playerA, "Prophet of Kruphix");// {3}{G}{U}
|
||||
// Changeling
|
||||
// {T}: Target creature gains all creature types until end of turn.
|
||||
// {T}: Target creature loses all creature types until end of turn.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Amoeboid Changeling");
|
||||
// All Slivers have "Pay 2 life: Return this permanent to its owner's hand."
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Hibernation Sliver");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Prophet of Kruphix");
|
||||
activateAbility(1, PhaseStep.POSTCOMBAT_MAIN, playerA, "{T}: Target creature gains", "Prophet of Kruphix");
|
||||
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertTapped("Amoeboid Changeling", true);
|
||||
|
||||
Permanent prophet = getPermanent("Prophet of Kruphix", playerA);
|
||||
boolean abilityFound = false;
|
||||
for (Ability ability : prophet.getAbilities()) {
|
||||
if (ability.getRule().startsWith("Pay 2 life")) {
|
||||
abilityFound = true;
|
||||
}
|
||||
}
|
||||
Assert.assertTrue("Prophet of Kruphix has to have the 'Pay 2 life: Return this permanent to its owner's hand.' ability, but has not.", abilityFound);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue