Explorar el Código

Fixes custom warper var (#8503)

Follow-up to f8c9481673a8729fc99f5cbdf94e3ab8a188d91f
Daegaladh hace 10 meses
padre
commit
1d9cfdb17d
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      npc/custom/warper.txt

+ 4 - 4
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<getargcount(); set .@i,.@i+1)