refactor: removed useless getNumberOfTargets from Target (replaced with getMinNumberOfTargets)

This commit is contained in:
Oleg Agafonov 2025-05-06 23:05:39 +04:00
parent 264eb58644
commit 00dc6f4742
20 changed files with 55 additions and 63 deletions

View file

@ -539,7 +539,7 @@ public class TestPlayer implements Player {
}
// found, can use as target
if (currentTarget.getNumberOfTargets() == 1) {
if (currentTarget.getMinNumberOfTargets() == 1) {
currentTarget.clearChosen();
}
if (currentTarget.getOriginalTarget() instanceof TargetCreaturePermanentAmount) {