From 612ac6907762530709c28dfcea78527af2d4a707 Mon Sep 17 00:00:00 2001
From: Alexander Sedov <alex0player@gmail.com>
Date: Thu, 12 Feb 2015 21:32:59 +0300
Subject: [PATCH] God damn it 4th try

---
 game/modules/tome/class/Actor.lua                     | 5 +++--
 game/modules/tome/data/talents/cursed/cursed-aura.lua | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua
index 185d20d111..437e329417 100644
--- a/game/modules/tome/class/Actor.lua
+++ b/game/modules/tome/class/Actor.lua
@@ -1296,9 +1296,10 @@ function _M:move(x, y, force)
 	if moved and self:knowTalent(self.T_UNNATURAL_BODY) and not self:knowTalentType("cursed/cursed-aura") and self.chooseCursedAuraTree then
 		if self.player then
 			-- function placed in defiling touch where cursing logic exists
-			self.chooseCursedAuraTree = nil
 			local t = self:getTalentFromId(self.T_DEFILING_TOUCH)
-			t.chooseCursedAuraTree(self, t)
+			if t.chooseCursedAuraTree(self, t) then 
+				self.chooseCursedAuraTree = nil
+			end
 		end
 	end
 
diff --git a/game/modules/tome/data/talents/cursed/cursed-aura.lua b/game/modules/tome/data/talents/cursed/cursed-aura.lua
index 1ed2bd62b1..e87763ee69 100644
--- a/game/modules/tome/data/talents/cursed/cursed-aura.lua
+++ b/game/modules/tome/data/talents/cursed/cursed-aura.lua
@@ -181,6 +181,7 @@ newTalent{
 					"Release your hate upon the object",
 					"Suppress your affliction")
 			end
+			return choose
 		end
 	end,
 	-- updates the state of all curse effects
-- 
GitLab