diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-06 12:19:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 12:19:23 +0300 |
commit | 8a23a928d99d79b0d48961a225c3656ca42f34f0 (patch) | |
tree | 2039479c68a381b3a655633c2eb0b4f54f42c195 | |
parent | e0370f84531ba564224963f579921b126e620add (diff) | |
download | plus-8a23a928d99d79b0d48961a225c3656ca42f34f0.tar.gz plus-8a23a928d99d79b0d48961a225c3656ca42f34f0.tar.bz2 plus-8a23a928d99d79b0d48961a225c3656ca42f34f0.tar.xz plus-8a23a928d99d79b0d48961a225c3656ca42f34f0.zip |
Allow use support skill.
-rw-r--r-- | src/gui/widgets/skillinfo.h | 4 | ||||
-rw-r--r-- | src/gui/windows/skilldialog.cpp | 2 |
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; |