Call as
Conditions.talent.traitFamily()
Record the dependency Conditions.talent.traitFamily, 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 the client uses trait talents, that is the retail or forever client families.
Arguments
None.
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
- Primary Talent Tree (evaluate)
if traitFamily() then - Talent Tree Points (evaluate)
if traitFamily() then
Dependencies
platform(builtin:Conditions/talent.lua:platform)
Source
Conditions/talent.lua, line 78. Read only in game; Duplicate makes an editable copy.
Conditions.talent.traitFamily()
local family=platform:GetClientFamily()
return family=="retail" or family=="forever"