summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
authorcodemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-13 02:16:51 +0000
committercodemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-13 02:16:51 +0000
commit996a25cabc3c5be0ac8a5c4a46123e076b07af39 (patch)
tree573c407394a6338db6e2083a702386abf8a6a4c1 /src/map/intif.c
parentbaff4da7ab8cf41ac0313c7a0e4d2c6685217eb1 (diff)
downloadhercules-996a25cabc3c5be0ac8a5c4a46123e076b07af39.tar.gz
hercules-996a25cabc3c5be0ac8a5c4a46123e076b07af39.tar.bz2
hercules-996a25cabc3c5be0ac8a5c4a46123e076b07af39.tar.xz
hercules-996a25cabc3c5be0ac8a5c4a46123e076b07af39.zip
Fixed Attacking Mobs by using a file from FREYA (thanks MagicalTux and Yor)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@141 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index 5b5ddc8d7..67521599b 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -623,20 +623,26 @@ int intif_parse_WisMessage(int fd) { // rewritten by [Yor]
// printf("intif_parse_wismessage: %d %s %s %s\n",id,RFIFOP(fd,6),RFIFOP(fd,30),RFIFOP(fd,54) );
sd=map_nick2sd(RFIFOP(fd,32)); // 送信先を探す
- if(sd!=NULL){
+ if(sd!=NULL && strcmp(sd->status.name, RFIFOP(fd,32)) == 0){
+/*
for(i=0;i<MAX_WIS_REFUSAL;i++){ //拒否リストに名前があるかどうか判定してあれば拒否
if(strcmp(sd->wis_refusal[i],RFIFOP(fd,8))==0){
j++;
break;
}
}
- if(sd->wis_all)
- intif_wis_replay(id,3); // 受信拒否
+*/
+ if(sd->ignoreAll == 1)
+ intif_wis_replay(RFIFOL(fd,4), 2); // 受信拒否
+/*
else if(j>0)
intif_wis_replay(id,2); // 受信拒否
+
else{
+*/
+ if(i == MAX_IGNORE_LIST) {
clif_wis_message(sd->fd,RFIFOP(fd,8),RFIFOP(fd,56),RFIFOW(fd,2)-56);
- intif_wis_replay(id,0); // 送信成功
+ intif_wis_replay(RFIFOL(fd,4),0); // 送信成功
}
}else
intif_wis_replay(id,1); // そんな人いません