summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;