Fixes custom warper var (#8503)
Follow-up to f8c9481673a8729fc99f5cbdf94e3ab8a188d91f
This commit is contained in:
parent
4b32621c61
commit
1d9cfdb17d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user