Remove prompting user to select creature for The True Scriptures if opponent controls none

This commit is contained in:
PurpleCrowbar 2023-09-02 03:03:54 +01:00
parent f4d6294148
commit b0b084a5dd

View file

@ -91,9 +91,12 @@ enum TheTrueScripturesAdjuster implements TargetAdjuster {
continue;
}
FilterPermanent filter = new FilterCreatureOrPlaneswalkerPermanent(
"creature or planswalker controlled by " + player.getName()
"creature or planeswalker controlled by " + player.getName()
);
filter.add(new ControllerIdPredicate(playerId));
if (game.getBattlefield().count(filter, ability.getControllerId(), ability, game) == 0) {
continue;
}
ability.addTarget(new TargetPermanent(0, 1, filter));
}
}