Closed vaendryl closed 9 years ago
in other words, if you were to type this into the console BM.battle_dispatcher[ ['selection',sunrider] ] returns this RevertableList error, which means the except code is being run at line 909 so there is a different error going on triggering an exception
setting BM.result to ['selection',sunrider] manually though en then running BM.battle_selection works as you would assume...
removing the try-except shows this error:
While running game code:
File "game/combatlabels.rpy", line 69, in script
$BM.battle() #continue the battle
File "game/combatlabels.rpy", line 69, in <module>
$BM.battle() #continue the battle
File "game/classes.rpy", line 905, in battle
self.battle_dispatcher[self.result[0]]()
TypeError: battle_selection() takes exactly 1 argument (0 given)
which is interesting, as the only argument is self
astounding.
changing it to
self.battle_dispatcher[self.result[0]](BM)
actually seems to fix it :O
but fuck, I really need to leave for work now lol
clicking a unit will crash the game saying battle_dispatcher isn't defined.
fixing line 905 and 909 to say self.battle_dispatcher instead gives this error: