use of mage.game.permanent.token.AkoumStonewakerElementalToken in project mage by magefree.
the class ForceOfRageEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
Token token = new AkoumStonewakerElementalToken();
token.putOntoBattlefield(2, game, source, source.getControllerId());
List<Permanent> permanentList = new ArrayList();
for (UUID permId : token.getLastAddedTokenIds()) {
permanentList.add(game.getPermanent(permId));
}
Effect effect = new SacrificeTargetEffect("sacrifice those tokens");
effect.setTargetPointer(new FixedTargets(permanentList, game));
game.addDelayedTriggeredAbility(new AtTheBeginOfYourNextUpkeepDelayedTriggeredAbility(effect), source);
return true;
}
Aggregations