forked from External/mage
Fix auto-choose targets for activated abilities and spells (#13036)
* rework Armory Automaton
* remove redundant "setRequired(false)" from effects that separate into piles
* replace setRequired(false) with minTargets 0
* remove setRequired(false) where minTargets already 0
* remove setRequired(false) where preceded by chooseUse
* Revert "Player auto-choose respects required targets (#10557)"
This reverts commit fb8424556e.
This commit is contained in:
parent
737e67963d
commit
5070f8bef7
19 changed files with 32 additions and 83 deletions
|
|
@ -370,7 +370,7 @@ public abstract class TargetImpl implements Target {
|
|||
}
|
||||
} else {
|
||||
// Try to autochoosen
|
||||
UUID autoChosenId = required ? tryToAutoChoose(playerId, source, game) : null;
|
||||
UUID autoChosenId = tryToAutoChoose(playerId, source, game);
|
||||
if (autoChosenId != null) {
|
||||
addTarget(autoChosenId, source, game);
|
||||
} else if (!targetController.chooseTarget(outcome, this, source, game)) { // If couldn't autochoose ask player
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue