Skip to content

Commit

Permalink
fix mage hit display bug (#3780)
Browse files Browse the repository at this point in the history
  • Loading branch information
lime-green committed Sep 29, 2023
1 parent b1fedac commit ea48c14
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions ui/mage/sim.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
import {
Debuffs,
IndividualBuffs,
PartyBuffs,
RaidBuffs,
Spec,
Stat,
TristateEffect
} from '../core/proto/common.js';
import {
APLAction,
APLListItem,
APLRotation,
} from '../core/proto/apl.js';
import {Debuffs, IndividualBuffs, PartyBuffs, RaidBuffs, Spec, Stat, TristateEffect} from '../core/proto/common.js';
import {APLRotation, APLRotation_Type,} from '../core/proto/apl.js';
import {Stats} from '../core/proto_utils/stats.js';
import {Player} from '../core/player.js';
import {IndividualSimUI} from '../core/individual_sim_ui.js';
Expand Down Expand Up @@ -59,7 +47,8 @@ export class MageSimUI extends IndividualSimUI<Spec.SpecMage> {
],
modifyDisplayStats: (player: Player<Spec.SpecMage>) => {
let stats = new Stats();
if (player.getRotation().type == RotationType.Arcane) {

if (player.getTalentTree() === 0) {
stats = stats.addStat(Stat.StatSpellHit, player.getTalents().arcaneFocus * 1 * Mechanics.SPELL_HIT_RATING_PER_HIT_CHANCE);
}

Expand Down

0 comments on commit ea48c14

Please sign in to comment.