Search in sources :

Example 1 with AddManaOfAnyColorEffect

use of mage.abilities.effects.mana.AddManaOfAnyColorEffect in project mage by magefree.

the class HarvestMageReplacementEffect method replaceEvent.

@Override
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
    ManaEvent manaEvent = (ManaEvent) event;
    Mana mana = manaEvent.getMana();
    if (game != null && game.inCheckPlayableState()) {
        mana.setToMana(new Mana(0, 0, 0, 0, 0, 0, 1, 0));
        return false;
    }
    new AddManaOfAnyColorEffect().apply(game, source);
    mana.setToMana(new Mana(0, 0, 0, 0, 0, 0, 0, 0));
    return true;
}
Also used : AddManaOfAnyColorEffect(mage.abilities.effects.mana.AddManaOfAnyColorEffect) Mana(mage.Mana) ManaEvent(mage.game.events.ManaEvent) TappedForManaEvent(mage.game.events.TappedForManaEvent)

Example 2 with AddManaOfAnyColorEffect

use of mage.abilities.effects.mana.AddManaOfAnyColorEffect in project mage by magefree.

the class PulseOfLlanowarReplacementEffect method replaceEvent.

@Override
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
    ManaEvent manaEvent = (ManaEvent) event;
    Mana mana = manaEvent.getMana();
    new AddManaOfAnyColorEffect(mana.count()).apply(game, source);
    mana.setToMana(new Mana(0, 0, 0, 0, 0, 0, 0, 0));
    return true;
}
Also used : AddManaOfAnyColorEffect(mage.abilities.effects.mana.AddManaOfAnyColorEffect) Mana(mage.Mana) ManaEvent(mage.game.events.ManaEvent) TappedForManaEvent(mage.game.events.TappedForManaEvent)

Aggregations

Mana (mage.Mana)2 AddManaOfAnyColorEffect (mage.abilities.effects.mana.AddManaOfAnyColorEffect)2 ManaEvent (mage.game.events.ManaEvent)2 TappedForManaEvent (mage.game.events.TappedForManaEvent)2