diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-27 00:06:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-27 00:06:24 +0300 |
commit | 0419f9b7ea98b9de36b6af97fccd964d3cda4750 (patch) | |
tree | 254ebf5626fc22f9ef1730b3e4f1a55233d5e076 /src/net/eathena/mercenaryrecv.cpp | |
parent | fab734c769e590b086096e29a498a5a4d71d1946 (diff) | |
download | manaplus-0419f9b7ea98b9de36b6af97fccd964d3cda4750.tar.gz manaplus-0419f9b7ea98b9de36b6af97fccd964d3cda4750.tar.bz2 manaplus-0419f9b7ea98b9de36b6af97fccd964d3cda4750.tar.xz manaplus-0419f9b7ea98b9de36b6af97fccd964d3cda4750.zip |
Calculate damage per second for homunculus and mercenary.
Diffstat (limited to 'src/net/eathena/mercenaryrecv.cpp')
-rw-r--r-- | src/net/eathena/mercenaryrecv.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/eathena/mercenaryrecv.cpp b/src/net/eathena/mercenaryrecv.cpp index 350ba5967..3f338e61a 100644 --- a/src/net/eathena/mercenaryrecv.cpp +++ b/src/net/eathena/mercenaryrecv.cpp @@ -90,6 +90,8 @@ void MercenaryRecv::processMercenaryInfo(Net::MessageIn &msg) const int range = msg.readInt16("attack range"); PlayerInfo::setStatBase(Attributes::MERC_ATTACK_RANGE, range); + PlayerInfo::updateAttrs(); + if (dstBeing && localPlayer) { MercenaryInfo *const mercenary = new MercenaryInfo; |