diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-18 15:27:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-18 15:27:19 +0300 |
commit | 5ec1b3eaa504bc8f9443a340e579e000d4516651 (patch) | |
tree | 1273ad4e33941142a23e1b5586a45636e0d06045 /src/net | |
parent | 1ce5e20594dbf44d6311d217cdba3b217491fc0b (diff) | |
download | manaplus-5ec1b3eaa504bc8f9443a340e579e000d4516651.tar.gz manaplus-5ec1b3eaa504bc8f9443a340e579e000d4516651.tar.bz2 manaplus-5ec1b3eaa504bc8f9443a340e579e000d4516651.tar.xz manaplus-5ec1b3eaa504bc8f9443a340e579e000d4516651.zip |
Highlight skill attack range with border, while casting skill.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/beingrecv.cpp | 9 | ||||
-rw-r--r-- | src/net/eathena/beingrecv.h | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp index af5edc74d..3970913f5 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, + 0, castTime); } @@ -938,12 +939,13 @@ void BeingRecv::processSkillCasting2(Net::MessageIn &msg) const int skillId = msg.readInt16("skill id"); msg.readInt32("property"); // can be used to trigger effect const int castTime = msg.readInt32("cast time"); - msg.readInt32("skill range"); + const int range = msg.readInt32("skill range"); processSkillCastingContinue(msg, srcId, dstId, dstX, dstY, skillId, + range, castTime); } @@ -953,6 +955,7 @@ void BeingRecv::processSkillCastingContinue(Net::MessageIn &msg, const int dstX, const int dstY, const int skillId, + const int range, const int castTime) { if (!effectManager) @@ -979,6 +982,10 @@ void BeingRecv::processSkillCastingContinue(Net::MessageIn &msg, skillDialog->playCastingDstTileEffect(skillId, dstX, dstY, castTime); + srcBeing->addCast(dstX, dstY, + skillId, + range, + castTime / MILLISECONDS_IN_A_TICK); } if (srcBeing == localPlayer) localPlayer->freezeMoving(castTime / MILLISECONDS_IN_A_TICK); diff --git a/src/net/eathena/beingrecv.h b/src/net/eathena/beingrecv.h index 1a005e31f..317cfc3be 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 range, const int castTime); } // namespace BeingRecv } // namespace EAthena |