From 380a703515db6eb903d58a9b168ae3681a09aafa Mon Sep 17 00:00:00 2001 From: James Tanner Date: Sun, 8 Oct 2023 17:23:15 -0700 Subject: [PATCH] Fix ui errors --- ui/mage/presets.ts | 1 - ui/mage/sim.ts | 1 - ui/raid/raid_stats.ts | 6 ++---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ui/mage/presets.ts b/ui/mage/presets.ts index 0f82345d18..d5eeb27fc2 100644 --- a/ui/mage/presets.ts +++ b/ui/mage/presets.ts @@ -13,7 +13,6 @@ import { Player } from '../core/player.js'; import { Mage_Rotation as MageRotation, - Mage_Rotation_Type as RotationType, Mage_Rotation_PrimaryFireSpell as PrimaryFireSpell, Mage_Options as MageOptions, Mage_Options_ArmorType as ArmorType, diff --git a/ui/mage/sim.ts b/ui/mage/sim.ts index 0120f0f74d..68464b04a3 100644 --- a/ui/mage/sim.ts +++ b/ui/mage/sim.ts @@ -4,7 +4,6 @@ import {Stats} from '../core/proto_utils/stats.js'; import {Player} from '../core/player.js'; import {IndividualSimUI} from '../core/individual_sim_ui.js'; -import {Mage_Rotation_Type as RotationType,} from '../core/proto/mage.js'; import * as OtherInputs from '../core/components/other_inputs.js'; import * as Mechanics from '../core/constants/mechanics.js'; diff --git a/ui/raid/raid_stats.ts b/ui/raid/raid_stats.ts index aa086057b7..19ee434dc6 100644 --- a/ui/raid/raid_stats.ts +++ b/ui/raid/raid_stats.ts @@ -19,7 +19,6 @@ import { } from '../core/proto_utils/utils.js'; import { sum } from '../core/utils.js'; -import { Mage_Rotation_Type as MageRotationType } from '../core/proto/mage.js'; import { Hunter_Rotation_StingType as HunterStingType, Hunter_Options_PetType as HunterPetType } from '../core/proto/hunter.js'; import { PaladinAura } from '../core/proto/paladin.js'; import { Rogue_Rotation_Frequency as ExposeFrequency } from '../core/proto/rogue.js'; @@ -924,14 +923,13 @@ const RAID_STATS_OPTIONS: RaidStatsOptions = { label: 'Improved Scorch', actionId: ActionId.fromSpellId(12873), playerData: playerClassAndTalent(Class.ClassMage, 'improvedScorch', player => { - const rotation = player.getRotation(); - return rotation.type == MageRotationType.Fire && rotation.maintainImprovedScorch; + return player.getTalentTree() == 1 && player.getRotation().maintainImprovedScorch; }), }, { label: 'Winter\'s Chill', actionId: ActionId.fromSpellId(28593), - playerData: playerClassAndTalent(Class.ClassMage, 'wintersChill', player => player.getRotation().type == MageRotationType.Frost), + playerData: playerClassAndTalent(Class.ClassMage, 'wintersChill', player => player.getTalentTree() == 2), }, ], },