AI logic for Elspeth Conquers Death

This commit is contained in:
Northmoc
2021-04-08 11:03:49 -04:00
parent 3aff3c51a8
commit bb22ea3c8f

View File

@@ -158,6 +158,20 @@ public class ChooseGenericEffectAi extends SpellAbilityAi {
}
}
return others;
} else if ("Counters").equals(logic)) {
SpellAbility p1p1 = null, loyalty = null;
for (final SpellAbility sp : spells) {
if (sp.getDescription().equals("P1P1")) {
p1p1 = sp;
} else {
loyalty = sp;
}
}
if (sa.getTargetCard().getType().isPlaneswalker()) {
return loyalty;
} else {
return p1p1;
}
} else if ("Fatespinner".equals(logic)) {
SpellAbility skipDraw = null, /*skipMain = null,*/ skipCombat = null;
for (final SpellAbility sp : spells) {