mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Fixed ControlGainAi logic with Defined.
This commit is contained in:
@@ -127,6 +127,10 @@ public class ControlGainAi extends SpellAbilityAi {
|
||||
list = CardLists.getValidCards(list, tgt.getValidTgts(), sa.getActivatingPlayer(), sa.getHostCard(), sa);
|
||||
|
||||
if (list.isEmpty()) {
|
||||
if (sa.hasParam("Defined")) {
|
||||
// no need to target, we'll pick up the target from Defined
|
||||
return true;
|
||||
}
|
||||
// no valid targets, so we need to bail
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user