summaryrefslogtreecommitdiff
path: root/src/itemshortcut.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-21 01:44:50 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-21 01:44:50 +0300
commit52e799ac652c6edd48d250f814e259af44f92329 (patch)
tree655a6cc9adc5a1f7179857d9d31c979ed39a1596 /src/itemshortcut.cpp
parentc4a9748e841fd8620e7e9d230aad8964f424bb08 (diff)
downloadmanaverse-52e799ac652c6edd48d250f814e259af44f92329.tar.gz
manaverse-52e799ac652c6edd48d250f814e259af44f92329.tar.bz2
manaverse-52e799ac652c6edd48d250f814e259af44f92329.tar.xz
manaverse-52e799ac652c6edd48d250f814e259af44f92329.zip
Add option for auto target skill to closest target.
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r--src/itemshortcut.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp
index b9696a2a2..681c4c0f5 100644
--- a/src/itemshortcut.cpp
+++ b/src/itemshortcut.cpp
@@ -141,7 +141,8 @@ void ItemShortcut::useItem(const int index) const
}
else if (skillDialog)
{
- skillDialog->useItem(itemId);
+ skillDialog->useItem(itemId,
+ fromBool(config.getBoolValue("skillAutotarget"), AutoTarget));
}
}
}