mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 17:58:01 +00:00
AI logic for Elspeth Conquers Death
This commit is contained in:
@@ -158,6 +158,20 @@ public class ChooseGenericEffectAi extends SpellAbilityAi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return others;
|
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)) {
|
} else if ("Fatespinner".equals(logic)) {
|
||||||
SpellAbility skipDraw = null, /*skipMain = null,*/ skipCombat = null;
|
SpellAbility skipDraw = null, /*skipMain = null,*/ skipCombat = null;
|
||||||
for (final SpellAbility sp : spells) {
|
for (final SpellAbility sp : spells) {
|
||||||
|
|||||||
Reference in New Issue
Block a user