use of mage.game.permanent.token.ElephantResurgenceToken in project mage by magefree.
the class ElephantResurgenceEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
if (controller != null) {
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
Effect effect = new CreateTokenTargetEffect(new ElephantResurgenceToken(), 1);
effect.setTargetPointer(new FixedTarget(playerId));
effect.apply(game, source);
}
return true;
}
return false;
}
Aggregations