Skip to content

Commit

Permalink
Fix ui errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyt857 committed Oct 9, 2023
1 parent 5f44681 commit 380a703
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion ui/mage/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion ui/mage/sim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
6 changes: 2 additions & 4 deletions ui/raid/raid_stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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),
},
],
},
Expand Down

0 comments on commit 380a703

Please sign in to comment.