mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- Fixed a bug in ChooseSourceAi.
This commit is contained in:
@@ -82,8 +82,7 @@ public class ChooseSourceAi extends SpellAbilityAi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final Card threatSource = topStack.getSourceCard();
|
final Card threatSource = topStack.getSourceCard();
|
||||||
List<? extends GameObject> objects = getTargets(sa);
|
List<? extends GameObject> objects = getTargets(topStack);
|
||||||
|
|
||||||
if (!topStack.usesTargeting() && topStack.hasParam("ValidPlayers") && !topStack.hasParam("Defined")) {
|
if (!topStack.usesTargeting() && topStack.hasParam("ValidPlayers") && !topStack.hasParam("Defined")) {
|
||||||
objects = AbilityUtils.getDefinedPlayers(threatSource, topStack.getParam("ValidPlayers"), topStack);
|
objects = AbilityUtils.getDefinedPlayers(threatSource, topStack.getParam("ValidPlayers"), topStack);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user