Update Urza, Academy Headmaster target selection (#4825)

Updates Urza, Academy Headmaster specific targeting code to use targetRestrictions var from the sub abilities (where the targeting restrictions are actually specified) instead of the top level SpellAbility where targetRestrictions = null.
This commit is contained in:
beemaisonp
2024-03-16 13:51:35 +00:00
committed by GitHub
parent c5192b3be2
commit 4351eff67e

View File

@@ -91,7 +91,7 @@ public class ChooseGenericEffect extends SpellAbilityEffect {
while (sa.getParam("AtRandom").equals("Urza") && i < chosenSAs.size()) {
if (!chosenSAs.get(i).usesTargeting()) {
i++;
} else if (sa.getTargetRestrictions().hasCandidates(chosenSAs.get(i))) {
} else if (chosenSAs.get(i).getTargetRestrictions().hasCandidates(chosenSAs.get(i))) {
p.getController().chooseTargetsFor(chosenSAs.get(i));
i++;
} else {