Search in sources :

Example 16 with TappedForManaEvent

use of mage.game.events.TappedForManaEvent in project mage by magefree.

the class DampingSphereIncreasementAllEffect method applies.

@Override
public boolean applies(GameEvent event, Ability source, Game game) {
    TappedForManaEvent manaEvent = (TappedForManaEvent) event;
    Permanent land = manaEvent.getPermanent();
    Mana mana = manaEvent.getMana();
    return land != null && land.isLand(game) && mana.count() > 1;
}
Also used : Mana(mage.Mana) Permanent(mage.game.permanent.Permanent) TappedForManaEvent(mage.game.events.TappedForManaEvent)

Aggregations

TappedForManaEvent (mage.game.events.TappedForManaEvent)16 Permanent (mage.game.permanent.Permanent)15 FixedTarget (mage.target.targetpointer.FixedTarget)10 Mana (mage.Mana)4 FilterCreaturePermanent (mage.filter.common.FilterCreaturePermanent)3 Choice (mage.choices.Choice)2 ChoiceColor (mage.choices.ChoiceColor)2 FilterPermanent (mage.filter.FilterPermanent)2 ManaEvent (mage.game.events.ManaEvent)2 Player (mage.players.Player)2 ObjectColor (mage.ObjectColor)1 Effect (mage.abilities.effects.Effect)1 OneShotEffect (mage.abilities.effects.OneShotEffect)1 AddManaOfAnyTypeProducedEffect (mage.abilities.effects.mana.AddManaOfAnyTypeProducedEffect)1 Card (mage.cards.Card)1 FilterControlledLandPermanent (mage.filter.common.FilterControlledLandPermanent)1 FilterLandPermanent (mage.filter.common.FilterLandPermanent)1 TargetLandPermanent (mage.target.common.TargetLandPermanent)1