From 52e799ac652c6edd48d250f814e259af44f92329 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 21 Sep 2015 01:44:50 +0300 Subject: Add option for auto target skill to closest target. --- src/itemshortcut.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/itemshortcut.cpp') 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)); } } } -- cgit v1.2.3-70-g09d2