Skip to main content

transform_spell

Function transform_spell 

Source
pub fn transform_spell(
    dbc: &DbcData,
    spell_id: i32,
    context: Option<&SpellKnowledgeContext>,
) -> Result<SpellDataFlat, TransformError>
Expand description

Build a fully-resolved SpellDataFlat for spell_id by joining 20+ DBC tables and applying optional class/spec context.

ยงErrors

Returns TransformError when spell_id is absent from the DBC data.