1
0
mirror of https://github.com/veden/Rampant.git synced 2025-03-17 20:58:35 +02:00

Fix AI_STATE_AGGRESSIVE squad generation

This commit is contained in:
Dagothur 2021-05-13 07:50:27 -04:00
parent 00534625b3
commit 1605248a61

View File

@ -21,7 +21,7 @@ local AI_STATE_ONSLAUGHT = constants.AI_STATE_ONSLAUGHT
function aiPredicates.canAttack(map, tick)
local surface = map.surface
local goodAI = (((map.state == AI_STATE_AGGRESSIVE) and (map.canAttackTick > tick)) or
local goodAI = (((map.state == AI_STATE_AGGRESSIVE) and (map.canAttackTick < tick)) or
(map.state == AI_STATE_RAIDING) or
(map.state == AI_STATE_ONSLAUGHT))
local notPeaceful = not surface.peaceful_mode