mirror of
https://github.com/correl/mage.git
synced 2025-04-10 09:11:04 -09:00
* AI: fixed that computer can't use spells and abilities on opponent's pre-combat main step;
This commit is contained in:
parent
a6ab40dc57
commit
009e55c4f0
1 changed files with 9 additions and 11 deletions
|
@ -54,18 +54,16 @@ public class ComputerPlayer7 extends ComputerPlayer6 {
|
||||||
pass(game);
|
pass(game);
|
||||||
return false;
|
return false;
|
||||||
case PRECOMBAT_MAIN:
|
case PRECOMBAT_MAIN:
|
||||||
if (game.isActivePlayer(playerId)) {
|
// 09.03.2020:
|
||||||
|
// in old version it passes opponent's pre-combat step (game.isActivePlayer(playerId) -> pass(game))
|
||||||
|
// why?!
|
||||||
printOutState(game);
|
printOutState(game);
|
||||||
if (actions.isEmpty()) {
|
if (actions.isEmpty()) {
|
||||||
logger.info("Sim Calculate pre combat actions ----------------------------------------------------- ");
|
logger.info("Sim Calculate pre combat main actions ----------------------------------------------------- ");
|
||||||
calculateActions(game);
|
calculateActions(game);
|
||||||
}
|
}
|
||||||
act(game);
|
act(game);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
|
||||||
pass(game);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
case BEGIN_COMBAT:
|
case BEGIN_COMBAT:
|
||||||
pass(game);
|
pass(game);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue