spellbook: Fix AI crash caused by using invalid BossBattle command

This commit is contained in:
Samuel T 2023-11-09 02:07:17 +00:00
parent c0d5cdcff4
commit 3880f2049f

View file

@ -636,7 +636,7 @@ class BossBattle(MagicWord):
# The create command is already described when the invoker is not in a battle. These are the commands # The create command is already described when the invoker is not in a battle. These are the commands
# they can use INSIDE the battle. # they can use INSIDE the battle.
return respText + f"Unknown command: \"{command}\". Valid commands: \"start\", \"stop\", \"skip\", \"final\", \"kill\"." return f"Unknown command: \"{command}\". Valid commands: \"start\", \"stop\", \"skip\", \"final\", \"kill\"."
def __destroyBoss(self, boss): def __destroyBoss(self, boss):
bossZone = boss.zoneId bossZone = boss.zoneId