diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-03-12 00:24:35 +0100 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-03-14 22:35:10 +0100 |
commit | 44581f9de0df3ab18b719e55f793dc22bd2fcb72 (patch) | |
tree | 5c26e03b55e19a87132e4adc36de109c380efcca /src/map/clif.c | |
parent | 10312bc4329e16a4b4420131cb976ef9fa6a13f5 (diff) | |
download | hercules-44581f9de0df3ab18b719e55f793dc22bd2fcb72.tar.gz hercules-44581f9de0df3ab18b719e55f793dc22bd2fcb72.tar.bz2 hercules-44581f9de0df3ab18b719e55f793dc22bd2fcb72.tar.xz hercules-44581f9de0df3ab18b719e55f793dc22bd2fcb72.zip |
Remove skillitem and skillitemlv variables and use map_session_data->autocast.skill_id/_lv instead
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 074ca570b..66a3d84c9 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -12786,8 +12786,8 @@ static void clif_useSkillToIdReal(int fd, struct map_session_data *sd, int skill return; //Can't use skills while a menu is open. } if (sd->autocast.type != AUTOCAST_NONE) { - if (skill_lv != sd->skillitemlv) - skill_lv = sd->skillitemlv; + if (skill_lv != sd->autocast.skill_lv) + skill_lv = sd->autocast.skill_lv; if (!(tmp&INF_SELF_SKILL)) pc->delinvincibletimer(sd); // Target skills through items cancel invincibility. [Inkfish] unit->skilluse_id(&sd->bl, target_id, skill_id, skill_lv); @@ -12927,8 +12927,8 @@ static void clif_parse_UseSkillToPosSub(int fd, struct map_session_data *sd, uin pc->delinvincibletimer(sd); if (sd->autocast.type != AUTOCAST_NONE) { - if( skill_lv != sd->skillitemlv ) - skill_lv = sd->skillitemlv; + if (skill_lv != sd->autocast.skill_lv) + skill_lv = sd->autocast.skill_lv; unit->skilluse_pos(&sd->bl, x, y, skill_id, skill_lv); } else { int lv; |