summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-18 18:50:18 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-18 18:50:18 +0300
commitb25bbcb39246c8add20ef391ecd62ed62311f7ad (patch)
tree16283491251224e4733233b6b3acc5005a9ad029
parent81484a53d213319299a026f5f08910e729b4b88b (diff)
downloadevol-hercules-b25bbcb39246c8add20ef391ecd62ed62311f7ad.tar.gz
evol-hercules-b25bbcb39246c8add20ef391ecd62ed62311f7ad.tar.bz2
evol-hercules-b25bbcb39246c8add20ef391ecd62ed62311f7ad.tar.xz
evol-hercules-b25bbcb39246c8add20ef391ecd62ed62311f7ad.zip
In skill casting packet also send skill level.
-rw-r--r--src/emap/clif.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/emap/clif.c b/src/emap/clif.c
index 1160d5b..964915c 100644
--- a/src/emap/clif.c
+++ b/src/emap/clif.c
@@ -1459,7 +1459,7 @@ void eclif_useskill(struct block_list* bl,
}
// for client >= 18
- const int len = 30;
+ const int len = 32;
WBUFW(buf, 0) = 0xb1e;
WBUFW(buf, 2) = len;
WBUFL(buf, 4) = src_id;
@@ -1467,9 +1467,10 @@ void eclif_useskill(struct block_list* bl,
WBUFW(buf, 12) = dst_x;
WBUFW(buf, 14) = dst_y;
WBUFW(buf, 16) = skill_id;
- WBUFL(buf, 18) = property < 0 ? 0 : property; //Avoid sending negatives as element [Skotlex]
- WBUFL(buf, 22) = casttime;
- WBUFL(buf, 26) = skill->get_splash(skill_id, skill_lv);
+ WBUFW(buf, 18) = skill_lv;
+ WBUFL(buf, 20) = property < 0 ? 0 : property; //Avoid sending negatives as element [Skotlex]
+ WBUFL(buf, 24) = casttime;
+ WBUFL(buf, 28) = skill->get_splash(skill_id, skill_lv);
if (clif->isdisguised(bl))
{