mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
Fixed AI attacking not causing attack triggers
This commit is contained in:
parent
64677ed4f6
commit
4e0a5c65e3
3 changed files with 5 additions and 3 deletions
|
|
@ -153,7 +153,7 @@ public class ComputerPlayer6 extends ComputerPlayer<ComputerPlayer6> implements
|
||||||
return false;
|
return false;
|
||||||
case DECLARE_ATTACKERS:
|
case DECLARE_ATTACKERS:
|
||||||
if (game.getActivePlayerId().equals(playerId)) {
|
if (game.getActivePlayerId().equals(playerId)) {
|
||||||
declareAttackers(game, playerId);
|
//declareAttackers(game, playerId);
|
||||||
pass();
|
pass();
|
||||||
} else {
|
} else {
|
||||||
pass();
|
pass();
|
||||||
|
|
@ -1188,7 +1188,8 @@ public class ComputerPlayer6 extends ComputerPlayer<ComputerPlayer6> implements
|
||||||
@Override
|
@Override
|
||||||
public void selectAttackers(Game game) {
|
public void selectAttackers(Game game) {
|
||||||
logger.debug("selectAttackers");
|
logger.debug("selectAttackers");
|
||||||
if (combat != null) {
|
declareAttackers(game, playerId);
|
||||||
|
/*if (combat != null) {
|
||||||
UUID opponentId = game.getCombat().getDefenders().iterator().next();
|
UUID opponentId = game.getCombat().getDefenders().iterator().next();
|
||||||
String attackers = "";
|
String attackers = "";
|
||||||
for (UUID attackerId: combat.getAttackers()) {
|
for (UUID attackerId: combat.getAttackers()) {
|
||||||
|
|
@ -1199,7 +1200,8 @@ public class ComputerPlayer6 extends ComputerPlayer<ComputerPlayer6> implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
logger.info("declare attackers: " + (attackers.isEmpty() ? "none" : attackers));
|
logger.info("declare attackers: " + (attackers.isEmpty() ? "none" : attackers));
|
||||||
}
|
}*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue