Skip to content

Commit

Permalink
Add a AlertInfo element about the updated logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Krealle committed Jan 9, 2024
1 parent 1998594 commit 9e8c15b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import BuffTargetHelperWarningLabel from './BuffTargetHelperWarningLabel';
import Toggle from 'react-toggle';
import { TIERS } from 'game/TIERS';
import StatTracker from 'parser/shared/modules/StatTracker';
import BuffTargetHelperInfoLabel from './BuffTargetHelperInfoLabel';

/**
* @key ClassName
Expand Down Expand Up @@ -604,6 +605,8 @@ class BuffTargetHelper extends Analyzer {
<b>HenryG</b> or the <a href="https://wago.io/KP-BlDV58">Frame Glows</a> WeakAura made
by <b>Zephy</b> based on which Weak Aura you use.
</p>

<BuffTargetHelperInfoLabel has4Pc={this.has4Pc} />
</div>
<div>
<BuffTargetHelperWarningLabel />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { AlertInfo, SpellLink } from 'interface';
import TALENTS from 'common/TALENTS/evoker';

type Props = {
has4Pc: boolean;
};

const BuffTargetHelperInfoLabel: React.FC<Props> = ({ has4Pc }) => {
return (
<div className="container">
<AlertInfo style={{ marginBottom: 30 }}>
<b>
Note for <a href="https://wago.io/yrmx6ZQSG">Prescience Helper</a> users
</b>
<p>
<b>HenryG</b> has updated the logic for his Prescience Helper WeakAura on <b>January 7</b>
. This module has been updated to support the new logic.
</p>
<p>
Please update your Prescience Helper WeakAura to the latest version. If you do not, this
module will not work correctly.
</p>
{has4Pc && (
<p>
<b>
Because you have T31 4pc, the note generated assumes the first{' '}
<SpellLink spell={TALENTS.PRESCIENCE_TALENT} /> you cast on pull is a long one.
</b>
</p>
)}
</AlertInfo>
</div>
);
};

export default BuffTargetHelperInfoLabel;

0 comments on commit 9e8c15b

Please sign in to comment.