Пользовательские дополнения
На главную
avatar.GetAbilityReplacementSpells( abilityId )
Возвращает подменяющее заклинание абилке по идентификатору её ресурса.
-- библиотека
avatar
-- объявление:
function GetAbilityReplacementSpells( abilityId )
-- параметры
id: AbilityId - идентификатор ресурса умения
-- возвращаемые значения
table of SpellId or nil - список идентификаторов ресурсов заклинания или nil если его нет, индексация с 1
-- пример использования
local abilities = avatar.GetAbilities()
local abilityInfo = avatar.GetAbilityInfo( abilities[0] )
if abilityInfo and abilityInfo.hasReplacementSpell then
local spells = avatar.GetAbilityReplacementSpells( abilities[0] ) or nil
local spellInfo = spells and spellLib.GetDescription( spells[0] ) or nil
if spellInfo then
common.LogInfo( tostring( spellInfo.name ) .. ", " )
end
end
Search: "CategoryLuaApi" "CategorySpellbook"
AbilityId
ActionGroupId
EnumSubElement
EventAbilitiesElementAdded
EventDefaultSpellChanged
EventDefaultSpellEffect
EventGlobalCooldown
EventSpellbookChanged
EventSpellbookElementAdded
EventSpellbookElementChanged
EventSpellbookElementEffect
FunctionAvatarDropSpell
FunctionAvatarGetAbilities
FunctionAvatarGetAbilityInfo
FunctionAvatarGetAbilityReplacementSpell
FunctionAvatarGetAbilityReplacementSpells
FunctionAvatarGetActionGroupSpells
FunctionAvatarGetActionGroupStatBonus
FunctionAvatarGetSpellBook
FunctionAvatarHasSpell
FunctionAvatarPrepareSpell
FunctionAvatarRunAESpell
FunctionAvatarRunSpell
FunctionItemLibGetActionGroupsInfo
FunctionSpellLibCanRunAvatar
FunctionSpellLibCanRunAvatarEx
FunctionSpellLibGetActionGroups
FunctionSpellLibGetActionGroupsDescriptions
FunctionSpellLibGetAESectorProps
FunctionSpellLibGetCooldown
FunctionSpellLibGetCurrentValues
FunctionSpellLibGetDescription
FunctionSpellLibGetDescriptionParams
FunctionSpellLibGetDurationBuff
FunctionSpellLibGetIcon
FunctionSpellLibGetObjectSpell
FunctionSpellLibGetProperties
FunctionSpellLibGetRequiredBuffs
FunctionSpellLibGetRequiredResources
FunctionSpellLibGetRequirements
FunctionSpellLibGetState
FunctionSpellLibHasDurationBuff
SpellId
CategoryLuaApi
CategoryFunction
CategorySpellbook
CategoryAvatar
На главную