- Reckless AI's will now trade more willingly when blocking.

This commit is contained in:
Sloth
2015-11-27 07:43:27 +00:00
parent b48eb43626
commit 96dac6e8f5

View File

@@ -736,6 +736,9 @@ public class AiBlockController {
List<Card> chumpBlockers; List<Card> chumpBlockers;
diff = (ai.getLife() * 2) - 5; // This is the minimal gain for an unnecessary trade diff = (ai.getLife() * 2) - 5; // This is the minimal gain for an unnecessary trade
if (diff > 0 && ((PlayerControllerAi) ai.getController()).getAi().getProperty(AiProps.PLAY_AGGRO).equals("true")) {
diff = 0;
}
// remove all attackers that can't be blocked anyway // remove all attackers that can't be blocked anyway
for (final Card a : attackers) { for (final Card a : attackers) {