RevealAi: fix missing trigger

This commit is contained in:
tool4EvEr
2022-03-06 10:18:08 +01:00
parent 0933034f98
commit a1dd44dc60

View File

@@ -24,6 +24,10 @@ public abstract class RevealAiBase extends SpellAbilityAi {
opps = Lists.newArrayList(Iterables.filter(opps, PlayerPredicates.isTargetableBy(sa))); opps = Lists.newArrayList(Iterables.filter(opps, PlayerPredicates.isTargetableBy(sa)));
if (opps.isEmpty()) { if (opps.isEmpty()) {
if (mandatory && sa.canTarget(ai)) {
sa.getTargets().add(ai);
return true;
}
return false; return false;
} }