Code: Select all
if who:knowTalentType("wild-gift/harmony") then
who:setTalentTypeMastery("wild-gift/harmony", who:getTalentTypeMastery("wild-gift/harmony") + 0.1)
elseif who:knowTalentType("wild-gift/harmony") == false then
who:learnTalentType("wild-gift/harmony", true)
else
who:learnTalentType("wild-gift/harmony", false)
end
1)If you don't have the tree(not even unlocked), you get the tree but it's locked.
2)If you do have the tree but it's locked, it's unlocked.
3)If you have the tree unlocked, you get +0.1 mastery.
1 and 2 are fine, but I think 3 is an issue - because it means you're losing out 0.1 mastery compared to someone who unlocked the tree through the heart and THEN spent a cat point.