forked from WoWAnalyzer/WoWAnalyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(warrior/protection): Added Burst of Power talent as a reset trig…
…ger for Shield Slam (WoWAnalyzer#7163) Co-authored-by: J David Smith <[email protected]>
- Loading branch information
Showing
4 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import { change, date } from 'common/changelog'; | ||
import SPELLS from 'common/SPELLS'; | ||
import TALENTS from 'common/TALENTS/warrior'; | ||
import { Rzial } from 'CONTRIBUTORS'; | ||
import { SpellLink } from 'interface'; | ||
|
||
// prettier-ignore | ||
export default [ | ||
change(date(2024, 10, 28), <>Added Hero talent <SpellLink spell={TALENTS.BURST_OF_POWER_TALENT}/> as <SpellLink spell={SPELLS.SHIELD_SLAM} /> reset trigger.</>, Rzial), | ||
change(date(2024, 10, 28), <>Added The War Within Season 1 2-pieces tier set effect <SpellLink spell={SPELLS.EXPERT_STRATEGIST_BUFF}/> as <SpellLink spell={SPELLS.SHIELD_SLAM} /> reset tracker.</>, Rzial), | ||
change(date(2024, 10, 24), 'Initial Update for The War Within.', Rzial), | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/analysis/retail/warrior/protection/modules/talents/BurstOfPower.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import SPELLS from 'common/SPELLS'; | ||
import TALENTS from 'common/TALENTS/warrior'; | ||
import Analyzer, { Options } from 'parser/core/Analyzer'; | ||
import Events from 'parser/core/Events'; | ||
import SpellUsable from 'parser/shared/modules/SpellUsable'; | ||
|
||
export default class BurstOfPower extends Analyzer.withDependencies({ | ||
spellUsable: SpellUsable, | ||
}) { | ||
constructor(options: Options) { | ||
super(options); | ||
this.active = this.selectedCombatant.hasTalent(TALENTS.BURST_OF_POWER_TALENT); | ||
|
||
this.addEventListener(Events.applybuff.spell(SPELLS.BURST_OF_POWER_BUFF), this.resetShieldSlam); | ||
|
||
this.addEventListener( | ||
Events.removebuffstack.spell(SPELLS.BURST_OF_POWER_BUFF), | ||
this.resetShieldSlam, | ||
); | ||
} | ||
|
||
private resetShieldSlam(): void { | ||
this.deps.spellUsable.endCooldown(SPELLS.SHIELD_SLAM.id); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters