Skip to content

Commit

Permalink
warlock: make DP use ICD every crit, not just on refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharre committed Sep 3, 2023
1 parent a7f0959 commit b6e1dea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
16 changes: 8 additions & 8 deletions sim/warlock/TestDemonology.results
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ character_stats_results: {
dps_results: {
key: "TestDemonology-AllItems-AshtongueTalismanofShadows-32493"
value: {
dps: 10009.25236
tps: 8371.36967
dps: 10009.24515
tps: 8371.36339
}
}
dps_results: {
Expand Down Expand Up @@ -333,22 +333,22 @@ dps_results: {
dps_results: {
key: "TestDemonology-Settings-Orc-P2-Demonology Warlock-NoBuffs-LongMultiTarget"
value: {
dps: 21149.97579
tps: 26407.76385
dps: 21149.91649
tps: 26407.75939
}
}
dps_results: {
key: "TestDemonology-Settings-Orc-P2-Demonology Warlock-NoBuffs-LongSingleTarget"
value: {
dps: 5845.99127
tps: 5288.81666
dps: 5844.32582
tps: 5287.35785
}
}
dps_results: {
key: "TestDemonology-Settings-Orc-P2-Demonology Warlock-NoBuffs-ShortSingleTarget"
value: {
dps: 6180.0365
tps: 5505.27947
dps: 6173.79485
tps: 5499.90151
}
}
dps_results: {
Expand Down
10 changes: 3 additions & 7 deletions sim/warlock/talents.go
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,8 @@ func (warlock *Warlock) setupDemonicPact() {
return
}

icd.Use(sim)

lastBonus := 0.0
newSPBonus := 0.0
if warlock.DemonicPactAura.IsActive() {
Expand All @@ -593,14 +595,8 @@ func (warlock *Warlock) setupDemonicPact() {
}
}

shouldRefresh := !warlock.DemonicPactAura.IsActive() ||
warlock.DemonicPactAura.RemainingDuration(sim) < time.Second*10 ||
newSPBonus >= lastBonus

if shouldRefresh {
if warlock.DemonicPactAura.RemainingDuration(sim) < 10*time.Second || newSPBonus >= lastBonus {
warlock.updateDPASP(sim)

icd.Use(sim)
for _, dpAura := range demonicPactAuras {
if dpAura != nil {
dpAura.ExclusiveEffects[0].SetPriority(sim, newSPBonus)
Expand Down

0 comments on commit b6e1dea

Please sign in to comment.