Skip to content

Commit

Permalink
fix no cost error
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Nov 14, 2024
1 parent a3bf8b9 commit 163766a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim/hunter/talents.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (hunter *Hunter) applyCleverTraps() {
func (hunter *Hunter) applyEfficiency() {
hunter.OnSpellRegistered(func(spell *core.Spell) {
// applies to Stings, Shots, Strikes and Volley
if spell.Flags.Matches(SpellFlagSting|SpellFlagShot|SpellFlagStrike) || spell.SpellCode == SpellCode_HunterVolley {
if spell.Cost != nil && spell.Flags.Matches(SpellFlagSting|SpellFlagShot|SpellFlagStrike) || spell.SpellCode == SpellCode_HunterVolley {
spell.Cost.Multiplier -= 2 * hunter.Talents.Efficiency
}
})
Expand Down

0 comments on commit 163766a

Please sign in to comment.