diff options
Diffstat (limited to 'src/being/playerinfo.cpp')
-rw-r--r-- | src/being/playerinfo.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp index d2749a9b1..07696b66c 100644 --- a/src/being/playerinfo.cpp +++ b/src/being/playerinfo.cpp @@ -553,4 +553,12 @@ void updateMoveAI() homunculusHandler->moveToMaster(); } +void updateAttackAi(const int targetId, const bool keep) +{ + if (mMercenary) + mercenaryHandler->attack(targetId, keep); + if (mHomunculus) + homunculusHandler->attack(targetId, keep); +} + } // namespace PlayerInfo |