Skip to content

Commit

Permalink
Code Review
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorm4 committed Oct 24, 2024
1 parent 8ba7b64 commit e3ec535
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ interface CastInfo {
coyActive: boolean;
temporalCompressionStacks: number;
dreamBreathOnTarget: boolean;
targetsHit: number;
}

class ConsumeFlame extends Analyzer {
Expand Down Expand Up @@ -89,14 +90,13 @@ class ConsumeFlame extends Analyzer {
dreamBreathOnTarget: dreamBreathOnTarget,
temporalCompressionStacks: temporalCompressionStacks,
coyActive: coyActive,
targetsHit: 0,
});
}

onHeal(event: HealEvent) {
const players = Object.values(this.combatants.players);
const castTargetIsPlayer = players.find((player) => player.id === event.targetID);

if (castTargetIsPlayer) {
const target = this.combatants.getEntity(event);
if (target) {
this.totalHits += 1;
}
}
Expand Down Expand Up @@ -152,6 +152,7 @@ class ConsumeFlame extends Analyzer {
<>
<SpellLink spell={TALENTS_EVOKER.ENGULF_TALENT} /> @{' '}
{this.owner.formatTimestamp(cast.timestamp)} <br />
Targets hit: {}
<SpellLink spell={TALENTS_EVOKER.DREAM_BREATH_TALENT} /> on target:{' '}
{cast.dreamBreathOnTarget ? 'Yes' : 'No'} <br />
{this.selectedCombatant.has4PieceByTier(TIERS.TWW1) && (
Expand Down Expand Up @@ -180,7 +181,7 @@ class ConsumeFlame extends Analyzer {
</strong>
<div style={{ marginLeft: '1em' }}>
{this.averageNumTargets.toFixed(1)}
<small> avg targets hit</small>
<small> avg players hit</small>
</div>
<PerformanceBoxRow values={entries} />
</RoundedPanel>
Expand Down

0 comments on commit e3ec535

Please sign in to comment.