diff options
author | Jesusaves <cpntb1@ymail.com> | 2023-07-01 16:03:05 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2023-07-01 16:03:05 -0300 |
commit | fef1065106944e3af81e6929cd52be6a138bb95c (patch) | |
tree | 3fa6e8aff1fb0d820f5164861f3b641836b4c473 | |
parent | d2a083a42ebafd549243fb49d2b3adea5c6a8f86 (diff) | |
download | serverdata-fef1065106944e3af81e6929cd52be6a138bb95c.tar.gz serverdata-fef1065106944e3af81e6929cd52be6a138bb95c.tar.bz2 serverdata-fef1065106944e3af81e6929cd52be6a138bb95c.tar.xz serverdata-fef1065106944e3af81e6929cd52be6a138bb95c.zip |
Fix obscure filter bug reported by Hocus
-rw-r--r-- | npc/functions/filters.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/filters.txt b/npc/functions/filters.txt index bb4d8d6dd..c97b81675 100644 --- a/npc/functions/filters.txt +++ b/npc/functions/filters.txt @@ -76,11 +76,11 @@ function script filter_hostile { // FIXME: We already have !(filter_sameguildorparty()) // We might be over-processing this // Honor party flag - if (!getmapflag(.@mapa$, mf_pvp_noparty) && + if (!getmapflag(.@m$, mf_pvp_noparty) && getcharid(1) == getcharid(1, strcharinfo(0, "", .@chkid))) return false; // Honor guild flag - if (!getmapflag(.@mapa$, mf_pvp_noguild) && + if (!getmapflag(.@m$, mf_pvp_noguild) && getcharid(2) == getcharid(2, strcharinfo(0, "", .@chkid))) return false; } |