Skip to content
Snippets Groups Projects
Commit c48b9716 authored by LU "helminthauge"'s avatar LU "helminthauge"
Browse files

Partly fixes the bug that talents_mastery_bonus can apply multiple times in some cases.

parent e4c5873d
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ on_status_change = function(self, who, status, sub)
local p = game.party:findMember{main=true}
p:attr("forbid_arcane", 1)
if p:knowTalentType("wild-gift/antimagic") == true then
p:setTalentTypeMastery("wild-gift/antimagic", p:getTalentTypeMastery("wild-gift/antimagic") + 0.1)
p:setTalentTypeMastery("wild-gift/antimagic", p:getTalentTypeMastery("wild-gift/antimagic", true) + 0.1)
else
p:learnTalentType("wild-gift/antimagic", true)
p:learnTalent(p.T_RESOLVE, true, nil, {no_unlearn=true})
......
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