mirror of
https://github.com/HerculesWS/Hercules
synced 2026-08-15 12:23:13 -04:00
Fixed Bug #7463
http://hercules.ws/board/tracker/issue-7463-gm-cant-whsiper-wheb-player-do-exall/ Signed-off-by: shennetsind <ind@henn.et>
This commit is contained in:
parent
987bfa3c05
commit
3d0fba021d
1 changed files with 7 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue