mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-25 21:50:25 +00:00
Simple Attack MAI: Fix filters being ignored
This commit is contained in:
parent
d4104e01c5
commit
c8b47e48a1
@ -33,7 +33,7 @@ function wesnoth.micro_ais.hang_out(cfg)
|
||||
end
|
||||
|
||||
function wesnoth.micro_ais.simple_attack(cfg)
|
||||
local optional_keys = { "filter", "filter_second", "weapon" }
|
||||
local optional_keys = { "[filter]", "[filter_second]", "weapon" }
|
||||
local CA_parms = {
|
||||
ai_id = 'mai_simple_attack',
|
||||
{ ca_id = 'move', location = 'ca_simple_attack.lua', score = cfg.ca_score or 110000 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user