spellbook: Fix crash when using minigame word in welcome valley.
This commit is contained in:
parent
325fdddf93
commit
5151d94ac4
1 changed files with 1 additions and 1 deletions
|
@ -352,7 +352,7 @@ class Minigame(MagicWord):
|
||||||
if any((isTeleport, isRequest)):
|
if any((isTeleport, isRequest)):
|
||||||
if isTeleport and (ZoneUtil.isDynamicZone(toon.zoneId) or not toon.zoneId == mgSzId):
|
if isTeleport and (ZoneUtil.isDynamicZone(toon.zoneId) or not toon.zoneId == mgSzId):
|
||||||
return "Target needs to be in a playground to teleport to a minigame."
|
return "Target needs to be in a playground to teleport to a minigame."
|
||||||
MinigameCreatorAI.RequestMinigame[avId] = (mgId, mgKeep, mgDiff, mgSzId)
|
MinigameCreatorAI.RequestMinigame[avId] = (mgId, mgKeep, mgDiff, ToontownGlobals.ToontownCentral if ZoneUtil.isWelcomeValley(mgSzId) else mgSzId)
|
||||||
if isTeleport:
|
if isTeleport:
|
||||||
try:
|
try:
|
||||||
result = MinigameCreatorAI.createMinigame(self.air, [avId], mgSzId)
|
result = MinigameCreatorAI.createMinigame(self.air, [avId], mgSzId)
|
||||||
|
|
Loading…
Reference in a new issue