Skip to content

Commit

Permalink
[BDK] fix crash in CastEfficiency when Rapid Decomp is not selected (W…
Browse files Browse the repository at this point in the history
…oWAnalyzer#6947)

completely omitting `castEfficiency` works so idk what is going on, but
people should really be pushing D&D anyway
  • Loading branch information
emallson authored Aug 12, 2024
1 parent 2228430 commit 780ad57
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 3 additions & 0 deletions src/analysis/retail/deathknight/blood/CHANGELOG.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { change, date } from 'common/changelog';
import talents from 'common/TALENTS/deathknight';
import { emallson } from 'CONTRIBUTORS';
import SpellLink from 'interface/SpellLink';

// prettier-ignore
export default [
change(date(2024, 8, 12), <>Fix crash when <SpellLink spell={talents.RAPID_DECOMPOSITION_TALENT} /> was not selected.</>, emallson),
change(date(2024, 7, 28), 'Basic updates for The War Within', emallson),
];
10 changes: 4 additions & 6 deletions src/analysis/retail/deathknight/blood/modules/Abilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,10 @@ class Abilities extends CoreAbilities {
base: 1500,
},
cooldown: 15,
castEfficiency: combatant.hasTalent(TALENTS.RAPID_DECOMPOSITION_TALENT)
? {
suggestion: true,
recommendedEfficiency: 0.8, //reduced because of proc resets
}
: undefined,
castEfficiency: {
suggestion: true,
recommendedEfficiency: 0.8, //reduced because of proc resets
},
charges: combatant.hasTalent(TALENTS.DEATHS_ECHO_TALENT) ? 2 : 1,
timelineSortIndex: 5,
},
Expand Down

0 comments on commit 780ad57

Please sign in to comment.