mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
fixes and new files
This commit is contained in:
parent
66d3ad1b15
commit
04ab3e11b6
7 changed files with 245 additions and 35 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue