From bad5e79f6738f061502b6d4626d39cd2af84999c Mon Sep 17 00:00:00 2001 From: Matthias Schoeck Date: Mon, 15 Dec 2014 19:23:06 -0800 Subject: [PATCH] Lurkers Micro AI: bug fix for attempting to attack petrified units --- changelog | 1 + data/ai/micro_ais/cas/ca_lurkers.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog b/changelog index c7220f13f4f2..38dbda837358 100644 --- a/changelog +++ b/changelog @@ -19,6 +19,7 @@ Version 1.13.0-dev: progress * Lurkers Micro AI: fix bug in wander terrain selection * Lurkers Micro AI: bug fix for attack error when lurker runs into ambush + * Lurkers MAI: bug fix for attempting to attack petrified units * Several Micro AIs: fix a variety of rarely occurring but serious bugs, such as invalid savegames or disabling the AI from working for the rest of the turn or after changing the Micro AI settings. diff --git a/data/ai/micro_ais/cas/ca_lurkers.lua b/data/ai/micro_ais/cas/ca_lurkers.lua index a5885fec2328..ca90c7a1ba4b 100644 --- a/data/ai/micro_ais/cas/ca_lurkers.lua +++ b/data/ai/micro_ais/cas/ca_lurkers.lua @@ -20,7 +20,7 @@ end function ca_lurkers:execution(ai, cfg) local lurker = get_lurker(cfg) - local targets = wesnoth.get_units { + local targets = AH.get_live_units { { "filter_side", { { "enemy_of", { side = wesnoth.current.side } } } } }