High-XP Attack CA: do not use AI leader for this type of attack
Otherwise it is too easy to exploit this by baiting the AI leader to run into a trap, and it is too difficult for what it's worth to make sure the attack location is safe. If only the side leader is left to do such an attack, it's more often than not not a good idea to do so anyway.
This commit is contained in:
parent
df801eca63
commit
70b9aea5a4
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ function ca_attack_highxp:evaluation(cfg, data)
|
|||
local max_unit_level = 0
|
||||
local units = {}
|
||||
for _,unit in ipairs(attacks_aspect.own) do
|
||||
if (unit.attacks_left > 0) and (#unit.attacks > 0) then
|
||||
if (unit.attacks_left > 0) and (#unit.attacks > 0) and (not unit.canrecruit) then
|
||||
table.insert(units, unit)
|
||||
|
||||
local level = unit.level
|
||||
|
|
Loading…
Add table
Reference in a new issue