diff options
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r-- | npc/functions/util.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt index c3c1f390a..e0c1b93d8 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -931,7 +931,10 @@ function script EnterTown { if (array_find($@LOCMASTER_LOC$, .@v$) < 0) return Exception("Invalid location passed to EnterTown: "+.@v$); - LOCATION$=.@v$; + // Do not save if you're exiled + .@tpcode=POL_LocToTP(strtoupper(.@v$)); + if (!(#EXILED & .@tpcode)) + LOCATION$=.@v$; return; } |