* Fixed Batwing Brume, CankerousThirst, Invert the Skies, Moonhold, Unnerving Assault, Tin Street Hooligan, Dawnglow Infusion, Firespout where the condition if a special kind of mana was paid was always false.

This commit is contained in:
LevelX2 2014-11-06 12:14:06 +01:00
parent 20b12a1aa9
commit 813841eccd
9 changed files with 96 additions and 1 deletions

View file

@ -45,6 +45,7 @@ import mage.constants.Rarity;
import mage.filter.common.FilterAttackingCreature;
import mage.game.Game;
import mage.players.Player;
import mage.watchers.common.ManaSpentToCastWatcher;
/**
*
@ -69,6 +70,7 @@ public class BatwingBrume extends CardImpl {
new BatwingBrumeEffect(),
new ManaWasSpentCondition(ColoredManaSymbol.B), "Each player loses 1 life for each attacking creature he or she controls if {B} was spent to cast {this}"));
this.addInfo("Info1", "<i>(Do both if {W}{B} was spent.)<i>");
this.addWatcher(new ManaSpentToCastWatcher());
}

View file

@ -39,6 +39,7 @@ import mage.constants.Duration;
import mage.constants.ManaType;
import mage.constants.Rarity;
import mage.target.common.TargetCreaturePermanent;
import mage.watchers.common.ManaSpentToCastWatcher;
/**
*
@ -65,6 +66,7 @@ public class CankerousThirst extends CardImpl {
"If {G} was spent to cast {this}, you may have target creature get +3/+3 until end of turn"));
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
this.addInfo("Info1", "<i>(Do both if {B}{G} was spent.)<i>");
this.addWatcher(new ManaSpentToCastWatcher());
}
public CankerousThirst(final CankerousThirst card) {

View file

@ -47,6 +47,7 @@ import mage.constants.SubLayer;
import mage.filter.common.FilterCreaturePermanent;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.watchers.common.ManaSpentToCastWatcher;
/**
*
@ -72,6 +73,7 @@ public class InvertTheSkies extends CardImpl {
new LockedInCondition(new ManaWasSpentCondition(ColoredManaSymbol.U)),
"and creatures you control gain flying until end of turn if {U} was spent to cast it"));
this.addInfo("Info1", "<i>(Do both if {G}{U} was spent.)<i>");
this.addWatcher(new ManaSpentToCastWatcher());
}
public InvertTheSkies(final InvertTheSkies card) {

View file

@ -45,6 +45,7 @@ import mage.constants.Rarity;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.target.TargetPlayer;
import mage.watchers.common.ManaSpentToCastWatcher;
/**
*
@ -72,6 +73,7 @@ public class Moonhold extends CardImpl {
new LockedInCondition(new ManaWasSpentCondition(ColoredManaSymbol.W))));
this.getSpellAbility().addTarget(new TargetPlayer());
this.addInfo("Info1", "<i>(Do both if {R}{W} was spent.)</i>");
this.addWatcher(new ManaSpentToCastWatcher());
}
public Moonhold(final Moonhold card) {

View file

@ -40,6 +40,7 @@ import mage.constants.Rarity;
import mage.constants.TargetController;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.permanent.ControllerPredicate;
import mage.watchers.common.ManaSpentToCastWatcher;
/**
*
@ -71,6 +72,7 @@ public class UnnervingAssault extends CardImpl {
new BoostAllEffect(1, 0, Duration.EndOfTurn, filter2, false),
new ManaWasSpentCondition(ColoredManaSymbol.R), " and creatures you control get +1/0 until end of turn if {R} was spent to cast it"));
this.addInfo("Info1", "<i>(Do both if {U}{R} was spent.)</i>");
this.addWatcher(new ManaSpentToCastWatcher());
}

View file

@ -39,6 +39,7 @@ import mage.constants.CardType;
import mage.constants.ColoredManaSymbol;
import mage.constants.Rarity;
import mage.target.common.TargetArtifactPermanent;
import mage.watchers.common.ManaSpentToCastWatcher;
/**
*
@ -59,8 +60,9 @@ public class TinStreetHooligan extends CardImpl {
// When Tin Street Hooligan enters the battlefield, if {G} was spent to cast Tin Street Hooligan, destroy target artifact.
Ability ability = new EntersBattlefieldTriggeredAbility(new ConditionalOneShotEffect(new DestroyTargetEffect(), new ManaWasSpentCondition(ColoredManaSymbol.G),
"if {G} was spent to cast {this}, destroy target artifact"), false);
ability.addTarget(new TargetArtifactPermanent());
ability.addTarget(new TargetArtifactPermanent());
this.addAbility(ability);
this.addWatcher(new ManaSpentToCastWatcher());
}
public TinStreetHooligan(final TinStreetHooligan card) {

View file

@ -39,6 +39,7 @@ import mage.abilities.effects.common.GainLifeEffect;
import mage.cards.CardImpl;
import mage.constants.ColoredManaSymbol;
import mage.constants.ManaType;
import mage.watchers.common.ManaSpentToCastWatcher;
/**
*
@ -62,6 +63,7 @@ public class DawnglowInfusion extends CardImpl {
new GainLifeEffect(xValue),
new ManaWasSpentCondition(ColoredManaSymbol.W), " And X life if {W} was spent to cast it"));
this.addInfo("Info1", "<i>(Do both if {G}{W} was spent.)</i>");
this.addWatcher(new ManaSpentToCastWatcher());
}

View file

@ -39,6 +39,7 @@ import mage.constants.Rarity;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.AbilityPredicate;
import mage.watchers.common.ManaSpentToCastWatcher;
/**
*
@ -68,6 +69,7 @@ public class Firespout extends CardImpl {
new DamageAllEffect(3, filter2),
new ManaWasSpentCondition(ColoredManaSymbol.G), " And 3 damage to each creature with flying if {G} was spent to cast it"));
this.addInfo("Info1", "<i>(Do both if {R}{G} was spent.)</i>");
this.addWatcher(new ManaSpentToCastWatcher());