Messenger MAI bug fix: don't try to attack with messenger without weapon

This commit is contained in:
mattsc 2013-08-29 08:03:07 -07:00
parent d028a228aa
commit 2f56734d4e

View file

@ -241,6 +241,8 @@ return {
end
-- We also test whether an attack without retaliation or with little damage is possible
if (not H.get_child(messenger.__cfg, 'attack')) then return end
local targets = wesnoth.get_units {
{ "filter_side", { {"enemy_of", {side = wesnoth.current.side} } } },
{ "filter_adjacent", { id = cfg.id } }