Fix TargetsCountAdjuster to always add target even if the max is 0. (#12478)

This commit is contained in:
ssk97 2024-06-15 19:39:33 -07:00 committed by GitHub
parent 6a4f45c4c3
commit b335947afd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,8 +41,6 @@ public class TargetsCountAdjuster implements TargetAdjuster {
newTarget.withTargetName(filter.getMessage() + " (up to " + count + " targets)");
}
ability.getTargets().clear();
if (count > 0) {
ability.addTarget(newTarget);
}
ability.addTarget(newTarget);
}
}