Index: ps/trunk/binaries/data/mods/public/simulation/helpers/Commands.js =================================================================== --- ps/trunk/binaries/data/mods/public/simulation/helpers/Commands.js +++ ps/trunk/binaries/data/mods/public/simulation/helpers/Commands.js @@ -1465,7 +1465,7 @@ if (formedEnts.length == 0) { - // No units support the foundation - return all the others + // No units support the formation - return all the others return nonformedUnitAIs; } @@ -1529,6 +1529,14 @@ RemoveFromFormation(cluster); + if (formationTemplate == "special/formations/null") + { + for (let ent of cluster) + nonformedUnitAIs.push(Engine.QueryInterface(ent, IID_UnitAI)); + + continue; + } + // Create the new controller var formationEnt = Engine.AddEntity(formationTemplate); var cmpFormation = Engine.QueryInterface(formationEnt, IID_Formation);