diff options
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) |