1
0
mirror of https://github.com/veden/Rampant.git synced 2025-02-11 13:39:05 +02:00

fix for retreating rate limit

This commit is contained in:
Aaron Veden 2017-03-02 16:26:16 -08:00
parent c404e3a37c
commit 9beda7b4e1

View File

@ -226,6 +226,7 @@ local function onDeath(event)
if (deathChunk[MOVEMENT_PHEROMONE] < -(evolutionFactor * RETREAT_MOVEMENT_PHEROMONE_LEVEL)) then
if (natives.retreats >= 0) then
natives.retreats = natives.retreats - 1
retreatUnits(deathChunk,
convertUnitGroupToSquad(natives,
entity.unit_group),