Skip to content

Commit

Permalink
Fix change emitters
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyt857 committed Jan 7, 2024
1 parent 5b0194a commit 6c4707f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/deathknight/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,23 +88,23 @@ export const UseAMSInput = InputHelpers.makeSpecOptionsBooleanInput<Spec.SpecDea
label: 'Use AMS',
labelTooltip: 'Use AMS around predicted damage for a RP gain.',
showWhen: (player: Player<Spec.SpecDeathknight>) => player.getTalents().howlingBlast,
changeEmitter: (player: Player<Spec.SpecDeathknight>) => TypedEvent.onAny([player.rotationChangeEmitter, player.talentsChangeEmitter]),
changeEmitter: (player: Player<Spec.SpecDeathknight>) => TypedEvent.onAny([player.specOptionsChangeEmitter, player.talentsChangeEmitter]),
});

export const AvgAMSSuccessRateInput = InputHelpers.makeSpecOptionsNumberInput<Spec.SpecDeathknight>({
fieldName: 'avgAmsSuccessRate',
label: 'Avg AMS Success %',
labelTooltip: 'Chance for damage to be taken during the 5 second window of AMS.',
showWhen: (player: Player<Spec.SpecDeathknight>) => player.getSpecOptions().useAms == true && player.getTalents().howlingBlast,
changeEmitter: (player: Player<Spec.SpecDeathknight>) => TypedEvent.onAny([player.rotationChangeEmitter, player.talentsChangeEmitter]),
changeEmitter: (player: Player<Spec.SpecDeathknight>) => TypedEvent.onAny([player.specOptionsChangeEmitter, player.talentsChangeEmitter]),
});

export const AvgAMSHitInput = InputHelpers.makeSpecOptionsNumberInput<Spec.SpecDeathknight>({
fieldName: 'avgAmsHit',
label: 'Avg AMS Hit',
labelTooltip: 'How much on average (+-10%) the character is hit for when AMS is successful.',
showWhen: (player: Player<Spec.SpecDeathknight>) => player.getSpecOptions().useAms == true && player.getTalents().howlingBlast,
changeEmitter: (player: Player<Spec.SpecDeathknight>) => TypedEvent.onAny([player.rotationChangeEmitter, player.talentsChangeEmitter]),
changeEmitter: (player: Player<Spec.SpecDeathknight>) => TypedEvent.onAny([player.specOptionsChangeEmitter, player.talentsChangeEmitter]),
});

export const DiseaseRefreshDuration = InputHelpers.makeRotationNumberInput<Spec.SpecDeathknight>({
Expand Down

0 comments on commit 6c4707f

Please sign in to comment.