I think its a bug in how the AI tries to recover so that they can fight, but since it dont have mana or stamina, its like the same if you deplete all our own stamina and mana that you have to skip turns, but in the invaders case it does not care and can attack anyways.