From 23e2d0cad376725396c50c470bbfa6bdc68356b7 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Mon, 7 Jan 2013 15:00:31 +0000
Subject: [PATCH] Alchemists can not loose Create Alchemist Gems by unlearning
 Extract Gem

git-svn-id: http://svn.net-core.org/repos/t-engine4@6336 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/data/talents/spells/stone-alchemy.lua | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/game/modules/tome/data/talents/spells/stone-alchemy.lua b/game/modules/tome/data/talents/spells/stone-alchemy.lua
index 042f1a47f0..8fd597d57f 100644
--- a/game/modules/tome/data/talents/spells/stone-alchemy.lua
+++ b/game/modules/tome/data/talents/spells/stone-alchemy.lua
@@ -72,14 +72,10 @@ newTalent{
 	no_npc_use = true,
 	no_unlearn_last = true,
 	on_learn = function(self, t)
-		if not self:knowTalent(self.T_CREATE_ALCHEMIST_GEMS) then
-			self:learnTalent(self.T_CREATE_ALCHEMIST_GEMS, true)
-		end
+		self:learnTalent(self.T_CREATE_ALCHEMIST_GEMS, true)
 	end,
 	on_unlearn = function(self, t)
-		if self:getTalentLevelRaw(t) == 0 and self:knowTalent(self.T_CREATE_ALCHEMIST_GEMS) then
-			self:unlearnTalent(self.T_CREATE_ALCHEMIST_GEMS)
-		end
+		self:unlearnTalent(self.T_CREATE_ALCHEMIST_GEMS)
 	end,
 	filterGem = function(self, t, o) return o.metallic and (o.material_level or 1) <= self:getTalentLevelRaw(t) end,
 	getGem = function(self, t, o)
-- 
GitLab