use of mage.game.permanent.token.ThopterColorlessToken in project mage by magefree.
the class LoyalApprenticeEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
Token token = new ThopterColorlessToken();
token.putOntoBattlefield(1, game, source, source.getControllerId());
game.addEffect(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn).setTargetPointer(new FixedTargets(token.getLastAddedTokenIds().stream().map(game::getPermanent).filter(Objects::nonNull).collect(Collectors.toList()), game)), source);
return true;
}
Aggregations