Index: binaries/data/mods/public/simulation/components/Formation.js =================================================================== --- binaries/data/mods/public/simulation/components/Formation.js +++ binaries/data/mods/public/simulation/components/Formation.js @@ -75,6 +75,7 @@ Formation.prototype.Init = function() { + this.requiredMemberCount = this.template.RequiredMemberCount; this.formationShape = this.template.FormationShape; this.sortingClasses = this.template.SortingClasses.split(/\s+/g); this.sortingOrder = this.template.SortingOrder; @@ -345,7 +346,7 @@ this.formationMembersWithAura = this.formationMembersWithAura.filter(function(e) { return ents.indexOf(e) == -1; }); // If there's nobody left, destroy the formation - if (this.members.length == 0) + if (this.members.length == 0 || this.members.length < this.requiredMemberCount) { Engine.DestroyEntity(this.entity); return;