mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Consider planeswalkers with more loyalty counters better, so that AI will activate Liliana's discard ability even if opponent has no cards in hand.
This commit is contained in:
@@ -3,6 +3,7 @@ package forge.ai.simulation;
|
||||
import forge.ai.CreatureEvaluator;
|
||||
import forge.game.Game;
|
||||
import forge.game.card.Card;
|
||||
import forge.game.card.CounterType;
|
||||
import forge.game.phase.PhaseType;
|
||||
import forge.game.player.Player;
|
||||
import forge.game.zone.ZoneType;
|
||||
@@ -93,7 +94,11 @@ public class GameStateEvaluator {
|
||||
return 0;
|
||||
} else {
|
||||
// e.g. a 5 CMC permanent results in 200, whereas a 5/5 creature is ~225
|
||||
return 50 + 30 * c.getCMC();
|
||||
int value = 50 + 30 * c.getCMC();
|
||||
if (c.isPlaneswalker()) {
|
||||
value += 2 * c.getCounters(CounterType.LOYALTY);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user