Skip to content

Commit

Permalink
Simple Attack MAI: Fix filters being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Mar 28, 2016
1 parent d4104e0 commit c8b47e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/ai/micro_ais/mai-defs/misc.lua
Expand Up @@ -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 }
Expand Down

0 comments on commit c8b47e4

Please sign in to comment.