summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/filters.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/functions/filters.txt b/npc/functions/filters.txt
index 945ab8bce..ec64f3717 100644
--- a/npc/functions/filters.txt
+++ b/npc/functions/filters.txt
@@ -68,6 +68,12 @@ function script filter_hostile {
.@type=getunittype(getarg(0));
.@chkid=getarg(0);
+ // Players outside PVP
+ if (.@type == UNITTYPE_PC) {
+ if (!ispvpmap())
+ return false;
+ }
+
// Monsters
if (.@type == UNITTYPE_MOB)
return true;