My version looks the same as your screenshot (has all the same code at line 270), but this crash still happened on this version somehow. My mistake, it was different, I just hadn't noticed the "this.battler &&". Thanks!