Fix an issue in the new advancements-aspect
This commit is contained in:
parent
444b94bb90
commit
73ae565d8d
1 changed files with 2 additions and 1 deletions
|
@ -230,7 +230,8 @@ static int ai_attack(lua_State *L, bool exec)
|
|||
aggression = lua_tonumber(L, index + 1);
|
||||
}
|
||||
|
||||
ai::attack_result_ptr attack_result = ai::actions::execute_attack_action(side,exec,attacker,defender,attacker_weapon,aggression);
|
||||
unit_advancements_aspect advancements = context.get_advancements();
|
||||
ai::attack_result_ptr attack_result = ai::actions::execute_attack_action(side,exec,attacker,defender,attacker_weapon,aggression,advancements);
|
||||
return transform_ai_action(L,attack_result);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue