Пользовательские дополнения
На главную
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
EventSpellbookChanged
EventSpellbookElementAdded
EventSpellbookElementChanged
EventSpellbookElementEffect
FunctionAvatarGetAbilities
FunctionAvatarGetAbilityInfo
FunctionAvatarGetAbilityReplacementSpell
FunctionAvatarGetAbilityReplacementSpells
FunctionAvatarGetActionGroupSpells
FunctionAvatarGetActionGroupStatBonus
FunctionAvatarGetSpellBook
FunctionAvatarIsBuffDisease
FunctionAvatarIsBuffMagic
FunctionAvatarIsBuffPoison
FunctionAvatarRunAESpell
FunctionAvatarRunSpell
FunctionItemLibGetActionGroupsInfo
FunctionSpellLibBuffsCanDispel
FunctionSpellLibCanRunAvatar
FunctionSpellLibCanRunAvatarEx
FunctionSpellLibGetActionGroups
FunctionSpellLibGetAESectorProps
FunctionSpellLibGetCooldown
FunctionSpellLibGetCurrentValues
FunctionSpellLibGetDescription
FunctionSpellLibGetDurationBuff
FunctionSpellLibGetGroups
FunctionSpellLibGetGroupsDescriptions
FunctionSpellLibGetIcon
FunctionSpellLibGetObjectSpell
FunctionSpellLibGetProperties
FunctionSpellLibGetRequiredBuffs
FunctionSpellLibGetRequiredResources
FunctionSpellLibGetRequirements
FunctionSpellLibGetState
FunctionSpellLibHasDurationBuff
SpellId
CategoryLuaApi
CategoryFunction
CategorySpellbook
CategoryAvatar
На главную