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);
|
list = CardLists.getValidCards(list, tgt.getValidTgts(), sa.getActivatingPlayer(), sa.getHostCard(), sa);
|
||||||
|
|
||||||
if (list.isEmpty()) {
|
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
|
// no valid targets, so we need to bail
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user