From e02fddbbaac720d82ed01d90ad260ceb317680f5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 29 Jun 2020 14:33:13 -0300 Subject: Skills are still not honoring PVP modifiers, but they now won't work outside PVP --- npc/functions/filters.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'npc') 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; -- cgit v1.2.3-60-g2f50