Как вызывать
Conditions.talent.ownTrees()
Запишите зависимость Conditions.talent.ownTrees и вызывайте её по этому имени. Вызов через пространство имён не передаёт self: используйте вызов через двоеточие или передайте объект сами.
Что делает
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.
Аргументы
Нет.
Возвращает
| 1 | boolean | True when the rotation has no class context or its class is the player's. |
|---|
Издания
Встроенные помощники регистрируются во всех изданиях. Различается игровой API, который они читают; если нужного API нет, помощник использует запасной вариант или возвращает nil с причиной.
Не читает игровой API напрямую.
Как его вызывает аддон
Conditions.talent.infoif not ownTrees() then return nil endConditions.talent.traitsWidgetlocal own=ownTrees()Conditions.talent.treeWidgetif value.tree and ownTrees() then
Исходный код
Conditions/talent.lua, строка 96. В игре только для чтения; «Дублировать» создаёт редактируемую копию.
Conditions.talent.ownTrees()
local context=addon.TalentTrees.ContextClass()
return context==nil or addon.TalentTrees.IsPlayerClass(context)