Messenger MAI bug fix: don't try to attack with messenger without weapon
This commit is contained in:
parent
d028a228aa
commit
2f56734d4e
1 changed files with 2 additions and 0 deletions
|
@ -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 } }
|
||||
|
|
Loading…
Add table
Reference in a new issue