Make Faction Presence Harass respect AI Ignore

This commit is contained in:
AconiteX
2021-08-15 00:19:57 -04:00
parent 6f9bd5d88c
commit 7bc24e2ab7

View File

@@ -153,6 +153,10 @@ public class harass extends script.base_script
{
return SCRIPT_CONTINUE;
}
if (hasObjVar(who, "gm")) // respect /aiIgnore admin command
{
return SCRIPT_CONTINUE;
}
if (who == self || !isPlayer(who))
{
return SCRIPT_CONTINUE;
@@ -219,6 +223,10 @@ public class harass extends script.base_script
{
return SCRIPT_CONTINUE;
}
if (hasObjVar(who, "gm"))
{
return SCRIPT_CONTINUE;
}
int status = utils.getIntScriptVar(self, SCRIPTVAR_STATUS);
if (volName.equals(VOL_DETAIN))
{