From 163766a86414fdd8469bdc057e12e665f6dce7cd Mon Sep 17 00:00:00 2001 From: Kayla Glick Date: Wed, 13 Nov 2024 19:21:36 -0500 Subject: [PATCH] fix no cost error --- sim/hunter/talents.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/hunter/talents.go b/sim/hunter/talents.go index 7153653265..33ed2e324f 100644 --- a/sim/hunter/talents.go +++ b/sim/hunter/talents.go @@ -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 } })