* Chrom Mox - fixed that tapped for mana replacement effects ignore his mana;

This commit is contained in:
Oleg Agafonov 2020-01-12 10:09:51 +04:00
parent 589142aeb5
commit 860c57d9d9
4 changed files with 80 additions and 17 deletions

View file

@ -192,24 +192,28 @@ class ChromeMoxManaEffect extends ManaEffect {
}
switch (choice.getChoice()) {
case "Black":
player.getManaPool().addMana(Mana.BlackMana(1), game, source);
//player.getManaPool().addMana(Mana.BlackMana(1), game, source);
mana.add(Mana.BlackMana(1));
break;
case "Blue":
player.getManaPool().addMana(Mana.BlueMana(1), game, source);
//player.getManaPool().addMana(Mana.BlueMana(1), game, source);
mana.add(Mana.BlueMana(1));
break;
case "Red":
player.getManaPool().addMana(Mana.RedMana(1), game, source);
//player.getManaPool().addMana(Mana.RedMana(1), game, source);
mana.add(Mana.RedMana(1));
break;
case "Green":
player.getManaPool().addMana(Mana.GreenMana(1), game, source);
//player.getManaPool().addMana(Mana.GreenMana(1), game, source);
mana.add(Mana.GreenMana(1));
break;
case "White":
player.getManaPool().addMana(Mana.WhiteMana(1), game, source);
//player.getManaPool().addMana(Mana.WhiteMana(1), game, source);
mana.add(Mana.WhiteMana(1));
break;
default:
break;
}
}
return mana;
}

View file

@ -1,34 +1,28 @@
package mage.cards.m;
import java.util.UUID;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.ReplacementEffectImpl;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.ManaType;
import mage.constants.Outcome;
import mage.constants.Zone;
import mage.constants.*;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.game.events.ManaEvent;
import java.util.UUID;
/**
*
* @author jeffwadsworth
*/
public final class ManaReflection extends CardImpl {
public ManaReflection(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{4}{G}{G}");
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{4}{G}{G}");
// If you tap a permanent for mana, it produces twice as much of that mana instead.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ManaReflectionReplacementEffect()));
}
public ManaReflection(final ManaReflection card) {