Hi all, I've recently started working on a fairly simple editor project, however I've quickly run into a very strange bug. So far, I've duplicated both the DOM trooper and the barracks and spruced them up a bit, pretty much just playing with the actors, models, and weapons. I also tried to create a new train ability for the custom barracks to allow it to train the units that I want. I wanted for the troopers to always be produced in groups of two, so I went to info -> unit in the train ability and added a second trooper. It worked just fine the first time I tested it, having a cost of 100 minerals and 2 supply and producing 2 units. However, every other time I've tried to test it, it always produces exactly double the amount of units I want, with ANY unit.
I have two abilities in the attached mod file, 'Barracks - Train' which is a modified version of the base game train (all it does is produce my trooper instead of the base game trooper) and 'Husal Barracks - Train' which is a duplicated version of the barracks train ability. Both have the exact same stats, settings, everything. I gave my custom barracks both of the abilities and let it produce troopers from each ability. For some reason, the modified base game ability produces one trooper per use (as it should), but the duplicated ability produces two troopers per use, even if it is only set to produce one. If I set it to produce two troopers, it instead produces four. I've also tried replacing troopers with marines- same bug. It always produces two for the duplicated ability and one for the base game ability.
I am at a loss to explain why this is happening. If anyone more experienced could help, I would greatly appreciate it. For the attached files, horus.SC2Mod is the dependent mod, debug.SC2Map is the map I am using for testing.