for (Effect effect : ability.getEffects()) {
if (effect instanceof DestroyTargetEffect) {
Player attackedPlayer = game.getPlayer(effect.getTargetPointer().getFirst(game, ability));
if (attackedPlayer != null) {
ability.getTargets().clear();
FilterPermanent filterEnchantment = new FilterEnchantmentPermanent("enchantment attacked player controls");
filterEnchantment.add(new ControllerIdPredicate(attackedPlayer.getId()));
Target target = new TargetPermanent(filterEnchantment);
ability.addTarget(target);
effect.setTargetPointer(new FirstTargetPointer());
break;
}