diff --git a/Mage.Sets/src/mage/sets/eighthedition/StarCompass.java b/Mage.Sets/src/mage/sets/eighthedition/StarCompass.java index 4c2e4dd210..5f48b37b29 100644 --- a/Mage.Sets/src/mage/sets/eighthedition/StarCompass.java +++ b/Mage.Sets/src/mage/sets/eighthedition/StarCompass.java @@ -135,7 +135,7 @@ class StarCompassManaEffect extends ManaEffect { if (types.getWhite() > 0) { choice.getChoices().add("White"); } - if (types.getGeneric() > 0) { + if (types.getColorless() > 0) { choice.getChoices().add("Colorless"); } if (types.getAny() > 0) { @@ -172,7 +172,7 @@ class StarCompassManaEffect extends ManaEffect { mana.setWhite(1); break; case "Colorless": - mana.setGeneric(1); + mana.setColorless(1); break; } checkToFirePossibleEvents(mana, game, source); diff --git a/Mage.Sets/src/mage/sets/saviorsofkamigawa/SasayaOrochiAscendant.java b/Mage.Sets/src/mage/sets/saviorsofkamigawa/SasayaOrochiAscendant.java index 00f3822a03..9376a2c477 100644 --- a/Mage.Sets/src/mage/sets/saviorsofkamigawa/SasayaOrochiAscendant.java +++ b/Mage.Sets/src/mage/sets/saviorsofkamigawa/SasayaOrochiAscendant.java @@ -77,7 +77,7 @@ public class SasayaOrochiAscendant extends CardImpl { this.flipCardName = "Sasaya's Essence"; // Reveal your hand: If you have seven or more land cards in your hand, flip Sasaya, Orochi Ascendant. - this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SasayaOrochiAscendantFlipEffect(), new RevealHandSourceControllerCost() )); + this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SasayaOrochiAscendantFlipEffect(), new RevealHandSourceControllerCost())); } public SasayaOrochiAscendant(final SasayaOrochiAscendant card) { @@ -91,21 +91,21 @@ public class SasayaOrochiAscendant extends CardImpl { } class SasayaOrochiAscendantFlipEffect extends OneShotEffect { - + public SasayaOrochiAscendantFlipEffect() { super(Outcome.Benefit); this.staticText = "If you have seven or more land cards in your hand, flip {this}"; } - + public SasayaOrochiAscendantFlipEffect(final SasayaOrochiAscendantFlipEffect effect) { super(effect); } - + @Override public SasayaOrochiAscendantFlipEffect copy() { return new SasayaOrochiAscendantFlipEffect(this); } - + @Override public boolean apply(Game game, Ability source) { Player controller = game.getPlayer(source.getControllerId()); @@ -121,7 +121,7 @@ class SasayaOrochiAscendantFlipEffect extends OneShotEffect { class SasayasEssence extends Token { - SasayasEssence () { + SasayasEssence() { super("Sasaya's Essence", ""); supertype.add("Legendary"); cardType.add(CardType.ENCHANTMENT); @@ -179,7 +179,7 @@ class SasayasEssenceManaEffectEffect extends ManaEffect { if (mana.getWhite() > 0) { choice.getChoices().add("White"); } - if (mana.getGeneric() > 0) { + if (mana.getColorless() > 0) { choice.getChoices().add("Colorless"); } @@ -190,7 +190,7 @@ class SasayasEssenceManaEffectEffect extends ManaEffect { if (choice.getChoices().size() == 1) { choice.setChoice(choice.getChoices().iterator().next()); } else { - while(!choice.isChosen()) { + while (!choice.isChosen()) { controller.choose(outcome, choice, game); if (!controller.canRespond()) { return false; @@ -217,7 +217,7 @@ class SasayasEssenceManaEffectEffect extends ManaEffect { newMana.increaseWhite(); break; case "Colorless": - newMana.increaseGeneric(); + newMana.increaseColorless(); break; } } diff --git a/Mage.Sets/src/mage/sets/shadowmoor/ManaReflection.java b/Mage.Sets/src/mage/sets/shadowmoor/ManaReflection.java index bb499a45a7..2d0ac179da 100644 --- a/Mage.Sets/src/mage/sets/shadowmoor/ManaReflection.java +++ b/Mage.Sets/src/mage/sets/shadowmoor/ManaReflection.java @@ -53,7 +53,6 @@ public class ManaReflection extends CardImpl { super(ownerId, 122, "Mana Reflection", Rarity.RARE, new CardType[]{CardType.ENCHANTMENT}, "{4}{G}{G}"); this.expansionSetCode = "SHM"; - // If you tap a permanent for mana, it produces twice as much of that mana instead. this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ManaReflectionReplacementEffect())); @@ -89,7 +88,7 @@ class ManaReflectionReplacementEffect extends ReplacementEffectImpl { public boolean replaceEvent(GameEvent event, Ability source, Game game) { Mana mana = ((ManaEvent) event).getMana(); if (mana.getBlack() > 0) { - mana.set(ManaType.BLACK, mana.getBlack()* 2); + mana.set(ManaType.BLACK, mana.getBlack() * 2); } if (mana.getBlue() > 0) { mana.set(ManaType.BLUE, mana.getBlue() * 2); @@ -103,8 +102,8 @@ class ManaReflectionReplacementEffect extends ReplacementEffectImpl { if (mana.getRed() > 0) { mana.set(ManaType.RED, mana.getRed() * 2); } - if (mana.getGeneric() > 0) { - mana.set(ManaType.COLORLESS, mana.getGeneric() * 2); + if (mana.getColorless() > 0) { + mana.set(ManaType.COLORLESS, mana.getColorless() * 2); } return false; } @@ -115,7 +114,7 @@ class ManaReflectionReplacementEffect extends ReplacementEffectImpl { } @Override - public boolean applies(GameEvent event, Ability source, Game game) { + public boolean applies(GameEvent event, Ability source, Game game) { return event.getPlayerId().equals(source.getControllerId()) && game.getPermanentOrLKIBattlefield(event.getSourceId()) != null; } @@ -124,4 +123,4 @@ class ManaReflectionReplacementEffect extends ReplacementEffectImpl { public ManaReflectionReplacementEffect copy() { return new ManaReflectionReplacementEffect(this); } -} \ No newline at end of file +} diff --git a/Mage.Sets/src/mage/sets/tempest/ReflectingPool.java b/Mage.Sets/src/mage/sets/tempest/ReflectingPool.java index 54d16d44b1..1abb636666 100644 --- a/Mage.Sets/src/mage/sets/tempest/ReflectingPool.java +++ b/Mage.Sets/src/mage/sets/tempest/ReflectingPool.java @@ -127,7 +127,7 @@ class ReflectingPoolEffect extends ManaEffect { if (types.getWhite() > 0) { choice.getChoices().add("White"); } - if (types.getGeneric() > 0) { + if (types.getColorless() > 0) { choice.getChoices().add("Colorless"); } if (types.getAny() > 0) { @@ -164,7 +164,7 @@ class ReflectingPoolEffect extends ManaEffect { mana.setWhite(1); break; case "Colorless": - mana.setGeneric(1); + mana.setColorless(1); break; } checkToFirePossibleEvents(mana, game, source); @@ -198,7 +198,7 @@ class ReflectingPoolEffect extends ManaEffect { if (types.getWhite() > 0) { netManas.add(new Mana(ColoredManaSymbol.W)); } - if (types.getGeneric() > 0) { + if (types.getColorless() > 0) { netManas.add(new Mana(0, 0, 0, 0, 0, 0, 0, 1)); } return netManas; diff --git a/Mage/src/main/java/mage/abilities/effects/common/AddManaOfAnyTypeProducedEffect.java b/Mage/src/main/java/mage/abilities/effects/common/AddManaOfAnyTypeProducedEffect.java index c683f91d8a..c171f78c9b 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/AddManaOfAnyTypeProducedEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/AddManaOfAnyTypeProducedEffect.java @@ -76,7 +76,7 @@ public class AddManaOfAnyTypeProducedEffect extends ManaEffect { if (types.getWhite() > 0) { choice.getChoices().add("White"); } - if (types.getGeneric() > 0) { + if (types.getColorless() > 0) { choice.getChoices().add("Colorless"); } if (choice.getChoices().size() > 0) {