mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Mox Opal - Fixed handling and tooltip text.
This commit is contained in:
parent
15bd62f24e
commit
eba9e5925f
3 changed files with 14 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue