diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-04-21 05:29:42 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-05-10 21:23:47 +0200 |
commit | aa84cb9979e686e11de89a235b97f9bb30456837 (patch) | |
tree | 726c7f4146ba12b1da77755a8a8fef491ab2af23 | |
parent | a31fa955dbc4f938f953555a50f2994f02aa14e6 (diff) | |
download | hercules-aa84cb9979e686e11de89a235b97f9bb30456837.tar.gz hercules-aa84cb9979e686e11de89a235b97f9bb30456837.tar.bz2 hercules-aa84cb9979e686e11de89a235b97f9bb30456837.tar.xz hercules-aa84cb9979e686e11de89a235b97f9bb30456837.zip |
Add pc_autocast_set_current() calls
-rw-r--r-- | src/map/clif.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index ab13ffe1f..6595e6f57 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -12804,6 +12804,8 @@ static void clif_useSkillToIdReal(int fd, struct map_session_data *sd, int skill { int64 tick = timer->gettick(); + pc->autocast_set_current(sd, skill_id); + /** * According to Skotlex' comment below, the client sometimes passes 0 for the skill level. * Even though this seems to only affect guild skills, sd->autocast.skill_lv is used @@ -12953,6 +12955,8 @@ static void clif_parse_UseSkillToPosSub(int fd, struct map_session_data *sd, uin int64 tick = timer->gettick(); nullpo_retv(sd); + + pc->autocast_set_current(sd, skill_id); /** * When using clif_item_skill() to initiate the execution of ground skills, @@ -13100,6 +13104,8 @@ static void clif_parse_UseSkillMap(int fd, struct map_session_data *sd) clif_menuskill_clear(sd); return; } + + pc->autocast_set_current(sd, skill_id); /** * Since no skill level was passed use 0 to notify skill_validate_autocast_data() of this special case. |