- Joined
- Jul 21, 2024
- Messages
- 2
I wanted to dynamically modify spell list of spellbook with BlzSetAbilityStringLevelField, but it just do nothing with ABILITY_SLF_SPELL_LIST field.
code is like this, A003 is spellbook.
code is like this, A003 is spellbook.
Lua:
local a = BlzGetUnitAbility(u, FourCC('A003'))
print(BlzGetAbilityStringLevelField(a, ABILITY_SLF_SPELL_LIST, 0))
IncUnitAbilityLevel(u, FourCC('A003'))
BlzSetAbilityStringLevelField(a, ABILITY_SLF_SPELL_LIST, 0, '')
DecUnitAbilityLevel(u, FourCC('A003'))
print(BlzGetAbilityStringLevelField(a, ABILITY_SLF_SPELL_LIST, 0))