Turn-based combat - turn starts for two allies

Ok, when it built turn order the second time there was an ally that is not in my party and it’s the one that i swaped out before the fight