Reference › Function reference › Conditions

Conditions.talent.ownTrees

dependency

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

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

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)

Back to Function reference