summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-09 16:56:33 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-09 17:01:31 +0300
commit8071fcbf88095bcaf54742062a4ebde87a801fd0 (patch)
treef40dd9a936e105dcbbb28a5a519889264ad86f52 /src/gui/viewport.cpp
parent53bcb5fd2f680d9a3be9f56e5fab420d83746b00 (diff)
downloadmv-8071fcbf88095bcaf54742062a4ebde87a801fd0.tar.gz
mv-8071fcbf88095bcaf54742062a4ebde87a801fd0.tar.bz2
mv-8071fcbf88095bcaf54742062a4ebde87a801fd0.tar.xz
mv-8071fcbf88095bcaf54742062a4ebde87a801fd0.zip
Allow select skill units and attack it.
Also add key for select skill unit.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index c7483b8a2..40f32457c 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -452,7 +452,8 @@ bool Viewport::leftMouseAction()
}
else if (!stopAttack &&
(type == ActorType::Monster ||
- type == ActorType::Npc))
+ type == ActorType::Npc ||
+ type == ActorType::SkillUnit))
{
if ((localPlayer->withinAttackRange(mHoverBeing) ||
inputManager.isActionActive(InputAction::ATTACK)))