mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00: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);
|
||||
return false;
|
||||
case PRECOMBAT_MAIN:
|
||||
if (game.isActivePlayer(playerId)) {
|
||||
printOutState(game);
|
||||
if (actions.isEmpty()) {
|
||||
logger.info("Sim Calculate pre combat actions ----------------------------------------------------- ");
|
||||
calculateActions(game);
|
||||
}
|
||||
act(game);
|
||||
return true;
|
||||
} else {
|
||||
pass(game);
|
||||
// 09.03.2020:
|
||||
// in old version it passes opponent's pre-combat step (game.isActivePlayer(playerId) -> pass(game))
|
||||
// why?!
|
||||
printOutState(game);
|
||||
if (actions.isEmpty()) {
|
||||
logger.info("Sim Calculate pre combat main actions ----------------------------------------------------- ");
|
||||
calculateActions(game);
|
||||
}
|
||||
return false;
|
||||
act(game);
|
||||
return true;
|
||||
case BEGIN_COMBAT:
|
||||
pass(game);
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue