summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-06 12:19:23 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 12:19:23 +0300
commit8a23a928d99d79b0d48961a225c3656ca42f34f0 (patch)
tree2039479c68a381b3a655633c2eb0b4f54f42c195 /src/gui
parente0370f84531ba564224963f579921b126e620add (diff)
downloadplus-8a23a928d99d79b0d48961a225c3656ca42f34f0.tar.gz
plus-8a23a928d99d79b0d48961a225c3656ca42f34f0.tar.bz2
plus-8a23a928d99d79b0d48961a225c3656ca42f34f0.tar.xz
plus-8a23a928d99d79b0d48961a225c3656ca42f34f0.zip
Allow use support skill.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/skillinfo.h4
-rw-r--r--src/gui/windows/skilldialog.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/skillinfo.h b/src/gui/widgets/skillinfo.h
index aa92b4bcb..1d9dfeacd 100644
--- a/src/gui/widgets/skillinfo.h
+++ b/src/gui/widgets/skillinfo.h
@@ -72,7 +72,9 @@ struct SkillInfo final
bool isUsable() const A_WARN_UNUSED
{
- return type == SkillType::Attack || type == SkillType::Self;
+ return type == SkillType::Attack
+ || type == SkillType::Self
+ || type == SkillType::Support;
}
};
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index a7ca3b8a0..35f33f63d 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -499,6 +499,7 @@ void SkillDialog::useSkill(const SkillInfo *const info)
switch (info->type)
{
case SkillType::Attack:
+ case SkillType::Support:
{
const Being *const being = localPlayer->getTarget();
if (being)
@@ -514,7 +515,6 @@ void SkillDialog::useSkill(const SkillInfo *const info)
break;
case SkillType::Ground:
- case SkillType::Support:
case SkillType::TargetTrap:
// for now unused
break;