From 19d5a1ca912c89d46ea567079777d0fff1211c25 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Sep 2014 23:13:19 +0300 Subject: Add simple attack logic for mercenary and homunculus. --- src/being/localplayer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/being/localplayer.cpp') diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index a160896fb..819032af7 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -771,7 +771,9 @@ void LocalPlayer::attack(Being *const target, const bool keep, if (!dontChangeEquipment) changeEquipmentBeforeAttack(target); - playerHandler->attack(target->getId(), mServerAttack); + const int targetId = target->getId(); + playerHandler->attack(targetId, mServerAttack); + PlayerInfo::updateAttackAi(targetId, mServerAttack); } if (!keep) -- cgit v1.2.3-70-g09d2