From f83e2c045a0ef035f724018611a242cdb1c28862 Mon Sep 17 00:00:00 2001 From: Rosen Rusinov Date: Tue, 12 Mar 2024 09:32:43 +0100 Subject: [PATCH] fix spec creation copy/paste errors --- ui/core/proto_utils/utils.ts | 216 +++++++++++++++++------------------ 1 file changed, 108 insertions(+), 108 deletions(-) diff --git a/ui/core/proto_utils/utils.ts b/ui/core/proto_utils/utils.ts index ed637cfeaf..77aab40cac 100644 --- a/ui/core/proto_utils/utils.ts +++ b/ui/core/proto_utils/utils.ts @@ -620,11 +620,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => BloodDeathKnight_Rotation.toJson(a as BloodDeathKnight_Rotation), rotationFromJson: obj => BloodDeathKnight_Rotation.fromJson(obj), - talentsCreate: () => DruidTalents.create(), - talentsEquals: (a, b) => DruidTalents.equals(a as DruidTalents, b as DruidTalents), - talentsCopy: a => DruidTalents.clone(a as DruidTalents), - talentsToJson: a => DruidTalents.toJson(a as DruidTalents), - talentsFromJson: obj => DruidTalents.fromJson(obj), + talentsCreate: () => DeathKnightTalents.create(), + talentsEquals: (a, b) => DeathKnightTalents.equals(a as DeathKnightTalents, b as DeathKnightTalents), + talentsCopy: a => DeathKnightTalents.clone(a as DeathKnightTalents), + talentsToJson: a => DeathKnightTalents.toJson(a as DeathKnightTalents), + talentsFromJson: obj => DeathKnightTalents.fromJson(obj), optionsCreate: () => BloodDeathKnight_Options.create({ classOptions: {} }), optionsEquals: (a, b) => BloodDeathKnight_Options.equals(a as BloodDeathKnight_Options, b as BloodDeathKnight_Options), @@ -643,11 +643,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => FrostDeathKnight_Rotation.toJson(a as FrostDeathKnight_Rotation), rotationFromJson: obj => FrostDeathKnight_Rotation.fromJson(obj), - talentsCreate: () => DruidTalents.create(), - talentsEquals: (a, b) => DruidTalents.equals(a as DruidTalents, b as DruidTalents), - talentsCopy: a => DruidTalents.clone(a as DruidTalents), - talentsToJson: a => DruidTalents.toJson(a as DruidTalents), - talentsFromJson: obj => DruidTalents.fromJson(obj), + talentsCreate: () => DeathKnightTalents.create(), + talentsEquals: (a, b) => DeathKnightTalents.equals(a as DeathKnightTalents, b as DeathKnightTalents), + talentsCopy: a => DeathKnightTalents.clone(a as DeathKnightTalents), + talentsToJson: a => DeathKnightTalents.toJson(a as DeathKnightTalents), + talentsFromJson: obj => DeathKnightTalents.fromJson(obj), optionsCreate: () => FrostDeathKnight_Options.create({ classOptions: {} }), optionsEquals: (a, b) => FrostDeathKnight_Options.equals(a as FrostDeathKnight_Options, b as FrostDeathKnight_Options), @@ -666,11 +666,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => UnholyDeathKnight_Rotation.toJson(a as UnholyDeathKnight_Rotation), rotationFromJson: obj => UnholyDeathKnight_Rotation.fromJson(obj), - talentsCreate: () => DruidTalents.create(), - talentsEquals: (a, b) => DruidTalents.equals(a as DruidTalents, b as DruidTalents), - talentsCopy: a => DruidTalents.clone(a as DruidTalents), - talentsToJson: a => DruidTalents.toJson(a as DruidTalents), - talentsFromJson: obj => DruidTalents.fromJson(obj), + talentsCreate: () => DeathKnightTalents.create(), + talentsEquals: (a, b) => DeathKnightTalents.equals(a as DeathKnightTalents, b as DeathKnightTalents), + talentsCopy: a => DeathKnightTalents.clone(a as DeathKnightTalents), + talentsToJson: a => DeathKnightTalents.toJson(a as DeathKnightTalents), + talentsFromJson: obj => DeathKnightTalents.fromJson(obj), optionsCreate: () => UnholyDeathKnight_Options.create({ classOptions: {} }), optionsEquals: (a, b) => UnholyDeathKnight_Options.equals(a as UnholyDeathKnight_Options, b as UnholyDeathKnight_Options), @@ -760,11 +760,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => BeastMasteryHunter_Rotation.toJson(a as BeastMasteryHunter_Rotation), rotationFromJson: obj => BeastMasteryHunter_Rotation.fromJson(obj), - talentsCreate: () => DruidTalents.create(), - talentsEquals: (a, b) => DruidTalents.equals(a as DruidTalents, b as DruidTalents), - talentsCopy: a => DruidTalents.clone(a as DruidTalents), - talentsToJson: a => DruidTalents.toJson(a as DruidTalents), - talentsFromJson: obj => DruidTalents.fromJson(obj), + talentsCreate: () => HunterTalents.create(), + talentsEquals: (a, b) => HunterTalents.equals(a as HunterTalents, b as HunterTalents), + talentsCopy: a => HunterTalents.clone(a as HunterTalents), + talentsToJson: a => HunterTalents.toJson(a as HunterTalents), + talentsFromJson: obj => HunterTalents.fromJson(obj), optionsCreate: () => BeastMasteryHunter_Options.create({ classOptions: {} }), optionsEquals: (a, b) => BeastMasteryHunter_Options.equals(a as BeastMasteryHunter_Options, b as BeastMasteryHunter_Options), @@ -783,11 +783,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => MarksmanshipHunter_Rotation.toJson(a as MarksmanshipHunter_Rotation), rotationFromJson: obj => MarksmanshipHunter_Rotation.fromJson(obj), - talentsCreate: () => DruidTalents.create(), - talentsEquals: (a, b) => DruidTalents.equals(a as DruidTalents, b as DruidTalents), - talentsCopy: a => DruidTalents.clone(a as DruidTalents), - talentsToJson: a => DruidTalents.toJson(a as DruidTalents), - talentsFromJson: obj => DruidTalents.fromJson(obj), + talentsCreate: () => HunterTalents.create(), + talentsEquals: (a, b) => HunterTalents.equals(a as HunterTalents, b as HunterTalents), + talentsCopy: a => HunterTalents.clone(a as HunterTalents), + talentsToJson: a => HunterTalents.toJson(a as HunterTalents), + talentsFromJson: obj => HunterTalents.fromJson(obj), optionsCreate: () => MarksmanshipHunter_Options.create({ classOptions: {} }), optionsEquals: (a, b) => MarksmanshipHunter_Options.equals(a as MarksmanshipHunter_Options, b as MarksmanshipHunter_Options), @@ -806,11 +806,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => SurvivalHunter_Rotation.toJson(a as SurvivalHunter_Rotation), rotationFromJson: obj => SurvivalHunter_Rotation.fromJson(obj), - talentsCreate: () => DruidTalents.create(), - talentsEquals: (a, b) => DruidTalents.equals(a as DruidTalents, b as DruidTalents), - talentsCopy: a => DruidTalents.clone(a as DruidTalents), - talentsToJson: a => DruidTalents.toJson(a as DruidTalents), - talentsFromJson: obj => DruidTalents.fromJson(obj), + talentsCreate: () => HunterTalents.create(), + talentsEquals: (a, b) => HunterTalents.equals(a as HunterTalents, b as HunterTalents), + talentsCopy: a => HunterTalents.clone(a as HunterTalents), + talentsToJson: a => HunterTalents.toJson(a as HunterTalents), + talentsFromJson: obj => HunterTalents.fromJson(obj), optionsCreate: () => SurvivalHunter_Options.create({ classOptions: {} }), optionsEquals: (a, b) => SurvivalHunter_Options.equals(a as SurvivalHunter_Options, b as SurvivalHunter_Options), @@ -830,11 +830,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => ArcaneMage_Rotation.toJson(a as ArcaneMage_Rotation), rotationFromJson: obj => ArcaneMage_Rotation.fromJson(obj), - talentsCreate: () => DruidTalents.create(), - talentsEquals: (a, b) => DruidTalents.equals(a as DruidTalents, b as DruidTalents), - talentsCopy: a => DruidTalents.clone(a as DruidTalents), - talentsToJson: a => DruidTalents.toJson(a as DruidTalents), - talentsFromJson: obj => DruidTalents.fromJson(obj), + talentsCreate: () => MageTalents.create(), + talentsEquals: (a, b) => MageTalents.equals(a as MageTalents, b as MageTalents), + talentsCopy: a => MageTalents.clone(a as MageTalents), + talentsToJson: a => MageTalents.toJson(a as MageTalents), + talentsFromJson: obj => MageTalents.fromJson(obj), optionsCreate: () => ArcaneMage_Options.create({ classOptions: {} }), optionsEquals: (a, b) => ArcaneMage_Options.equals(a as ArcaneMage_Options, b as ArcaneMage_Options), @@ -853,11 +853,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => FireMage_Rotation.toJson(a as FireMage_Rotation), rotationFromJson: obj => FireMage_Rotation.fromJson(obj), - talentsCreate: () => DruidTalents.create(), - talentsEquals: (a, b) => DruidTalents.equals(a as DruidTalents, b as DruidTalents), - talentsCopy: a => DruidTalents.clone(a as DruidTalents), - talentsToJson: a => DruidTalents.toJson(a as DruidTalents), - talentsFromJson: obj => DruidTalents.fromJson(obj), + talentsCreate: () => MageTalents.create(), + talentsEquals: (a, b) => MageTalents.equals(a as MageTalents, b as MageTalents), + talentsCopy: a => MageTalents.clone(a as MageTalents), + talentsToJson: a => MageTalents.toJson(a as MageTalents), + talentsFromJson: obj => MageTalents.fromJson(obj), optionsCreate: () => FireMage_Options.create({ classOptions: {} }), optionsEquals: (a, b) => FireMage_Options.equals(a as FireMage_Options, b as FireMage_Options), @@ -874,11 +874,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => FrostMage_Rotation.toJson(a as FrostMage_Rotation), rotationFromJson: obj => FrostMage_Rotation.fromJson(obj), - talentsCreate: () => DruidTalents.create(), - talentsEquals: (a, b) => DruidTalents.equals(a as DruidTalents, b as DruidTalents), - talentsCopy: a => DruidTalents.clone(a as DruidTalents), - talentsToJson: a => DruidTalents.toJson(a as DruidTalents), - talentsFromJson: obj => DruidTalents.fromJson(obj), + talentsCreate: () => MageTalents.create(), + talentsEquals: (a, b) => MageTalents.equals(a as MageTalents, b as MageTalents), + talentsCopy: a => MageTalents.clone(a as MageTalents), + talentsToJson: a => MageTalents.toJson(a as MageTalents), + talentsFromJson: obj => MageTalents.fromJson(obj), optionsCreate: () => FrostMage_Options.create({ classOptions: {} }), optionsEquals: (a, b) => FrostMage_Options.equals(a as FrostMage_Options, b as FrostMage_Options), @@ -966,11 +966,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => DisciplinePriest_Rotation.toJson(a as DisciplinePriest_Rotation), rotationFromJson: obj => DisciplinePriest_Rotation.fromJson(obj), - talentsCreate: () => PaladinTalents.create(), - talentsEquals: (a, b) => PaladinTalents.equals(a as PaladinTalents, b as PaladinTalents), - talentsCopy: a => PaladinTalents.clone(a as PaladinTalents), - talentsToJson: a => PaladinTalents.toJson(a as PaladinTalents), - talentsFromJson: obj => PaladinTalents.fromJson(obj), + talentsCreate: () => PriestTalents.create(), + talentsEquals: (a, b) => PriestTalents.equals(a as PriestTalents, b as PriestTalents), + talentsCopy: a => PriestTalents.clone(a as PriestTalents), + talentsToJson: a => PriestTalents.toJson(a as PriestTalents), + talentsFromJson: obj => PriestTalents.fromJson(obj), optionsCreate: () => DisciplinePriest_Options.create({ classOptions: {} }), optionsEquals: (a, b) => DisciplinePriest_Options.equals(a as DisciplinePriest_Options, b as DisciplinePriest_Options), @@ -989,11 +989,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => HolyPriest_Rotation.toJson(a as HolyPriest_Rotation), rotationFromJson: obj => HolyPriest_Rotation.fromJson(obj), - talentsCreate: () => PaladinTalents.create(), - talentsEquals: (a, b) => PaladinTalents.equals(a as PaladinTalents, b as PaladinTalents), - talentsCopy: a => PaladinTalents.clone(a as PaladinTalents), - talentsToJson: a => PaladinTalents.toJson(a as PaladinTalents), - talentsFromJson: obj => PaladinTalents.fromJson(obj), + talentsCreate: () => PriestTalents.create(), + talentsEquals: (a, b) => PriestTalents.equals(a as PriestTalents, b as PriestTalents), + talentsCopy: a => PriestTalents.clone(a as PriestTalents), + talentsToJson: a => PriestTalents.toJson(a as PriestTalents), + talentsFromJson: obj => PriestTalents.fromJson(obj), optionsCreate: () => HolyPriest_Options.create({ classOptions: {} }), optionsEquals: (a, b) => HolyPriest_Options.equals(a as HolyPriest_Options, b as HolyPriest_Options), @@ -1012,11 +1012,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => ShadowPriest_Rotation.toJson(a as ShadowPriest_Rotation), rotationFromJson: obj => ShadowPriest_Rotation.fromJson(obj), - talentsCreate: () => PaladinTalents.create(), - talentsEquals: (a, b) => PaladinTalents.equals(a as PaladinTalents, b as PaladinTalents), - talentsCopy: a => PaladinTalents.clone(a as PaladinTalents), - talentsToJson: a => PaladinTalents.toJson(a as PaladinTalents), - talentsFromJson: obj => PaladinTalents.fromJson(obj), + talentsCreate: () => PriestTalents.create(), + talentsEquals: (a, b) => PriestTalents.equals(a as PriestTalents, b as PriestTalents), + talentsCopy: a => PriestTalents.clone(a as PriestTalents), + talentsToJson: a => PriestTalents.toJson(a as PriestTalents), + talentsFromJson: obj => PriestTalents.fromJson(obj), optionsCreate: () => ShadowPriest_Options.create({ classOptions: {} }), optionsEquals: (a, b) => ShadowPriest_Options.equals(a as ShadowPriest_Options, b as ShadowPriest_Options), @@ -1036,11 +1036,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => AssassinationRogue_Rotation.toJson(a as AssassinationRogue_Rotation), rotationFromJson: obj => AssassinationRogue_Rotation.fromJson(obj), - talentsCreate: () => PaladinTalents.create(), - talentsEquals: (a, b) => PaladinTalents.equals(a as PaladinTalents, b as PaladinTalents), - talentsCopy: a => PaladinTalents.clone(a as PaladinTalents), - talentsToJson: a => PaladinTalents.toJson(a as PaladinTalents), - talentsFromJson: obj => PaladinTalents.fromJson(obj), + talentsCreate: () => RogueTalents.create(), + talentsEquals: (a, b) => RogueTalents.equals(a as RogueTalents, b as RogueTalents), + talentsCopy: a => RogueTalents.clone(a as RogueTalents), + talentsToJson: a => RogueTalents.toJson(a as RogueTalents), + talentsFromJson: obj => RogueTalents.fromJson(obj), optionsCreate: () => AssassinationRogue_Options.create({ classOptions: {} }), optionsEquals: (a, b) => AssassinationRogue_Options.equals(a as AssassinationRogue_Options, b as AssassinationRogue_Options), @@ -1059,11 +1059,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => CombatRogue_Rotation.toJson(a as CombatRogue_Rotation), rotationFromJson: obj => CombatRogue_Rotation.fromJson(obj), - talentsCreate: () => PaladinTalents.create(), - talentsEquals: (a, b) => PaladinTalents.equals(a as PaladinTalents, b as PaladinTalents), - talentsCopy: a => PaladinTalents.clone(a as PaladinTalents), - talentsToJson: a => PaladinTalents.toJson(a as PaladinTalents), - talentsFromJson: obj => PaladinTalents.fromJson(obj), + talentsCreate: () => RogueTalents.create(), + talentsEquals: (a, b) => RogueTalents.equals(a as RogueTalents, b as RogueTalents), + talentsCopy: a => RogueTalents.clone(a as RogueTalents), + talentsToJson: a => RogueTalents.toJson(a as RogueTalents), + talentsFromJson: obj => RogueTalents.fromJson(obj), optionsCreate: () => CombatRogue_Options.create({ classOptions: {} }), optionsEquals: (a, b) => CombatRogue_Options.equals(a as CombatRogue_Options, b as CombatRogue_Options), @@ -1082,11 +1082,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => SubtletyRogue_Rotation.toJson(a as SubtletyRogue_Rotation), rotationFromJson: obj => SubtletyRogue_Rotation.fromJson(obj), - talentsCreate: () => PaladinTalents.create(), - talentsEquals: (a, b) => PaladinTalents.equals(a as PaladinTalents, b as PaladinTalents), - talentsCopy: a => PaladinTalents.clone(a as PaladinTalents), - talentsToJson: a => PaladinTalents.toJson(a as PaladinTalents), - talentsFromJson: obj => PaladinTalents.fromJson(obj), + talentsCreate: () => RogueTalents.create(), + talentsEquals: (a, b) => RogueTalents.equals(a as RogueTalents, b as RogueTalents), + talentsCopy: a => RogueTalents.clone(a as RogueTalents), + talentsToJson: a => RogueTalents.toJson(a as RogueTalents), + talentsFromJson: obj => RogueTalents.fromJson(obj), optionsCreate: () => SubtletyRogue_Options.create({ classOptions: {} }), optionsEquals: (a, b) => SubtletyRogue_Options.equals(a as SubtletyRogue_Options, b as SubtletyRogue_Options), @@ -1176,11 +1176,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => AfflictionWarlock_Rotation.toJson(a as AfflictionWarlock_Rotation), rotationFromJson: obj => AfflictionWarlock_Rotation.fromJson(obj), - talentsCreate: () => PaladinTalents.create(), - talentsEquals: (a, b) => PaladinTalents.equals(a as PaladinTalents, b as PaladinTalents), - talentsCopy: a => PaladinTalents.clone(a as PaladinTalents), - talentsToJson: a => PaladinTalents.toJson(a as PaladinTalents), - talentsFromJson: obj => PaladinTalents.fromJson(obj), + talentsCreate: () => WarlockTalents.create(), + talentsEquals: (a, b) => WarlockTalents.equals(a as WarlockTalents, b as WarlockTalents), + talentsCopy: a => WarlockTalents.clone(a as WarlockTalents), + talentsToJson: a => WarlockTalents.toJson(a as WarlockTalents), + talentsFromJson: obj => WarlockTalents.fromJson(obj), optionsCreate: () => AfflictionWarlock_Options.create({ classOptions: {} }), optionsEquals: (a, b) => AfflictionWarlock_Options.equals(a as AfflictionWarlock_Options, b as AfflictionWarlock_Options), @@ -1199,11 +1199,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => DemonologyWarlock_Rotation.toJson(a as DemonologyWarlock_Rotation), rotationFromJson: obj => DemonologyWarlock_Rotation.fromJson(obj), - talentsCreate: () => PaladinTalents.create(), - talentsEquals: (a, b) => PaladinTalents.equals(a as PaladinTalents, b as PaladinTalents), - talentsCopy: a => PaladinTalents.clone(a as PaladinTalents), - talentsToJson: a => PaladinTalents.toJson(a as PaladinTalents), - talentsFromJson: obj => PaladinTalents.fromJson(obj), + talentsCreate: () => WarlockTalents.create(), + talentsEquals: (a, b) => WarlockTalents.equals(a as WarlockTalents, b as WarlockTalents), + talentsCopy: a => WarlockTalents.clone(a as WarlockTalents), + talentsToJson: a => WarlockTalents.toJson(a as WarlockTalents), + talentsFromJson: obj => WarlockTalents.fromJson(obj), optionsCreate: () => DemonologyWarlock_Options.create({ classOptions: {} }), optionsEquals: (a, b) => DemonologyWarlock_Options.equals(a as DemonologyWarlock_Options, b as DemonologyWarlock_Options), @@ -1222,11 +1222,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => DestructionWarlock_Rotation.toJson(a as DestructionWarlock_Rotation), rotationFromJson: obj => DestructionWarlock_Rotation.fromJson(obj), - talentsCreate: () => PaladinTalents.create(), - talentsEquals: (a, b) => PaladinTalents.equals(a as PaladinTalents, b as PaladinTalents), - talentsCopy: a => PaladinTalents.clone(a as PaladinTalents), - talentsToJson: a => PaladinTalents.toJson(a as PaladinTalents), - talentsFromJson: obj => PaladinTalents.fromJson(obj), + talentsCreate: () => WarlockTalents.create(), + talentsEquals: (a, b) => WarlockTalents.equals(a as WarlockTalents, b as WarlockTalents), + talentsCopy: a => WarlockTalents.clone(a as WarlockTalents), + talentsToJson: a => WarlockTalents.toJson(a as WarlockTalents), + talentsFromJson: obj => WarlockTalents.fromJson(obj), optionsCreate: () => DestructionWarlock_Options.create({ classOptions: {} }), optionsEquals: (a, b) => DestructionWarlock_Options.equals(a as DestructionWarlock_Options, b as DestructionWarlock_Options), @@ -1246,11 +1246,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => ArmsWarrior_Rotation.toJson(a as ArmsWarrior_Rotation), rotationFromJson: obj => ArmsWarrior_Rotation.fromJson(obj), - talentsCreate: () => PaladinTalents.create(), - talentsEquals: (a, b) => PaladinTalents.equals(a as PaladinTalents, b as PaladinTalents), - talentsCopy: a => PaladinTalents.clone(a as PaladinTalents), - talentsToJson: a => PaladinTalents.toJson(a as PaladinTalents), - talentsFromJson: obj => PaladinTalents.fromJson(obj), + talentsCreate: () => WarriorTalents.create(), + talentsEquals: (a, b) => WarriorTalents.equals(a as WarriorTalents, b as WarriorTalents), + talentsCopy: a => WarriorTalents.clone(a as WarriorTalents), + talentsToJson: a => WarriorTalents.toJson(a as WarriorTalents), + talentsFromJson: obj => WarriorTalents.fromJson(obj), optionsCreate: () => ArmsWarrior_Options.create({ classOptions: {} }), optionsEquals: (a, b) => ArmsWarrior_Options.equals(a as ArmsWarrior_Options, b as ArmsWarrior_Options), @@ -1269,11 +1269,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => FuryWarrior_Rotation.toJson(a as FuryWarrior_Rotation), rotationFromJson: obj => FuryWarrior_Rotation.fromJson(obj), - talentsCreate: () => PaladinTalents.create(), - talentsEquals: (a, b) => PaladinTalents.equals(a as PaladinTalents, b as PaladinTalents), - talentsCopy: a => PaladinTalents.clone(a as PaladinTalents), - talentsToJson: a => PaladinTalents.toJson(a as PaladinTalents), - talentsFromJson: obj => PaladinTalents.fromJson(obj), + talentsCreate: () => WarriorTalents.create(), + talentsEquals: (a, b) => WarriorTalents.equals(a as WarriorTalents, b as WarriorTalents), + talentsCopy: a => WarriorTalents.clone(a as WarriorTalents), + talentsToJson: a => WarriorTalents.toJson(a as WarriorTalents), + talentsFromJson: obj => WarriorTalents.fromJson(obj), optionsCreate: () => FuryWarrior_Options.create({ classOptions: {} }), optionsEquals: (a, b) => FuryWarrior_Options.equals(a as FuryWarrior_Options, b as FuryWarrior_Options), @@ -1292,11 +1292,11 @@ export const specTypeFunctions: Record> = { rotationToJson: a => ProtectionWarrior_Rotation.toJson(a as ProtectionWarrior_Rotation), rotationFromJson: obj => ProtectionWarrior_Rotation.fromJson(obj), - talentsCreate: () => PaladinTalents.create(), - talentsEquals: (a, b) => PaladinTalents.equals(a as PaladinTalents, b as PaladinTalents), - talentsCopy: a => PaladinTalents.clone(a as PaladinTalents), - talentsToJson: a => PaladinTalents.toJson(a as PaladinTalents), - talentsFromJson: obj => PaladinTalents.fromJson(obj), + talentsCreate: () => WarriorTalents.create(), + talentsEquals: (a, b) => WarriorTalents.equals(a as WarriorTalents, b as WarriorTalents), + talentsCopy: a => WarriorTalents.clone(a as WarriorTalents), + talentsToJson: a => WarriorTalents.toJson(a as WarriorTalents), + talentsFromJson: obj => WarriorTalents.fromJson(obj), optionsCreate: () => ProtectionWarrior_Options.create({ classOptions: {} }), optionsEquals: (a, b) => ProtectionWarrior_Options.equals(a as ProtectionWarrior_Options, b as ProtectionWarrior_Options), @@ -1304,9 +1304,9 @@ export const specTypeFunctions: Record> = { optionsToJson: a => ProtectionWarrior_Options.toJson(a as ProtectionWarrior_Options), optionsFromJson: obj => ProtectionWarrior_Options.fromJson(obj), optionsFromPlayer: player => - player.spec.oneofKind == 'retributionPaladin' - ? player.spec.retributionPaladin.options || ProtectionWarrior_Options.create() - : ProtectionWarrior_Options.create({ classOptions: {} }), + player.spec.oneofKind == 'protectionWarrior' + ? player.spec.protectionWarrior.options || ProtectionWarrior_Options.create() + : ProtectionWarrior_Options.create(), }, };