Merge branch 'master' of https://github.com/wesnoth/wesnoth
This commit is contained in:
commit
db7643c253
2 changed files with 6 additions and 1 deletions
|
@ -12,6 +12,7 @@ Version 1.13.0-dev:
|
||||||
[filter_second] and invert_order=
|
[filter_second] and invert_order=
|
||||||
* Coward Micro AI: new optional key attack_if_trapped=
|
* Coward Micro AI: new optional key attack_if_trapped=
|
||||||
* Stationed Guardian Micro AI: make guard_x/y= optional keys
|
* Stationed Guardian Micro AI: make guard_x/y= optional keys
|
||||||
|
* Stationed Guardian Micro AI: bug fix for unreachable stations
|
||||||
* Messenger Escort Micro AI: bug fix for escort units blocking messenger's
|
* Messenger Escort Micro AI: bug fix for escort units blocking messenger's
|
||||||
progress
|
progress
|
||||||
* Lurkers Micro AI: fix bug in wander terrain selection
|
* Lurkers Micro AI: fix bug in wander terrain selection
|
||||||
|
|
|
@ -97,6 +97,10 @@ function ca_stationed_guardian:execution(ai, cfg)
|
||||||
-- If no enemy is within the target zone, move toward station position
|
-- If no enemy is within the target zone, move toward station position
|
||||||
else
|
else
|
||||||
local nh = AH.next_hop(guardian, cfg.station_x, cfg.station_y)
|
local nh = AH.next_hop(guardian, cfg.station_x, cfg.station_y)
|
||||||
|
if not nh then
|
||||||
|
nh = { guardian.x, guardian.y }
|
||||||
|
end
|
||||||
|
|
||||||
AH.movefull_stopunit(ai, guardian, nh)
|
AH.movefull_stopunit(ai, guardian, nh)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue