use of mage.game.permanent.token.HungryForMoreVampireToken in project mage by magefree.
the class HungryForMoreEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
Token token = new HungryForMoreVampireToken();
token.putOntoBattlefield(1, game, source, source.getControllerId());
game.addDelayedTriggeredAbility(new AtTheBeginOfNextEndStepDelayedTriggeredAbility(new SacrificeTargetEffect().setTargetPointer(new FixedTargets(token.getLastAddedTokenIds().stream().map(game::getPermanent).collect(Collectors.toList()), game)).setText("sacrifice that token")), source);
return true;
}
Aggregations