Skip to content

Commit

Permalink
fix lock crash when no bloodlust CD exists (#3755)
Browse files Browse the repository at this point in the history
  • Loading branch information
lime-green authored Sep 25, 2023
1 parent 944dab0 commit 58d78fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim/warlock/rotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (warlock *Warlock) setupCooldowns(sim *core.Simulation) {
}

if spell.ActionID.SameActionIgnoreTag(core.PowerInfusionActionID) &&
(character.HasActiveAuraWithTag(core.BloodlustAuraTag) || lustCD.TimeToNextCast(sim) < runTime) {
(character.HasActiveAuraWithTag(core.BloodlustAuraTag) || (lustCD != nil && lustCD.TimeToNextCast(sim) < runTime)) {
return false // don't use PI while lust is active or it would overlap
}

Expand Down

0 comments on commit 58d78fd

Please sign in to comment.