Modcraft - The community dedicated to quality WoW modding!
Wrath of the Lich King Modding => Miscellaneous => Topic started by: Rolayler on August 12, 2014, 03:55:18 am
-
Is it possible to make it so just one or two classes have a required talent point(s) one to move to the next tier of talent points? I see in the TalentsBaseFrame.lua there is a Player_Talents_Per_Tier, but I have a feeling if I modify that to one it will modify every class to require one talent point to move to the next tier.
-
You can test this, for example warrior :
-- is this talent's tier unlocked?
if ( ((tier - 1) * (TalentFrame.pet and PET_TALENTS_PER_TIER or PLAYER_TALENTS_PER_TIER) <= tabPointsSpent) ) then
tierUnlocked = 1;
else
local _, englishClass = UnitClass("player");
if englishClass == "WARRIOR" then
tierUnlocked = 1;
else
tierUnlocked = nil;
end
end