mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user