Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!
Value of the variable available returned by GetTalentInfo
In my experience, the first print statement in the following code reports that both "selected" and "available" are true, which is contrary to the Wowpedia description for "available":
-- Check Tier 3 Level 45 talent for Level 90 Paladin Protection spec.
local function CheckForEternalFlameTalent()
local index = 8 -- Eternal Flame is the 8th talent in the table local name = "name" local selected, available = false, false name, _, _, _, selected, available = GetTalentInfo(index) print("GetTalentInfo(", index, ") returns name: ", name, " selected: ", selected, " available: ", available) if ( selected ) then print("CLCProt: ", name, " is selected.") elseif ( available ) then -- per Wowpedia documentation for GetTalentInfo() print("CLCProt: Tier 3 Level 45 talent not chosen!") else print("CLCProt: Word of Glory is available.") end return selected
I don't know (yet) what happens when the talent is NOT selected.