Call as
Conditions.talent.ownTrees()
Record the dependency Conditions.talent.ownTrees, then call it by that name. A namespaced call does not pass self: use a colon call or pass the object yourself.
What it does
Whether the talent trees shown are the player's own class's, so the game can name them, rather than another class's trees from the addon's shipped list.
Arguments
None.
Returns
| 1 | boolean | True when the rotation has no class context or its class is the player's. |
|---|
Editions
Built In helpers are registered on every edition. What differs is the game API they read; where one is missing the helper falls back or returns nil with a reason.
It reads no game API directly.
How the addon calls it
Conditions.talent.infoif not ownTrees() then return nil endConditions.talent.traitsWidgetlocal own=ownTrees()Conditions.talent.treeWidgetif value.tree and ownTrees() then
Source
Conditions/talent.lua, line 96. Read only in game; Duplicate makes an editable copy.
Conditions.talent.ownTrees()
local context=addon.TalentTrees.ContextClass()
return context==nil or addon.TalentTrees.IsPlayerClass(context)