diff --git a/changelog b/changelog index 93e01bbe4044..6d0a7c5955d7 100644 --- a/changelog +++ b/changelog @@ -12,6 +12,7 @@ Version 1.13.0-dev: [filter_second] and invert_order= * Coward Micro AI: new optional key attack_if_trapped= * 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 progress * Lurkers Micro AI: fix bug in wander terrain selection @@ -410,7 +411,7 @@ Version 1.13.0-dev: * Image path function ~ADJUST_ALPHA added. Takes either a % or an 8-bit integer, and "multiplies" the alpha channel by this. * Multiplayer server can now handle scenarios with more than 9 sides - * [modify_side] controller= now works in networked mp. If a null-controlled side becomes alive by + * [modify_side] controller= now works in networked mp. If a null-controlled side becomes alive by [modify_side] controller=ai/human then the currently active client will be assiged controll Version 1.11.11: diff --git a/data/ai/micro_ais/cas/ca_stationed_guardian.lua b/data/ai/micro_ais/cas/ca_stationed_guardian.lua index f01890734041..36aba19b679d 100644 --- a/data/ai/micro_ais/cas/ca_stationed_guardian.lua +++ b/data/ai/micro_ais/cas/ca_stationed_guardian.lua @@ -97,6 +97,10 @@ function ca_stationed_guardian:execution(ai, cfg) -- If no enemy is within the target zone, move toward station position else 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) end