AI retreat_injured CA: fix bug in finding hexes next to healers
The CA was supposed to mark hexes next to healers as potential healing locations, but because of this bug that did not work.
This commit is contained in:
parent
fe316aec3a
commit
663a0ef8ec
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ function retreat_functions.get_healing_locations()
|
|||
local old_values = healing_locs:get(x, y) or {0, 0}
|
||||
local best_heal = math.max(old_values[0] or heal_amount)
|
||||
local best_cure = math.max(old_values[1] or cure)
|
||||
healing_locs:insert(u.x, u.y, {best_heal, best_cure})
|
||||
healing_locs:insert(x, y, {best_heal, best_cure})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue