Пользовательские дополнения
На главную
avatar.GetAbilityReplacementSpell( abilityId )
Возвращает подменяющее заклинание абилке по идентификатору её ресурса.
-- система:
GameState
-- библиотека
avatar
-- объявление:
function GetAbilityReplacementSpell( abilityId )
-- параметры
id: AbilityId - идентификатор ресурса умения
-- возвращаемые значения
SpellId or nil - идентификатор ресурса заклинания или nil если его нет
-- пример использования
local abilities = avatar.GetAbilities()
local abilityInfo = avatar.GetAbilityInfo( abilities[0] )
if abilityInfo and abilityInfo.hasReplacementSpell then
local spellId = avatar.GetAbilityReplacementSpell( abilities[0] ) or nil
local spellInfo = spellId and spellLib.GetDescription( spellId ) 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
На главную