summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-03-11 23:16:29 +0100
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-03-14 22:35:09 +0100
commit12de22e7008081c94631c8730d05d487e7b0cfcc (patch)
treebe98aae230d5d4e551640570d876db08949f3ae8 /src/map/clif.c
parentd92d1772e8dd2fc65fd009247b7009f26ae73b66 (diff)
downloadhercules-12de22e7008081c94631c8730d05d487e7b0cfcc.tar.gz
hercules-12de22e7008081c94631c8730d05d487e7b0cfcc.tar.bz2
hercules-12de22e7008081c94631c8730d05d487e7b0cfcc.tar.xz
hercules-12de22e7008081c94631c8730d05d487e7b0cfcc.zip
Remove map_session_data->state.itemskill_* and use map_session_data->autocast.itemskill_* instead
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 1a99a07f3..6b5c57d46 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -6766,7 +6766,7 @@ static void clif_item_skill(struct map_session_data *sd, uint16 skill_id, uint16
struct PACKET_ZC_AUTORUN_SKILL *p = WFIFOP(fd, 0);
int type = skill->get_inf(skill_id);
- if (sd->state.itemskill_castonself == 1 && sd->autocast.type == AUTOCAST_ITEM)
+ if (sd->autocast.itemskill_cast_on_self && sd->autocast.type == AUTOCAST_ITEM)
type = INF_SELF_SKILL;
p->packetType = HEADER_ZC_AUTORUN_SKILL;