Search in sources :

Example 1 with ReturnSourceFromGraveyardToBattlefieldEffect

use of mage.abilities.effects.common.ReturnSourceFromGraveyardToBattlefieldEffect in project mage by magefree.

the class PhytotitanEffect method apply.

@Override
public boolean apply(Game game, Ability source) {
    // create delayed triggered ability
    Effect effect = new ReturnSourceFromGraveyardToBattlefieldEffect(true, true);
    effect.setText(staticText);
    DelayedTriggeredAbility delayedAbility = new AtTheBeginOfYourNextUpkeepDelayedTriggeredAbility(effect);
    game.addDelayedTriggeredAbility(delayedAbility, source);
    return true;
}
Also used : ReturnSourceFromGraveyardToBattlefieldEffect(mage.abilities.effects.common.ReturnSourceFromGraveyardToBattlefieldEffect) AtTheBeginOfYourNextUpkeepDelayedTriggeredAbility(mage.abilities.common.delayed.AtTheBeginOfYourNextUpkeepDelayedTriggeredAbility) DelayedTriggeredAbility(mage.abilities.DelayedTriggeredAbility) OneShotEffect(mage.abilities.effects.OneShotEffect) Effect(mage.abilities.effects.Effect) ReturnSourceFromGraveyardToBattlefieldEffect(mage.abilities.effects.common.ReturnSourceFromGraveyardToBattlefieldEffect) AtTheBeginOfYourNextUpkeepDelayedTriggeredAbility(mage.abilities.common.delayed.AtTheBeginOfYourNextUpkeepDelayedTriggeredAbility)

Aggregations

DelayedTriggeredAbility (mage.abilities.DelayedTriggeredAbility)1 AtTheBeginOfYourNextUpkeepDelayedTriggeredAbility (mage.abilities.common.delayed.AtTheBeginOfYourNextUpkeepDelayedTriggeredAbility)1 Effect (mage.abilities.effects.Effect)1 OneShotEffect (mage.abilities.effects.OneShotEffect)1 ReturnSourceFromGraveyardToBattlefieldEffect (mage.abilities.effects.common.ReturnSourceFromGraveyardToBattlefieldEffect)1