Skip to content
Snippets Groups Projects
Commit b6aab1b7 authored by DarkGod's avatar DarkGod
Browse files

make sure Forgery of Haze cant forgery of haze

parent dd00e5d1
No related branches found
No related tags found
No related merge requests found
......@@ -380,6 +380,14 @@ function _M:learnTalent(t_id, force, nb)
return true
end
--- Actor forgets a talent completly
-- @param t_id the id of the talent to learn
-- @return true if the talent was unlearnt, nil and an error message otherwise
function _M:unlearnTalentFull(t_id)
local lvl = self:getTalentLevelRaw(t_id)
if lvl > 0 then self:unlearnTalent(t_id, lvl) end
end
--- Actor forgets a talent
-- @param t_id the id of the talent to learn
-- @return true if the talent was unlearnt, nil and an error message otherwise
......
......@@ -218,8 +218,8 @@ newTalent{
m.exp_worth = 0
m.no_inventory_access = true
m.clone_on_hit = nil
m.talents.T_CREATE_MINIONS = nil
m.talents.T_FORGERY_OF_HAZE = nil
m:unlearnTalentFull(m.T_CREATE_MINIONS)
m:unlearnTalentFull(m.T_FORGERY_OF_HAZE)
m.remove_from_party_on_death = true
m.inc_damage.all = ((100 + (m.inc_damage.all or 0)) * t.getDam(self, t)) - 100
......
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