Fixes wild pokemon attacking each other when you attack two and run away...

.... It also moves the attacks and debuffs into a function called attack. As well it implements a few bugs pointed out by DoYouEven.