TargetControlledPermanent target = new TargetControlledPermanent(filter);
if (target.canChoose(source.getControllerId(), game)) {
if (player.choose(Outcome.Neutral, target, source.getSourceId(), game)) {
Permanent permanent = game.getPermanent(target.getFirstTarget());
if (permanent != null) {
permanent.addCounters(new Counter("phylactery"), game);
}
}
}
}
return false;