cleanup calls to respect range of influence

This commit is contained in:
xenohedron 2024-06-02 02:42:13 -04:00
parent 156c474df8
commit 4025b312ad
29 changed files with 39 additions and 41 deletions

View file

@ -63,7 +63,7 @@ public class UntapLandsEffect extends OneShotEffect {
if (upTo) {
tappedLands = game.getBattlefield().getAllActivePermanents(filter, controller.getId(), game).size();
} else {
tappedLands = game.getBattlefield().getAllActivePermanents(filter, game).size();
tappedLands = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source, game).size();
}
TargetLandPermanent target = new TargetLandPermanent(upTo ? 0 : Math.min(tappedLands, amount), amount, filter, true);
if (target.canChoose(source.getControllerId(), source, game)) {