use of mage.abilities.effects.common.SacrificeSourceEffect in project mage by magefree.
the class SacrificeSourceBeginningCleanupStepEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
Permanent cunning = game.getPermanent(source.getSourceId());
if (cunning != null) {
DelayedTriggeredAbility delayedAbility = new AtTheBeginOfNextCleanupDelayedTriggeredAbility(new SacrificeSourceEffect());
game.addDelayedTriggeredAbility(delayedAbility, source);
return true;
}
return false;
}
Aggregations