From 0419f9b7ea98b9de36b6af97fccd964d3cda4750 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Jul 2016 00:06:24 +0300 Subject: Calculate damage per second for homunculus and mercenary. --- src/net/eathena/homunculusrecv.cpp | 1 + src/net/eathena/mercenaryrecv.cpp | 2 ++ 2 files changed, 3 insertions(+) (limited to 'src/net') diff --git a/src/net/eathena/homunculusrecv.cpp b/src/net/eathena/homunculusrecv.cpp index 4f6551488..2366b639b 100644 --- a/src/net/eathena/homunculusrecv.cpp +++ b/src/net/eathena/homunculusrecv.cpp @@ -151,6 +151,7 @@ void HomunculusRecv::processHomunculusInfo(Net::MessageIn &msg) PlayerInfo::setStatBase(Attributes::HOMUN_ATTACK_RANGE, range); + PlayerInfo::updateAttrs(); HomunculusInfo *const info = PlayerInfo::getHomunculus(); if (!info) // we can't find homunculus being because id is missing return; 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; -- cgit v1.2.3-60-g2f50