mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-09-27 03:50:52 -05:00
fix some hook calls in Battle.run
This commit is contained in:
@@ -50,9 +50,9 @@ class Battle(EmulatorController):
|
||||
self.skip_crap()
|
||||
|
||||
if self.is_player_turn():
|
||||
self.hook.handle_turn()
|
||||
self.handle_turn()
|
||||
elif self.is_mandatory_switch():
|
||||
self.hook.handle_mandatory_switch()
|
||||
self.handle_mandatory_switch()
|
||||
else:
|
||||
raise BattleException("unknown state, aborting")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user