Skip to content

Commit

Permalink
Merge pull request #2090 from lime-green/desync
Browse files Browse the repository at this point in the history
Frost Sub-Blood Desync Rotation
  • Loading branch information
rosenrusinov authored Dec 8, 2022
2 parents 93a1d76 + 36acec4 commit cd2b965
Show file tree
Hide file tree
Showing 27 changed files with 298 additions and 375 deletions.
5 changes: 4 additions & 1 deletion sim/core/runic_power.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,10 @@ func (rp *RunicPowerBar) BloodRuneBothReadyAt() time.Duration {

}

func (rp *RunicPowerBar) RuneReadyAt(slot int8) time.Duration {
func (rp *RunicPowerBar) RuneReadyAt(sim *Simulation, slot int8) time.Duration {
if rp.runeStates&isSpents[slot] != isSpents[slot] {
return sim.CurrentTime
}
return rp.runeMeta[slot].regenAt
}

Expand Down
2 changes: 1 addition & 1 deletion sim/deathknight/army_of_the_dead.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (dk *Deathknight) registerArmyOfTheDeadCD() {
Cost: baseCost,
},
ModifyCast: func(sim *core.Simulation, spell *core.Spell, cast *core.Cast) {
cast.GCD = dk.getModifiedGCD()
cast.GCD = dk.GetModifiedGCD()
},
CD: core.Cooldown{
Timer: dk.NewTimer(),
Expand Down
2 changes: 1 addition & 1 deletion sim/deathknight/blood_boil.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (dk *Deathknight) registerBloodBoilSpell() {
Cost: float64(baseCost),
},
ModifyCast: func(sim *core.Simulation, spell *core.Spell, cast *core.Cast) {
cast.GCD = dk.getModifiedGCD()
cast.GCD = dk.GetModifiedGCD()
},
},

Expand Down
2 changes: 1 addition & 1 deletion sim/deathknight/blood_strike.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (dk *Deathknight) newBloodStrikeSpell(isMH bool) *RuneSpell {
Cost: conf.BaseCost,
},
ModifyCast: func(sim *core.Simulation, spell *core.Spell, cast *core.Cast) {
cast.GCD = dk.getModifiedGCD()
cast.GCD = dk.GetModifiedGCD()
},
IgnoreHaste: true,
}
Expand Down
2 changes: 1 addition & 1 deletion sim/deathknight/bone_shield.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (dk *Deathknight) registerBoneShieldSpell() {
Cost: baseCost,
},
ModifyCast: func(sim *core.Simulation, spell *core.Spell, cast *core.Cast) {
cast.GCD = dk.getModifiedGCD()
cast.GCD = dk.GetModifiedGCD()
},
CD: core.Cooldown{
Timer: cdTimer,
Expand Down
2 changes: 1 addition & 1 deletion sim/deathknight/dancing_rune_weapon.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (dk *Deathknight) registerDancingRuneWeaponCD() {
Cost: baseCost,
},
ModifyCast: func(sim *core.Simulation, spell *core.Spell, cast *core.Cast) {
cast.GCD = dk.getModifiedGCD()
cast.GCD = dk.GetModifiedGCD()
},
CD: core.Cooldown{
Timer: dk.NewTimer(),
Expand Down
2 changes: 1 addition & 1 deletion sim/deathknight/death_and_decay.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (dk *Deathknight) registerDeathAndDecaySpell() {
Cost: baseCost,
},
ModifyCast: func(sim *core.Simulation, spell *core.Spell, cast *core.Cast) {
cast.GCD = dk.getModifiedGCD()
cast.GCD = dk.GetModifiedGCD()
},
CD: core.Cooldown{
Timer: dk.NewTimer(),
Expand Down
2 changes: 1 addition & 1 deletion sim/deathknight/death_coil.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (dk *Deathknight) registerDeathCoilSpell() {
cast.GCD = 0
cast.Cost = 0
} else {
cast.GCD = dk.getModifiedGCD()
cast.GCD = dk.GetModifiedGCD()
}
},
},
Expand Down
2 changes: 1 addition & 1 deletion sim/deathknight/death_pact.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (dk *Deathknight) registerDeathPactSpell() {
Cost: baseCost,
},
ModifyCast: func(sim *core.Simulation, spell *core.Spell, cast *core.Cast) {
cast.GCD = dk.getModifiedGCD()
cast.GCD = dk.GetModifiedGCD()
},
CD: core.Cooldown{
Timer: cdTimer,
Expand Down
2 changes: 1 addition & 1 deletion sim/deathknight/death_strike.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (dk *Deathknight) newDeathStrikeSpell(isMH bool) *RuneSpell {
Cost: conf.BaseCost,
},
ModifyCast: func(sim *core.Simulation, spell *core.Spell, cast *core.Cast) {
cast.GCD = dk.getModifiedGCD()
cast.GCD = dk.GetModifiedGCD()
},
IgnoreHaste: true,
}
Expand Down
Loading

0 comments on commit cd2b965

Please sign in to comment.