Skip to content
Snippets Groups Projects
Commit 23e2d0ca authored by dg's avatar dg
Browse files

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
parent 5c5ef545
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment