The fix would be to put the tanks in separate pools so the game can only pick from one tank in the pool which guarantees what tank gets picked when spawned and so I can easily turn the catapult off when the tank is defeated. It's actually not a big deal to fix, but the I don't really want to touch the mod files again because I fear I might break something on accident
