Skip to content

Commit

Permalink
Warrior: Bloodsurge proc will overwrite T10 4-set proc with less than…
Browse files Browse the repository at this point in the history
… 5s duration (2)
  • Loading branch information
TheGroxEmpire committed Nov 3, 2023
1 parent 6ec37ec commit c14fd36
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sim/warrior/talents.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,6 @@ func (warrior *Warrior) applyBloodsurge() {
ActionID: core.ActionID{SpellID: 46916},
Duration: time.Second * 5,
OnGain: func(aura *core.Aura, sim *core.Simulation) {
if warrior.Ymirjar4pcProcAura.IsActive() && warrior.Ymirjar4pcProcAura.Duration < time.Second*5 {
warrior.Ymirjar4pcProcAura.Deactivate(sim)
}
warrior.Slam.DefaultCast.CastTime = 0
},
OnExpire: func(aura *core.Aura, sim *core.Simulation) {
Expand Down Expand Up @@ -297,9 +294,12 @@ func (warrior *Warrior) applyBloodsurge() {

warrior.lastBloodsurgeProc = sim.CurrentTime

// as per https://www.wowhead.com/wotlk/spell=70847/item-warrior-t10-melee-4p-bonus#comments,
// the improved aura is not overwritten by the regular one, but simply refreshed
if ymirjar4Set && (sim.RandomFloat("Ymirjar 4pc") < 0.2 || warrior.Ymirjar4pcProcAura.IsActive()) {
// As of 3.4.351943, bloodsurge will refresh Ymirjar 4pc duration if Ymirjar 4pc duration is >5s.
// However, it'll replace it if Ymirjar 4pc duration is <5s.
if warrior.Ymirjar4pcProcAura.IsActive() && warrior.Ymirjar4pcProcAura.RemainingDuration(sim) < time.Second*5 {
warrior.Ymirjar4pcProcAura.Deactivate(sim)

} else if ymirjar4Set && (sim.RandomFloat("Ymirjar 4pc") < 0.2 || warrior.Ymirjar4pcProcAura.IsActive()) {
warrior.BloodsurgeAura.Deactivate(sim)
warrior.Ymirjar4pcProcAura.Activate(sim)

Expand Down

0 comments on commit c14fd36

Please sign in to comment.