diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-09 17:24:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-09 17:24:11 +0300 |
commit | 59b7218021ab3456fc899ba0efffea35a6643de6 (patch) | |
tree | a0bcaa47c0d74d8cfb3f93ae791cec1bc83cb392 /src/gui/windows/skilldialog.cpp | |
parent | d9c2fc9b34fbb291b4d42bb1070fdff07cd56914 (diff) | |
download | manaverse-59b7218021ab3456fc899ba0efffea35a6643de6.tar.gz manaverse-59b7218021ab3456fc899ba0efffea35a6643de6.tar.bz2 manaverse-59b7218021ab3456fc899ba0efffea35a6643de6.tar.xz manaverse-59b7218021ab3456fc899ba0efffea35a6643de6.zip |
Add support for ground skills.
Diffstat (limited to 'src/gui/windows/skilldialog.cpp')
-rw-r--r-- | src/gui/windows/skilldialog.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp index 58a9292ae..bf317b8cd 100644 --- a/src/gui/windows/skilldialog.cpp +++ b/src/gui/windows/skilldialog.cpp @@ -708,6 +708,16 @@ void SkillDialog::useSkill(const SkillInfo *const info, break; case SkillType::Ground: + { + int x = 0; + int y = 0; + viewport->getMouseTile(x, y); + skillHandler->usePos(info->id, + info->level, + x, y); + break; + } + case SkillType::TargetTrap: // for now unused break; |