* Mox Opal - Fixed handling and tooltip text.

This commit is contained in:
LevelX2 2014-11-17 13:40:51 +01:00
parent 15bd62f24e
commit eba9e5925f
3 changed files with 14 additions and 5 deletions

View file

@ -32,10 +32,15 @@ import mage.constants.CardType;
import mage.constants.Rarity;
import mage.abilities.Ability;
import mage.abilities.costs.common.MetalcraftCost;
import mage.abilities.mana.AnyColorManaAbility;
import mage.cards.CardImpl;
import java.util.UUID;
import mage.abilities.condition.common.MetalcraftCondition;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.AddManaOfAnyColorEffect;
import mage.abilities.mana.ActivateIfConditionManaAbility;
import mage.constants.AbilityWord;
import mage.constants.Zone;
/**
*
@ -48,8 +53,12 @@ public class MoxOpal extends CardImpl {
this.supertype.add("Legendary");
this.expansionSetCode = "SOM";
Ability ability = new AnyColorManaAbility();
ability.addCost(new MetalcraftCost());
Ability ability = new ActivateIfConditionManaAbility(
Zone.BATTLEFIELD,
new AddManaOfAnyColorEffect(),
new TapSourceCost(),
MetalcraftCondition.getInstance());
ability.setAbilityWord(AbilityWord.METALCRAFT);
this.addAbility(ability);
}

View file

@ -133,7 +133,7 @@ public class LookLibraryAndPickControllerEffect extends LookLibraryControllerEff
TargetCard target = new TargetCard((upTo ? 0:numberToPick.calculate(game, source, this)),numberToPick.calculate(game, source, this), Zone.PICK, pickFilter);
if (player.choose(Outcome.DrawCard, cards, target, game)) {
Cards reveal = new CardsImpl();
for (UUID cardId : (List<UUID>)target.getTargets()) {
for (UUID cardId : target.getTargets()) {
Card card = cards.get(cardId, game);
if (card != null) {
cards.remove(card);

View file

@ -210,7 +210,7 @@ public class LookLibraryControllerEffect extends OneShotEffect {
if (putOnTop) {
sb.append("on your library (last chosen will be on top)");
} else {
sb.append("on bottom of your library (last chosen will be on bottom)");
sb.append("on bottom of your library (last chosen will be mostbottom)");
}
return sb.toString();
}