Skip to content

Commit

Permalink
[hunter] fix "Go for the Throat" metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
vigo2 committed Oct 16, 2023
1 parent 76566a7 commit bee6bc6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sim/hunter/talents.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,9 @@ func (hunter *Hunter) applyGoForTheThroat() {
return
}

spellID := []int32{0, 34953, 34953}[hunter.Talents.GoForTheThroat]
focusMetrics := hunter.NewFocusMetrics(core.ActionID{SpellID: spellID})

amount := 25.0 * float64(hunter.Talents.GoForTheThroat)

hunter.RegisterAura(core.Aura{
Expand All @@ -490,7 +493,7 @@ func (hunter *Hunter) applyGoForTheThroat() {
if !hunter.pet.IsEnabled() {
return
}
hunter.pet.AddFocus(sim, amount, spell.ResourceMetrics)
hunter.pet.AddFocus(sim, amount, focusMetrics)
},
OnPeriodicDamageDealt: func(aura *core.Aura, sim *core.Simulation, spell *core.Spell, result *core.SpellResult) {
if !result.DidCrit() {
Expand All @@ -499,7 +502,7 @@ func (hunter *Hunter) applyGoForTheThroat() {
if !hunter.pet.IsEnabled() {
return
}
hunter.pet.AddFocus(sim, amount, spell.ResourceMetrics)
hunter.pet.AddFocus(sim, amount, focusMetrics)
},
})
}
Expand Down

0 comments on commit bee6bc6

Please sign in to comment.