- Fixed ControlGainAi logic with Defined.

This commit is contained in:
Agetian
2017-01-10 05:34:05 +00:00
parent 489338b766
commit c3996d8d4a

View File

@@ -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;
} }