@alpaca-software/40kdc-data
    Preparing search index...

    Type Alias BuffSource

    BuffSource:
        | { kind: "weapon-keyword"; weaponId: string; keywordId: string }
        | {
            kind: "ability";
            abilityId: string;
            abilityKind:
                | "army"
                | "detachment"
                | "detachment-stratagem"
                | "unit"
                | "attached"
                | "support";
            sourceUnitId?: string;
        }
        | { kind: "manual"; label: string }

    Where a buff originated. Drives stable tie-breaking inside resolveBuffs.

    Type Declaration

    • { kind: "weapon-keyword"; weaponId: string; keywordId: string }
    • {
          kind: "ability";
          abilityId: string;
          abilityKind:
              | "army"
              | "detachment"
              | "detachment-stratagem"
              | "unit"
              | "attached"
              | "support";
          sourceUnitId?: string;
      }
      • kind: "ability"
      • abilityId: string
      • abilityKind: "army" | "detachment" | "detachment-stratagem" | "unit" | "attached" | "support"
      • OptionalsourceUnitId?: string

        For abilityKind: "attached", the combined-unit member the ability came from (so the UI can name it and show its leader/bodyguard role). Absent for other kinds.

    • { kind: "manual"; label: string }