Fix: bug in battle processing