use of mage.game.permanent.token.GreenCatToken in project mage by magefree.
the class WaitingInTheWeedsEffect 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)) {
Token token = new GreenCatToken();
int amount = game.getBattlefield().getAllActivePermanents(filter, playerId, game).size();
token.putOntoBattlefield(amount, game, source, playerId);
}
return true;
}
return false;
}
Aggregations