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;
}
Aggregations