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:
parent
d3e9cb3957
commit
947cbb2a45
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue