From 8f24400fc10658db9636e6cdd315504d75c71a5d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 20 Jan 2014 21:09:46 +0300 Subject: add attack action for pets. New pets db attributes: attackOffsetX attackOffsetY attaclDirectionType --- src/being/localplayer.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/being/localplayer.h') diff --git a/src/being/localplayer.h b/src/being/localplayer.h index 0e6ebe8a4..88a6f6754 100644 --- a/src/being/localplayer.h +++ b/src/being/localplayer.h @@ -503,6 +503,12 @@ class LocalPlayer final : public Being, std::string getGameModifiersString(); + int getLastAttackX() const override final + { return mTarget ? mTarget->getTileX() : mLastAttackX; } + + int getLastAttackY() const override final + { return mTarget ? mTarget->getTileY() : mLastAttackY; } + protected: void updateCoords() override final; -- cgit v1.2.3-60-g2f50