Skip to content

Commit

Permalink
ExpAI: fix bug in finding hexes next to healers
Browse files Browse the repository at this point in the history
The CA was supposed to mark hexes next to healers as potential healing locations, but because of this bug that did not work.
  • Loading branch information
mattsc committed Mar 14, 2021
1 parent 649adae commit 9b6008b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/ai/lua/retreat.lua
Expand Up @@ -98,7 +98,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
Expand Down

0 comments on commit 9b6008b

Please sign in to comment.