summaryrefslogtreecommitdiff
path: root/src/net/eathena/beingrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-24 00:13:24 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-24 00:13:24 +0300
commita6c1e29279d28b18012e1a87d23ff114302bd610 (patch)
tree5d2767a184b26017b43f55de9144a77e9f26edab /src/net/eathena/beingrecv.cpp
parent59607172a197cbe622dabc4619100f69067403dd (diff)
downloadplus-a6c1e29279d28b18012e1a87d23ff114302bd610.tar.gz
plus-a6c1e29279d28b18012e1a87d23ff114302bd610.tar.bz2
plus-a6c1e29279d28b18012e1a87d23ff114302bd610.tar.xz
plus-a6c1e29279d28b18012e1a87d23ff114302bd610.zip
Impliment packet SMSG_SPIRIT_BALLS.
Diffstat (limited to 'src/net/eathena/beingrecv.cpp')
-rw-r--r--src/net/eathena/beingrecv.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp
index 56fc0fbf2..f536f1c15 100644
--- a/src/net/eathena/beingrecv.cpp
+++ b/src/net/eathena/beingrecv.cpp
@@ -1436,18 +1436,11 @@ void BeingRecv::processClassChange(Net::MessageIn &msg)
void BeingRecv::processSpiritBalls(Net::MessageIn &msg)
{
- UNIMPLIMENTEDPACKET;
-
- msg.readBeingId("being id");
- msg.readInt16("spirits amount");
-}
-
-void BeingRecv::processSpiritBallSingle(Net::MessageIn &msg)
-{
- UNIMPLIMENTEDPACKET;
-
- msg.readBeingId("being id");
- msg.readInt16("spirits amount");
+ Being *const dstBeing = actorManager->findBeing(
+ msg.readBeingId("being id"));
+ const int balls = msg.readInt16("spirits amount");
+ if (dstBeing)
+ dstBeing->setSpiritBalls(balls);
}
void BeingRecv::processBladeStop(Net::MessageIn &msg)