Minor formatting.

This commit is contained in:
LevelX2 2014-02-18 17:36:10 +01:00
parent 1f3687cc86
commit d48d44dd56
4 changed files with 104 additions and 67 deletions

View file

@ -30,8 +30,7 @@ package mage.sets.commander;
import java.util.UUID;
import mage.abilities.condition.common.ControlsPermanentCondition;
import mage.abilities.costs.AlternativeCostSourceAbility;
import mage.abilities.costs.common.GainLiveOpponentCost;
import mage.abilities.costs.common.GainLivePlayersCost;
import mage.abilities.costs.common.GainLifeOpponentCost;
import mage.abilities.effects.common.continious.BoostTargetEffect;
import mage.cards.CardImpl;
import mage.constants.CardType;
@ -60,7 +59,7 @@ public class Invigorate extends CardImpl<Invigorate> {
this.color.setGreen(true);
// If you control a Forest, rather than pay Invigorate's mana cost, you may have an opponent gain 3 life.
this.addAbility(new AlternativeCostSourceAbility(new GainLiveOpponentCost(3), new ControlsPermanentCondition(filter)));
this.addAbility(new AlternativeCostSourceAbility(new GainLifeOpponentCost(3), new ControlsPermanentCondition(filter)));
// Target creature gets +4/+4 until end of turn.
this.getSpellAbility().addEffect(new BoostTargetEffect(4,4,Duration.EndOfTurn));
this.getSpellAbility().addTarget(new TargetCreaturePermanent(true));

View file

@ -180,16 +180,23 @@ class UtopiaSprawlEffect extends ManaEffect<UtopiaSprawlEffect> {
Player player = game.getPlayer(land.getControllerId());
if (player != null) {
ObjectColor color = (ObjectColor) game.getState().getValue(source.getSourceId() + "_color");
if (color.isBlack())
player.getManaPool().addMana(Mana.BlackMana, game, source);
else if (color.isBlue())
player.getManaPool().addMana(Mana.BlueMana, game, source);
else if (color.isRed())
player.getManaPool().addMana(Mana.RedMana, game, source);
else if (color.isGreen())
player.getManaPool().addMana(Mana.GreenMana, game, source);
else if (color.isWhite())
player.getManaPool().addMana(Mana.WhiteMana, game, source);
switch(color.toString()) {
case "W":
player.getManaPool().addMana(Mana.WhiteMana, game, source);
break;
case "B":
player.getManaPool().addMana(Mana.BlackMana, game, source);
break;
case "U":
player.getManaPool().addMana(Mana.BlueMana, game, source);
break;
case "G":
player.getManaPool().addMana(Mana.GreenMana, game, source);
break;
case "R":
player.getManaPool().addMana(Mana.RedMana, game, source);
break;
}
return true;
}
}