Some minor changes to Phantasmal Terrain.

This commit is contained in:
LevelX2 2015-02-20 09:54:45 +01:00
parent d07d3228a1
commit 887cc094c9

View file

@ -28,6 +28,7 @@
package mage.sets.limitedalpha; package mage.sets.limitedalpha;
import java.util.UUID; import java.util.UUID;
import mage.MageObject;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.common.AsEntersBattlefieldAbility; import mage.abilities.common.AsEntersBattlefieldAbility;
import mage.abilities.common.SimpleStaticAbility; import mage.abilities.common.SimpleStaticAbility;
@ -66,8 +67,6 @@ public class PhantasmalTerrain extends CardImpl {
this.expansionSetCode = "LEA"; this.expansionSetCode = "LEA";
this.subtype.add("Aura"); this.subtype.add("Aura");
this.color.setBlue(true);
// Enchant land // Enchant land
TargetPermanent auraTarget = new TargetLandPermanent(); TargetPermanent auraTarget = new TargetLandPermanent();
this.getSpellAbility().addTarget(auraTarget); this.getSpellAbility().addTarget(auraTarget);
@ -95,7 +94,7 @@ class PhantasmalTerrainChooseEffect extends OneShotEffect {
public PhantasmalTerrainChooseEffect() { public PhantasmalTerrainChooseEffect() {
super(Outcome.Neutral); super(Outcome.Neutral);
this.staticText = "choose a basic land type."; this.staticText = "choose a basic land type";
} }
public PhantasmalTerrainChooseEffect(final PhantasmalTerrainChooseEffect effect) { public PhantasmalTerrainChooseEffect(final PhantasmalTerrainChooseEffect effect) {
@ -109,18 +108,18 @@ class PhantasmalTerrainChooseEffect extends OneShotEffect {
@Override @Override
public boolean apply(Game game, Ability source) { public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(source.getControllerId()); Player controller = game.getPlayer(source.getControllerId());
if (player != null) { MageObject sourceObject = source.getSourceObject(game);
if (sourceObject != null && controller != null) {
ChoiceImpl choices = new ChoiceImpl(true); ChoiceImpl choices = new ChoiceImpl(true);
choices.setMessage("Choose basic land type"); choices.setMessage("Choose basic land type");
choices.isRequired();
choices.getChoices().add("Forest"); choices.getChoices().add("Forest");
choices.getChoices().add("Plains"); choices.getChoices().add("Plains");
choices.getChoices().add("Mountain"); choices.getChoices().add("Mountain");
choices.getChoices().add("Island"); choices.getChoices().add("Island");
choices.getChoices().add("Swamp"); choices.getChoices().add("Swamp");
if (player.choose(Outcome.Neutral, choices, game)) { if (controller.choose(Outcome.Neutral, choices, game)) {
game.informPlayers(new StringBuilder("Phantasmal Terrain: ").append(" chosen basic land type is ").append(choices.getChoice()).toString()); game.informPlayers(sourceObject.getLogName() + ": chosen basic land type is " + choices.getChoice());
game.getState().setValue(source.getSourceId().toString() + "_PhantasmalTerrain", choices.getChoice()); game.getState().setValue(source.getSourceId().toString() + "_PhantasmalTerrain", choices.getChoice());
return true; return true;
} }
@ -134,7 +133,7 @@ class PhantasmalTerrainContinuousEffect extends ContinuousEffectImpl {
public PhantasmalTerrainContinuousEffect(){ public PhantasmalTerrainContinuousEffect(){
super(Duration.WhileOnBattlefield, Outcome.Neutral); super(Duration.WhileOnBattlefield, Outcome.Neutral);
this.staticText = "Enchanted land is the chosen type."; this.staticText = "enchanted land is the chosen type";
} }
public PhantasmalTerrainContinuousEffect(final PhantasmalTerrainContinuousEffect effect) { public PhantasmalTerrainContinuousEffect(final PhantasmalTerrainContinuousEffect effect) {