Skip to content

Commit

Permalink
Merge pull request #4178 from wowsims/apl
Browse files Browse the repository at this point in the history
Apply Sated at start of Bloodlust, not at the end
  • Loading branch information
jimmyt857 authored Jan 15, 2024
2 parents 4b04acc + 1914f3c commit ae58ace
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 75 deletions.
6 changes: 1 addition & 5 deletions sim/core/buffs.go
Original file line number Diff line number Diff line change
Expand Up @@ -618,14 +618,10 @@ func BloodlustAura(character *Character, actionTag int32) *Aura {
}
}

if character.HasActiveAura(SatedAuraLabel) {
aura.Deactivate(sim) // immediately remove it person already has sated.
return
}
sated.Activate(sim)
},
OnExpire: func(aura *Aura, sim *Simulation) {
character.MultiplyAttackSpeed(sim, 1.0/1.3)
sated.Activate(sim)
},
})
multiplyCastSpeedEffect(aura, 1.3)
Expand Down
4 changes: 2 additions & 2 deletions sim/hunter/TestMM.results
Original file line number Diff line number Diff line change
Expand Up @@ -883,8 +883,8 @@ dps_results: {
dps_results: {
key: "TestMM-Average-Default"
value: {
dps: 7326.34916
tps: 6407.8235
dps: 7326.34911
tps: 6407.82346
}
}
dps_results: {
Expand Down
56 changes: 28 additions & 28 deletions sim/hunter/TestSV.results
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ dps_results: {
dps_results: {
key: "TestSV-AllItems-Beast-tamer'sShoulders-30892"
value: {
dps: 7443.16613
tps: 6405.93074
dps: 7443.15682
tps: 6405.92143
}
}
dps_results: {
Expand All @@ -125,15 +125,15 @@ dps_results: {
dps_results: {
key: "TestSV-AllItems-BlackBruise-50035"
value: {
dps: 7230.33019
tps: 6199.47865
dps: 7230.3098
tps: 6199.45826
}
}
dps_results: {
key: "TestSV-AllItems-BlackBruise-50692"
value: {
dps: 7219.82063
tps: 6189.30907
dps: 7219.80024
tps: 6189.28868
}
}
dps_results: {
Expand Down Expand Up @@ -399,8 +399,8 @@ dps_results: {
dps_results: {
key: "TestSV-AllItems-Gladiator'sPursuit"
value: {
dps: 7426.45191
tps: 6435.2872
dps: 7426.46195
tps: 6435.29724
}
}
dps_results: {
Expand Down Expand Up @@ -764,8 +764,8 @@ dps_results: {
dps_results: {
key: "TestSV-AllItems-TheFistsofFury"
value: {
dps: 7288.48909
tps: 6256.72859
dps: 7288.47905
tps: 6256.71854
}
}
dps_results: {
Expand All @@ -785,8 +785,8 @@ dps_results: {
dps_results: {
key: "TestSV-AllItems-ThunderingSkyflareDiamond"
value: {
dps: 7463.85835
tps: 6413.40655
dps: 7463.84904
tps: 6413.39724
}
}
dps_results: {
Expand Down Expand Up @@ -876,15 +876,15 @@ dps_results: {
dps_results: {
key: "TestSV-AllItems-Zod'sRepeatingLongbow-50638"
value: {
dps: 8036.87789
tps: 6995.38282
dps: 8036.85899
tps: 6995.36392
}
}
dps_results: {
key: "TestSV-Average-Default"
value: {
dps: 7613.10031
tps: 6565.75152
dps: 7613.10025
tps: 6565.75145
}
}
dps_results: {
Expand All @@ -897,8 +897,8 @@ dps_results: {
dps_results: {
key: "TestSV-Settings-Dwarf-p1_sv-Basic-aoe-FullBuffs-LongSingleTarget"
value: {
dps: 3520.28498
tps: 2532.13458
dps: 3520.28427
tps: 2532.13387
}
}
dps_results: {
Expand Down Expand Up @@ -981,8 +981,8 @@ dps_results: {
dps_results: {
key: "TestSV-Settings-Dwarf-p1_sv-Basic-sv_advanced-FullBuffs-LongSingleTarget"
value: {
dps: 7741.21864
tps: 6753.20808
dps: 7741.22067
tps: 6753.2101
}
}
dps_results: {
Expand Down Expand Up @@ -1023,8 +1023,8 @@ dps_results: {
dps_results: {
key: "TestSV-Settings-Orc-p1_sv-Basic-aoe-FullBuffs-LongSingleTarget"
value: {
dps: 3570.49709
tps: 2528.70106
dps: 3570.51617
tps: 2528.72015
}
}
dps_results: {
Expand Down Expand Up @@ -1100,15 +1100,15 @@ dps_results: {
dps_results: {
key: "TestSV-Settings-Orc-p1_sv-Basic-sv_advanced-FullBuffs-LongMultiTarget"
value: {
dps: 20278.06925
tps: 20384.31888
dps: 20278.25535
tps: 20384.50498
}
}
dps_results: {
key: "TestSV-Settings-Orc-p1_sv-Basic-sv_advanced-FullBuffs-LongSingleTarget"
value: {
dps: 7793.73043
tps: 6750.69395
dps: 7793.73246
tps: 6750.69598
}
}
dps_results: {
Expand Down Expand Up @@ -1142,7 +1142,7 @@ dps_results: {
dps_results: {
key: "TestSV-SwitchInFrontOfTarget-Default"
value: {
dps: 7546.32952
tps: 6577.29598
dps: 7546.32188
tps: 6577.28834
}
}
25 changes: 7 additions & 18 deletions sim/shaman/bloodlust.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,33 +39,22 @@ func (shaman *Shaman) registerBloodlustCD() {
},
},
ExtraCastCondition: func(sim *core.Simulation, target *core.Unit) bool {
// Need to check if any raid member has lust, not just self, because of
// major CD ordering issues with the shared bloodlust.

// If all players in all parties already have sated, don't cast.
allSated := true
for _, party := range shaman.Env.Raid.Parties {
for _, partyMember := range party.Players {
// If anyone currently has bloodlust, don't cast this.
if partyMember.GetCharacter().HasActiveAuraWithTag(core.BloodlustAuraTag) {
return false
}
if !partyMember.GetCharacter().HasActiveAura(core.SatedAuraLabel) {
allSated = false
}
// Only cast if there is a player missing Sated.
for _, playerUnit := range shaman.Env.Raid.AllPlayerUnits {
if !playerUnit.HasActiveAura(core.SatedAuraLabel) {
return true
}
}
return true && !allSated
return false
},

ApplyEffects: func(sim *core.Simulation, _ *core.Unit, _ *core.Spell) {
for _, blAura := range blAuras {
target := blAura.Unit
// Only activate bloodlust on units without bloodlust and without sated.
if !target.HasActiveAura(core.SatedAuraLabel) && !target.HasActiveAuraWithTag(core.BloodlustAuraTag) {
// Only activate bloodlust on units without sated.
if !target.HasActiveAura(core.SatedAuraLabel) {
blAura.Activate(sim)
}

}
},
})
Expand Down
Loading

0 comments on commit ae58ace

Please sign in to comment.