Healer Support Micro AI: bug fix for aggression= key
Key needs to converted to a number before checking its value.
This commit is contained in:
parent
b97ed9b338
commit
1951cc218e
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ function wesnoth.wml_actions.micro_ai(cfg)
|
|||
|
||||
-- The healers_can_attack CA is only added to the table if aggression ~= 0
|
||||
-- But: make sure we always try removal
|
||||
if (cfg.action == 'delete') or (cfg.aggression ~= 0) then
|
||||
if (cfg.action == 'delete') or (tonumber(cfg.aggression) ~= 0) then
|
||||
table.insert(CA_parms,
|
||||
{
|
||||
id = 'healers_can_attack', eval_name = 'healers_can_attack_eval', exec_name = 'healers_can_attack_exec',
|
||||
|
|
Loading…
Add table
Reference in a new issue