summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDennis Friis <peavey@inspircd.org>2009-06-24 23:23:25 +0200
committerDennis Friis <peavey@inspircd.org>2009-06-25 01:13:21 +0200
commit5d666c7c62add97158bf0267c463597cd76c95ed (patch)
treeeadc118608a5b57ec36ace6e24c537200554678d /src
parent575164bfde702bc6239c61a51dafbf6df51b5120 (diff)
downloadtmwa-5d666c7c62add97158bf0267c463597cd76c95ed.tar.gz
tmwa-5d666c7c62add97158bf0267c463597cd76c95ed.tar.bz2
tmwa-5d666c7c62add97158bf0267c463597cd76c95ed.tar.xz
tmwa-5d666c7c62add97158bf0267c463597cd76c95ed.zip
Some fixes for dupes, inspired by ea stable.
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index e28eeed..c30f319 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -6296,7 +6296,7 @@ void clif_parse_WalkToXY(int fd, struct map_session_data *sd) {
return;
}
- if (sd->npc_id != 0)
+ if (sd->npc_id != 0 || sd->state.storage_flag)
return;
if (sd->skilltimer != -1 && pc_checkskill(sd, SA_FREECAST) <= 0) // �t���[�L���X�g
@@ -6642,7 +6642,7 @@ void clif_parse_ActionRequest(int fd, struct map_session_data *sd) {
clif_clearchar_area(&sd->bl, 1);
return;
}
- if (sd->npc_id != 0 || sd->opt1 > 0 || sd->status.option & 2 ||
+ if (sd->npc_id != 0 || sd->opt1 > 0 || sd->status.option & 2 || sd->state.storage_flag ||
(sd->sc_data &&
(sd->sc_data[SC_AUTOCOUNTER].timer != -1 || //�I�[�g�J�E���^�[
sd->sc_data[SC_BLADESTOP].timer != -1 || //���n����
@@ -7233,7 +7233,7 @@ void clif_parse_UseSkillToId(int fd, struct map_session_data *sd) {
nullpo_retv(sd);
if(map[sd->bl.m].flag.noskill) return;
- if (sd->chatID || sd->npc_id != 0)
+ if (sd->chatID || sd->npc_id != 0 || sd->state.storage_flag)
return;
skilllv = RFIFOW(fd,2);
@@ -7294,7 +7294,7 @@ void clif_parse_UseSkillToPos(int fd, struct map_session_data *sd) {
nullpo_retv(sd);
if(map[sd->bl.m].flag.noskill) return;
- if (sd->npc_id != 0) return;
+ if (sd->npc_id != 0 || sd->state.storage_flag) return;
if(sd->chatID) return;
skillmoreinfo = -1;
@@ -7574,7 +7574,7 @@ void clif_parse_MoveFromKafra(int fd,struct map_session_data *sd) {
void clif_parse_MoveToKafraFromCart(int fd, struct map_session_data *sd) {
nullpo_retv(sd);
- if (sd->npc_id != 0 && !sd->npc_flags.storage)
+ if (sd->npc_id != 0 || sd->trade_partner != 0 || !sd->state.storage_flag)
return;
if (sd->state.storage_flag == 1)
storage_storageaddfromcart(sd, RFIFOW(fd,2) - 2, RFIFOL(fd,4));