Protect Unit MAI: fix typo in MAI removal code

This commit is contained in:
mattsc 2022-06-11 06:15:15 -07:00
parent b019bfa180
commit 7792e9b5f4

View file

@ -46,7 +46,7 @@ function wesnoth.micro_ais.protect_unit(cfg)
MAIH.delete_aspects(cfg.side, aspect_parms)
-- We also need to add the move_leader_to_keep CA back in
-- This works even if it was not removed, it simply overwrites the existing CA
wesnoth.side.add_ai_component(cfg.side, "stage[main_loop].candidate_action",
wesnoth.sides.add_ai_component(cfg.side, "stage[main_loop].candidate_action",
{
id="move_leader_to_keep",
engine="cpp",