Forest Animals MAI: remove incorrect wesnoth.put_unit

This needs to be in a synchronized event, which was added right below,
but apparently I forgot to remove this line.
This commit is contained in:
mattsc 2014-02-27 16:08:38 -08:00
parent d3e9cb3957
commit 947cbb2a45

View file

@ -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