Skip to content

Commit

Permalink
Fast Micro AI: fix attack_filter when excluding leader
Browse files Browse the repository at this point in the history
“canrecruit = nil” does not give the same result as “canrecruit =
false” in a standard unit filter.
  • Loading branch information
mattsc committed Oct 20, 2016
1 parent 4167242 commit 25eb3dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/ai/micro_ais/cas/ca_fast_attack_utils.lua
Expand Up @@ -31,6 +31,7 @@ function ca_fast_attack_utils.get_avoid_map(cfg)
end

local function attack_filter(which, filter, is_leader)
if (is_leader == nil) then is_leader = false end
if (which == 'leader') then
which = 'own'
is_leader = true
Expand Down

0 comments on commit 25eb3dd

Please sign in to comment.