Skip to content

Commit

Permalink
Forest Animals MAI: remove incorrect wesnoth.put_unit
Browse files Browse the repository at this point in the history
This needs to be in a synchronized event, which was added right below,
but apparently I forgot to remove this line.
  • Loading branch information
mattsc committed Feb 28, 2014
1 parent d3e9cb3 commit 947cbb2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion data/ai/micro_ais/cas/ca_forest_animals_move.lua
Expand Up @@ -155,7 +155,6 @@ function ca_forest_animals_move:execution(ai, cfg)
AH.movefull_stopunit(ai, unit, farthest_hex)
-- If this is a rabbit ending on a hole -> disappears
if (unit.type == rabbit_type) and hole_map:get(farthest_hex[1], farthest_hex[2]) then
wesnoth.put_unit(farthest_hex[1], farthest_hex[2])
local command = "wesnoth.put_unit(x1, y1)"
ai.synced_command(command, farthest_hex[1], farthest_hex[2])
end
Expand Down

0 comments on commit 947cbb2

Please sign in to comment.