fixes and new files

This commit is contained in:
BetaSteward 2010-12-21 23:26:51 -05:00
parent 66d3ad1b15
commit 04ab3e11b6
7 changed files with 245 additions and 35 deletions

View file

@ -61,15 +61,6 @@ public class TwoPlayerDuel extends GameImpl<TwoPlayerDuel> {
return 20;
}
// @Override
// public boolean playDrawStep(UUID activePlayerId) {
// //20091005 - 103.7a
// if (getTurnNum() != 1 || !activePlayerId.equals(startingPlayerId)) {
// return super.playDrawStep(activePlayerId);
// }
// return false;
// }
@Override
public void init() {
super.init();

View file

@ -620,9 +620,11 @@ public class ComputerPlayer2 extends ComputerPlayer<ComputerPlayer2> implements
logger.fine("selectBlockers");
if (combat != null && combat.getGroups().size() > 0) {
List<CombatGroup> groups = game.getCombat().getGroups();
for (int i = 0; i< groups.size(); i++) {
for (UUID blockerId: combat.getGroups().get(i).getBlockers()) {
this.declareBlocker(blockerId, groups.get(i).getAttackers().get(0), game);
for (int i = 0; i < groups.size(); i++) {
if (i < combat.getGroups().size()) {
for (UUID blockerId: combat.getGroups().get(i).getBlockers()) {
this.declareBlocker(blockerId, groups.get(i).getAttackers().get(0), game);
}
}
}
}