From 1d9cfdb17d18e255040c764c67453ea6c2b50d60 Mon Sep 17 00:00:00 2001 From: Daegaladh Date: Sun, 14 Jul 2024 23:09:50 +0200 Subject: [PATCH] Fixes custom warper var (#8503) Follow-up to f8c9481673a8729fc99f5cbdf94e3ab8a188d91f --- npc/custom/warper.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/npc/custom/warper.txt b/npc/custom/warper.txt index 445c06a4ce..5af9ed9214 100644 --- a/npc/custom/warper.txt +++ b/npc/custom/warper.txt @@ -110,18 +110,18 @@ function Pick { Go(.@map$,.@x,.@y); } function Restrict { - .@type = getarg(0); + .@type$ = getarg(0); - if (.@type == "Brasilis") { + if (.@type$ == "Brasilis") { // If the official warper to Brasilis is enabled, meaning is either // Renewal mode or Pre-renewal Brasilis is enabled, we lift the restriction if (getnpcid(0, "Crewman_bra2")) return; // Otherwise we apply the renewal restriction - .@type = "RE"; + .@type$ = "RE"; } - if ((.@type == "RE" && !checkre(0)) || (.@type == "Pre-RE" && checkre(0))) { + if ((.@type$ == "RE" && !checkre(0)) || (.@type$ == "Pre-RE" && checkre(0))) { if (getarg(1,0)) { set @warp_block,0; for (set .@i,1; .@i