* Fixed that attacker has not always to assign all damage to multiple blockers. Improved AI behaviour of assigning damage to multiple blockers. Tries to kill blocker if possible now.

This commit is contained in:
LevelX2 2014-08-18 00:46:45 +02:00
parent 06caf2179d
commit d02f272bca
7 changed files with 82 additions and 13 deletions

View file

@ -384,7 +384,7 @@ public class RandomPlayer extends ComputerPlayer {
}
@Override
public UUID chooseBlockerOrder(List<Permanent> blockers, Game game) {
public UUID chooseBlockerOrder(List<Permanent> blockers, CombatGroup combatGroup, List<UUID> blockerOrder, Game game) {
return blockers.get(rnd.nextInt(blockers.size())).getId();
}