Skip to content

Commit

Permalink
some minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Krealle committed Apr 2, 2024
1 parent 58b0af5 commit bbc7578
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/analysis/retail/evoker/shared/modules/talents/LeapingFlames.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class LeapingFlames extends Analyzer {

leapingFlamesBuffs = 0;
leapingFlamesConsumptions = 0;
leapingFlamesWasted = 0;

leapingFlamesExtraHits = 0;

Expand All @@ -47,6 +46,8 @@ class LeapingFlames extends Analyzer {
maxEB = this.hasAttunement ? 2 : 1;
hasDragonrage = this.selectedCombatant.hasTalent(TALENTS.DRAGONRAGE_TALENT);

applicationOrRefreshEvents = [Events.applybuff, Events.applybuffstack, Events.removebuffstack];

constructor(options: Options) {
super(options);
this.active = this.selectedCombatant.hasTalent(TALENTS.LEAPING_FLAMES_TALENT);
Expand All @@ -55,13 +56,12 @@ class LeapingFlames extends Analyzer {
Events.removebuff.by(SELECTED_PLAYER).spell(SPELLS.LEAPING_FLAMES_BUFF),
this.onRemoveBuff,
);
this.addEventListener(
Events.applybuff.by(SELECTED_PLAYER).spell(SPELLS.LEAPING_FLAMES_BUFF),
this.onApplyBuff,
);
this.addEventListener(
Events.applybuffstack.by(SELECTED_PLAYER).spell(SPELLS.LEAPING_FLAMES_BUFF),
this.onApplyBuff,

this.applicationOrRefreshEvents.forEach((e) =>
this.addEventListener(
e.by(SELECTED_PLAYER).spell(SPELLS.LEAPING_FLAMES_BUFF),
this.onApplyBuff,
),
);
}

Expand All @@ -80,7 +80,6 @@ class LeapingFlames extends Analyzer {
);
const lfCast = getLeapingCast(leapingBuff);
if (!lfCast) {
this.leapingFlamesWasted += 1;
console.log('buff wasted');
console.groupEnd();
return;
Expand Down Expand Up @@ -313,6 +312,8 @@ class LeapingFlames extends Analyzer {
console.log('Total potential:');
console.log('gen:', this.maybeEssenceBurstGenerated);
console.log('waste:', this.maybeEssenceBurstWasted);

const wastedBuffs = this.leapingFlamesBuffs - this.leapingFlamesConsumptions;
return (
<Statistic
position={STATISTIC_ORDER.OPTIONAL(13)}
Expand All @@ -324,7 +325,7 @@ class LeapingFlames extends Analyzer {
<li>Healing: {formatNumber(this.leapingFlamesHealing)}</li>
<li>Overhealing: {formatNumber(this.leapingFlamesOverHealing)}</li>
<li>Consumed: {formatNumber(this.leapingFlamesConsumptions)} buffs</li>
<li>Wasted: {formatNumber(this.leapingFlamesWasted)} buffs</li>
<li>Wasted: {formatNumber(wastedBuffs)} buffs</li>
Wasted <SpellLink spell={SPELLS.ESSENCE_BURST_BUFF} /> represent the amount you lost out
on due to overcapping.
</>
Expand Down

0 comments on commit bbc7578

Please sign in to comment.