- Minor logic improvement for AILogic LivingDeath.

- Renamed Classic Dominaria to Classic_Dominaria for naming consistency.
- Minor tweak to plane and set definitions.
- Updated CHANGES.txt.
This commit is contained in:
Agetian
2018-12-03 08:01:00 +03:00
parent db209a24e9
commit 72e50fdf2b
15 changed files with 20 additions and 2 deletions

View File

@@ -677,6 +677,14 @@ public class SpecialCardAi {
// Living Death (and other similar cards using AILogic LivingDeath or AILogic ReanimateAll)
public static class LivingDeath {
public static boolean consider(final Player ai, final SpellAbility sa) {
// if there's another reanimator card currently suspended, don't cast a new one until the previous
// one resolves, otherwise the reanimation attempt will be ruined (e.g. Living End)
for (Card ex : ai.getCardsIn(ZoneType.Exile)) {
if (ex.hasSVar("IsReanimatorCard") && ex.getCounters(CounterType.TIME) > 0) {
return false;
}
}
int aiBattlefieldPower = 0, aiGraveyardPower = 0;
int threshold = 320; // approximately a 4/4 Flying creature worth of extra value