From aee95663caf26cc46d82c6712168b72d5a419858 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Mon, 3 Dec 2012 22:50:48 +0000 Subject: [PATCH] Automatic talent use when no foes in sight will not trigger when blind git-svn-id: http://svn.net-core.org/repos/t-engine4@5885 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/class/Player.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/game/modules/tome/class/Player.lua b/game/modules/tome/class/Player.lua index d37f3fc72a..0e1456aaba 100644 --- a/game/modules/tome/class/Player.lua +++ b/game/modules/tome/class/Player.lua @@ -649,7 +649,9 @@ function _M:automaticTalents() if c ~= 2 then self:useTalent(tid) else - self:useTalent(tid,nil,nil,nil,self) + if not self:attr("blind") then + self:useTalent(tid,nil,nil,nil,self) + end end end if c == 4 and #spotted > 0 then -- GitLab