From ec9c9dafa820ee9a84449b46549b26accb80594b Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Tue, 16 Jul 2013 01:38:47 +0200
Subject: [PATCH] mouahah

---
 game/modules/tome/class/interface/Combat.lua | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/game/modules/tome/class/interface/Combat.lua b/game/modules/tome/class/interface/Combat.lua
index 10d1e6cfd7..08a05acf39 100644
--- a/game/modules/tome/class/interface/Combat.lua
+++ b/game/modules/tome/class/interface/Combat.lua
@@ -1996,7 +1996,7 @@ function _M:getFreeHands()
 end
 
 --- Check if the actor dual wields
-function _M:hasDualWeapon()
+function _M:hasDualWeapon(type)
 	if self:attr("disarmed") then
 		return nil, "disarmed"
 	end
@@ -2007,6 +2007,8 @@ function _M:hasDualWeapon()
 	if not weapon or not offweapon or not weapon.combat or not offweapon.combat then
 		return nil
 	end
+	if type and weapon.combat.talented ~= type then return nil end
+	if type and offweapon.combat.talented ~= type then return nil end
 	return weapon, offweapon
 end
 
-- 
GitLab