coa: extend default-realm spell IDs to CustomClass branch
CoA characters were crashing on load with table-index-is-nil at
Dcr_opt.lua:292 (DebuffsToIgnore[DS["Phase Shift"]]), then cascading
into self.db being nil at DCR_init.lua:724 and ScanTime nil arithmetic
at Dcr_LiveList.lua:389.
Root cause: D:GetSpellsTranslations populates DC.DS by iterating the
class-specific Spells table. The IsCustomClass branch added in
32324ff only filled COA_* dispel spells, but Dcr_opt.lua DebuffsToIgnore
/ BuffDebuff and DCR_init.lua SpellsToUse reference DS["Phase Shift"]
/ "SPELL_CURE_POISON" / etc. unconditionally - keys that only existed
in the heroSpells / defaultSpells branches.
Merged the IsDefaultClass and IsCustomClass branches so both share the
same defaultSpells base table; the CoA-specific dispels remain a
nested IsCustomClass-gated extension. CoA realm shares world content
with the default realm so the prefixed IDs apply; _LOST SPELL_ fallback
in GetSpellsTranslations handles any that don't resolve.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
## SavedVariables: DecursiveDB
|
||||
|
||||
## Version: Asc-1.1.1-coa (orig 2.5.1-6-gd3885c5)
|
||||
## Version: Asc-1.1.2-coa (orig 2.5.1-6-gd3885c5)
|
||||
## Author: Archarodim
|
||||
|
||||
## X-License: All Rights Reserved
|
||||
|
||||
Reference in New Issue
Block a user