diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-24 00:13:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-24 00:13:24 +0300 |
commit | a6c1e29279d28b18012e1a87d23ff114302bd610 (patch) | |
tree | 5d2767a184b26017b43f55de9144a77e9f26edab /src/net/eathena/beingrecv.cpp | |
parent | 59607172a197cbe622dabc4619100f69067403dd (diff) | |
download | manaplus-a6c1e29279d28b18012e1a87d23ff114302bd610.tar.gz manaplus-a6c1e29279d28b18012e1a87d23ff114302bd610.tar.bz2 manaplus-a6c1e29279d28b18012e1a87d23ff114302bd610.tar.xz manaplus-a6c1e29279d28b18012e1a87d23ff114302bd610.zip |
Impliment packet SMSG_SPIRIT_BALLS.
Diffstat (limited to 'src/net/eathena/beingrecv.cpp')
-rw-r--r-- | src/net/eathena/beingrecv.cpp | 17 |
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) |