REPRO: 1) Create a spell any level. 2) Create item with charges. where the number of charges plus the spell level will be greater than 10. ie. level 7 spell. with a wand with 4 charges. 3) While adding the spell to the item, set MAX charges where the number plus the spell level would be greater than 10. 4) Open character sheet and equip the item. 5) Click on the 'SPELLS' tab.
TypeError: Cannot read property 'push' of undefined The function that appends the spell to each additional level over the spell level. incrementing the charge cost by 1 for each additional level. Gets an error because it is looking for level 10 but cant find it. It fails to 'push' to an array that doesn't exist (undefined).
REPRO:
1) Create a spell any level.
2) Create item with charges. where the number of charges plus the spell level will be greater than 10.
ie. level 7 spell. with a wand with 4 charges.
3) While adding the spell to the item, set MAX charges where the number plus the spell level would be greater than 10.
4) Open character sheet and equip the item.
5) Click on the 'SPELLS' tab.
TypeError: Cannot read property 'push' of undefined
The function that appends the spell to each additional level over the spell level. incrementing the charge cost by 1 for each additional level. Gets an error because it is looking for level 10 but cant find it. It fails to 'push' to an array that doesn't exist (undefined).
Yes. The spells tab crashes when a homebrew tries to put a level 10 spell on it. It doesn't necessarily have to be from charges.
Just bug test your homebrews before using them in a campaign or publishing them.