Skip to content
#711
Auto-translated
Thank you very much! P.S. It didn't work on neutral monsters, but to make it work, you can do the following: function ReturnArmy(combat) local n_stacks, id, count, died n_stacks = GetSavedCombatArmyCreaturesCount(combat, 1) for i = 0, (n_stacks - 1) do id, count, died = GetSavedCombatArmyCreatureInfo(combat, 1, i) if died > 0 then AddHeroCreatures(GetSavedCombatArmyHero(combat, 1), id, died) end end end Trigger(COMBAT_RESULTS_TRIGGER, 'ReturnArmy')