summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-18 18:17:24 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-18 18:17:24 +0300
commit4932f8c69362844326616ad18b2b7da874f54b88 (patch)
treef6042dae93a917d03cc30ecc100da394c873bab8 /src/net/eathena
parentd9bdb29ea7ac15775efd5fc2719cd40061752181 (diff)
downloadplus-4932f8c69362844326616ad18b2b7da874f54b88.tar.gz
plus-4932f8c69362844326616ad18b2b7da874f54b88.tar.bz2
plus-4932f8c69362844326616ad18b2b7da874f54b88.tar.xz
plus-4932f8c69362844326616ad18b2b7da874f54b88.zip
Play cast animation while casting skills.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/beingrecv.cpp5
-rw-r--r--src/net/eathena/beingrecv.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp
index 3970913f5..16004ac82 100644
--- a/src/net/eathena/beingrecv.cpp
+++ b/src/net/eathena/beingrecv.cpp
@@ -925,6 +925,7 @@ void BeingRecv::processSkillCasting(Net::MessageIn &msg)
srcId, dstId,
dstX, dstY,
skillId,
+ 1,
0,
castTime);
}
@@ -937,6 +938,7 @@ void BeingRecv::processSkillCasting2(Net::MessageIn &msg)
const int dstX = msg.readInt16("dst x");
const int dstY = msg.readInt16("dst y");
const int skillId = msg.readInt16("skill id");
+ const int skillLevel = msg.readInt16("skill level");
msg.readInt32("property"); // can be used to trigger effect
const int castTime = msg.readInt32("cast time");
const int range = msg.readInt32("skill range");
@@ -945,6 +947,7 @@ void BeingRecv::processSkillCasting2(Net::MessageIn &msg)
srcId, dstId,
dstX, dstY,
skillId,
+ skillLevel,
range,
castTime);
}
@@ -955,6 +958,7 @@ void BeingRecv::processSkillCastingContinue(Net::MessageIn &msg,
const int dstX,
const int dstY,
const int skillId,
+ const int skillLevel,
const int range,
const int castTime)
{
@@ -984,6 +988,7 @@ void BeingRecv::processSkillCastingContinue(Net::MessageIn &msg,
castTime);
srcBeing->addCast(dstX, dstY,
skillId,
+ skillLevel,
range,
castTime / MILLISECONDS_IN_A_TICK);
}
diff --git a/src/net/eathena/beingrecv.h b/src/net/eathena/beingrecv.h
index 317cfc3be..a8044a175 100644
--- a/src/net/eathena/beingrecv.h
+++ b/src/net/eathena/beingrecv.h
@@ -124,6 +124,7 @@ namespace EAthena
const int dstX,
const int dstY,
const int skillId,
+ const int skillLevel,
const int range,
const int castTime);
} // namespace BeingRecv