summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-03 23:00:39 -0300
committershennetsind <ind@henn.et>2013-07-03 23:00:39 -0300
commit3d0fba021dd07b8d3a9da55e977fd80fdfb2b0ab (patch)
tree7627f00973b7c21273e0f102a9a38eed9149a794 /src/map/clif.c
parent987bfa3c05b2e76779e861057b8eea8e7e066570 (diff)
downloadhercules-3d0fba021dd07b8d3a9da55e977fd80fdfb2b0ab.tar.gz
hercules-3d0fba021dd07b8d3a9da55e977fd80fdfb2b0ab.tar.bz2
hercules-3d0fba021dd07b8d3a9da55e977fd80fdfb2b0ab.tar.xz
hercules-3d0fba021dd07b8d3a9da55e977fd80fdfb2b0ab.zip
Fixed Bug #7463
http://hercules.ws/board/tracker/issue-7463-gm-cant-whsiper-wheb-player-do-exall/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index f925fcf55..30903872d 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -10503,11 +10503,13 @@ void clif_parse_WisMessage(int fd, struct map_session_data* sd)
return;
}
- // if player ignores the source character
- ARR_FIND(0, MAX_IGNORE_LIST, i, dstsd->ignore[i].name[0] == '\0' || strcmp(dstsd->ignore[i].name, sd->status.name) == 0);
- if(i < MAX_IGNORE_LIST && dstsd->ignore[i].name[0] != '\0') { // source char present in ignore list
- clif->wis_end(fd, 2); // 2: ignored by target
- return;
+ if( pc->get_group_level(sd) <= pc->get_group_level(dstsd) ) {
+ // if player ignores the source character
+ ARR_FIND(0, MAX_IGNORE_LIST, i, dstsd->ignore[i].name[0] == '\0' || strcmp(dstsd->ignore[i].name, sd->status.name) == 0);
+ if(i < MAX_IGNORE_LIST && dstsd->ignore[i].name[0] != '\0') { // source char present in ignore list
+ clif->wis_end(fd, 2); // 2: ignored by target
+ return;
+ }
}
// notify sender of success