Skip to content

Commit

Permalink
Fix pi for all classes (#3803)
Browse files Browse the repository at this point in the history
* fix PI for all classes

* and more
  • Loading branch information
lime-green authored Oct 3, 2023
1 parent 4919fd2 commit 220a7e4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sim/core/buffs.go
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ func registerPowerInfusionCD(agent Agent, numPowerInfusions int32) {

ShouldActivate: func(sim *Simulation, character *Character) bool {
// Haste portion doesn't stack with Bloodlust, so prefer to wait.
return !character.HasActiveAuraWithTag(BloodlustAuraTag)
return !character.HasActiveAura("Bloodlust-" + BloodlustActionID.WithTag(-1).String())
},
AddAura: func(sim *Simulation, character *Character) { piAura.Activate(sim) },
},
Expand Down
4 changes: 2 additions & 2 deletions sim/druid/balance/rotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (moonkin *BalanceDruid) rotation(sim *core.Simulation) (*druid.DruidSpell,
return moonkin.Hurricane, target
}

shouldHoldIs := core.Ternary(moonkin.MoonkinT84PCAura == nil, lunarIsActive, lunarIsActive && moonkin.HasActiveAuraWithTag(core.BloodlustAuraTag))
shouldHoldIs := core.Ternary(moonkin.MoonkinT84PCAura == nil, lunarIsActive, lunarIsActive && moonkin.HasActiveAura("Bloodlust-"+core.BloodlustActionID.WithTag(-1).String()))

// Max IS uptime
if rotation.IsUsage == proto.BalanceDruid_Rotation_OptimizeIs && !shouldHoldIs {
Expand Down Expand Up @@ -146,7 +146,7 @@ func (moonkin *BalanceDruid) rotation(sim *core.Simulation) (*druid.DruidSpell,
moonkin.castMajorCooldown(moonkin.hyperSpeedMCD, sim, target)
moonkin.castMajorCooldown(moonkin.potionSpeedMCD, sim, target)
moonkin.useTrinkets(stats.SpellHaste, sim, target)
if !moonkin.HasActiveAuraWithTag(core.BloodlustAuraTag) {
if !moonkin.HasActiveAura("Bloodlust-" + core.BloodlustActionID.WithTag(-1).String()) {
moonkin.castMajorCooldown(moonkin.powerInfusion, sim, target)
}
}
Expand Down
2 changes: 1 addition & 1 deletion sim/priest/power_infusion.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (priest *Priest) registerPowerInfusionCD() {
//if powerInfusionTarget.CurrentMana() < 3000 {
// return false
//}
return !powerInfusionTarget.HasActiveAuraWithTag(core.BloodlustAuraTag)
return !powerInfusionTarget.HasActiveAura("Bloodlust-" + core.BloodlustActionID.WithTag(-1).String())
},
})
}
2 changes: 1 addition & 1 deletion sim/shaman/bloodlust.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (shaman *Shaman) registerBloodlustCD() {
// major CD ordering issues with the shared bloodlust.
for _, party := range shaman.Env.Raid.Parties {
for _, partyMember := range party.Players {
if partyMember.GetCharacter().HasActiveAuraWithTag(core.BloodlustAuraTag) {
if partyMember.GetCharacter().HasActiveAura("Bloodlust-" + core.BloodlustActionID.WithTag(-1).String()) {
return false
}
}
Expand Down
2 changes: 1 addition & 1 deletion sim/warlock/metamorphosis.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (warlock *Warlock) registerMetamorphosisSpell() {
}
MetamorphosisNumber := (float64(sim.Duration) + float64(warlock.MetamorphosisAura.Duration)) / float64(warlock.Metamorphosis.CD.Duration)
if MetamorphosisNumber < 1 {
return character.HasActiveAuraWithTag(core.BloodlustAuraTag) || sim.IsExecutePhase35()
return warlock.HasActiveAura("Bloodlust-"+core.BloodlustActionID.WithTag(-1).String()) || sim.IsExecutePhase35()
}

return true
Expand Down

0 comments on commit 220a7e4

Please sign in to comment.