Fixed Thran Turbine.  Bug
@@ -30,11 +30,9 @@ package mage.cards.t;
import mage.ConditionalMana;
import mage.Mana;
import mage.abilities.Ability;
-import mage.abilities.SpellAbility;
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
import mage.abilities.condition.Condition;
import mage.abilities.costs.Cost;
-import mage.abilities.costs.mana.ManaCost;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.AddConditionalColorlessManaEffect;
import mage.abilities.mana.builder.ConditionalManaBuilder;
@@ -53,6 +51,7 @@ import mage.players.Player;
import java.util.HashSet;
import java.util.UUID;
+import mage.game.stack.Spell;
/**
*
@@ -145,14 +144,9 @@ class ThranTurbineManaCondition extends ManaCondition implements Condition {
@Override
public boolean apply(Game game, Ability source, UUID originalId, Cost costToPay) {
- if (!(source instanceof SpellAbility)) {
- Permanent object = game.getPermanentOrLKIBattlefield(source.getSourceId());
- if (object != null && object.getColor(game).isColorless()) {
- return true;
- }
- }
- if (costToPay instanceof ManaCost) {
- return ((ManaCost) costToPay).getText().contains("{C}");
+ if (!(source instanceof Spell)) {
+ Permanent permanent = game.getPermanentOrLKIBattlefield(source.getSourceId());
+ return permanent != null;
}
return false;
}
