Call as
Conditions.talent.treeShape(value)
Record the dependency Conditions.talent.treeShape, 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
True when a TALENT condition uses the tree layout (layout nil or "tree") with both tree and talent set.
Arguments
| Name | Type | What it does |
|---|---|---|
value | table | Saved TALENT condition settings. |
Returns
| 1 | boolean | True when the value passes the check. |
|---|
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
- Talent (valid)
return treeShape(value) and integer(value.tree,1,16) and integer(value.talent,1,256) Conditions.talent.infoif treeShape(value) then
Source
Conditions/talent.lua, line 54. Read only in game; Duplicate makes an editable copy.
Conditions.talent.treeShape(value)
return (value.layout==nil or value.layout=="tree") and value.tree~=nil and value.talent~=nil