Skip to content

Commit

Permalink
Merge pull request #3351 from Tharre/warlock_fixes
Browse files Browse the repository at this point in the history
warlock: fix imp. soul leech crash when missing pet
  • Loading branch information
Tharre authored Jul 20, 2023
2 parents 6263033 + 50897e3 commit de8880a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sim/warlock/talents.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,10 @@ func (warlock *Warlock) setupImprovedSoulLeech() {
impSoulLeechProcChance := float64(warlock.Talents.ImprovedSoulLeech) / 2.
actionID := core.ActionID{SpellID: 54118}
impSoulLeechManaMetric := warlock.NewManaMetrics(actionID)
impSoulLeechPetManaMetric := warlock.Pet.NewManaMetrics(actionID)
var impSoulLeechPetManaMetric *core.ResourceMetrics
if warlock.Pet != nil {
impSoulLeechPetManaMetric = warlock.Pet.NewManaMetrics(actionID)
}
replSrc := warlock.Env.Raid.NewReplenishmentSource(core.ActionID{SpellID: 54118})

warlock.RegisterAura(core.Aura{
Expand Down

0 comments on commit de8880a

Please sign in to comment.