From 61f00c80d8360714973d5ad9cbe6ec27eeec410d Mon Sep 17 00:00:00 2001 From: Jamie Phan <9488815+jamiephan@users.noreply.github.com> Date: Wed, 30 Dec 2020 02:34:19 +0000 Subject: [PATCH] Summoned units will also have AI behaviors --- (10)trymemode.stormmap/base.stormdata/Modules/LibUnits.galaxy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/(10)trymemode.stormmap/base.stormdata/Modules/LibUnits.galaxy b/(10)trymemode.stormmap/base.stormdata/Modules/LibUnits.galaxy index 0adf302..7bdb1f3 100644 --- a/(10)trymemode.stormmap/base.stormdata/Modules/LibUnits.galaxy +++ b/(10)trymemode.stormmap/base.stormdata/Modules/LibUnits.galaxy @@ -1738,6 +1738,7 @@ bool libUNIT_gt_SummonUnitPanelSummonButtonClicked_Func (bool testConds, bool ru lv_i = 1; for ( ; ( (auto779A4170_ai >= 0 && lv_i <= auto779A4170_ae) || (auto779A4170_ai < 0 && lv_i >= auto779A4170_ae) ) ; lv_i += auto779A4170_ai ) { libNtve_gf_CreateUnitsWithDefaultFacing(1, lv_unittype, 0, lv_player, CameraGetTarget(EventPlayer()), null); + AIAddPlayerUnit(UnitLastCreated()); UnitSetScale(UnitLastCreated(), (lv_scale * 100.0), (lv_scale * 100.0), (lv_scale * 100.0)); } } @@ -1848,6 +1849,7 @@ bool libUNIT_gt_SummonUnit_Func (bool testConds, bool runActions) { lv_i = 1; for ( ; ( (autoE55C84B8_ai >= 0 && lv_i <= autoE55C84B8_ae) || (autoE55C84B8_ai < 0 && lv_i >= autoE55C84B8_ae) ) ; lv_i += autoE55C84B8_ai ) { libNtve_gf_CreateUnitsWithDefaultFacing(1, lv_unittype, 0, lv_player, CameraGetTarget(EventPlayer()), null); + AIAddPlayerUnit(UnitLastCreated()); UnitSetScale(UnitLastCreated(), (lv_scale * 100.0), (lv_scale * 100.0), (lv_scale * 100.0)); } return true;