trolley: fix district crash when requesting a minigame

This commit is contained in:
demiurgeQuantified 2023-05-19 18:44:37 +01:00
parent 63051a26cf
commit 5be4056d2f

View file

@ -335,7 +335,7 @@ class Minigame(MagicWord):
mgId = None
mgDiff = None if difficulty == 0 else difficulty
mgKeep = None
mgSzId = ZoneUtil.getSafeZoneId(toon.zoneId) if isTeleport else None
mgSzId = ZoneUtil.getSafeZoneId(toon.zoneId)
if not any ((isTeleport, isRequest)):
return f"Unknown command or minigame \"{command}\". Valid commands: \"teleport\", \"request\", or a minigame to automatically teleport or request"