Reference › Function reference › Conditions

Conditions.talent.traitFamily

dependency

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

1booleanTrue 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

Dependencies

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"

Back to Function reference