Skip to content

Commit

Permalink
Finish rogue
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyt857 committed Jan 5, 2024
1 parent 37e1b78 commit c097de6
Show file tree
Hide file tree
Showing 10 changed files with 877 additions and 892 deletions.
21 changes: 3 additions & 18 deletions sim/core/debuffs.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,24 +191,9 @@ func applyDebuffEffects(target *Unit, targetIdx int, debuffs *proto.Debuffs, rai
}

func ScheduledMajorArmorAura(aura *Aura, options PeriodicActionOptions, raid *proto.Raid) {
// Individual rogue sim rotation option messes with these debuff options,
// so it has to be handled separately.
allRogues := RaidPlayersWithClass(raid, proto.Class_ClassRogue)
singleExposeDelay := len(allRogues) == 1 &&
allRogues[0].Spec.(*proto.Player_Rogue).Rogue.Rotation.ExposeArmorFrequency == proto.Rogue_Rotation_Once

if singleExposeDelay {
target := aura.Unit
exposeArmorAura := ExposeArmorAura(target, false)
exposeArmorAura.ApplyOnExpire(func(_ *Aura, sim *Simulation) {
aura.Duration = NeverExpires
StartPeriodicAction(sim, options)
})
} else {
aura.OnReset = func(aura *Aura, sim *Simulation) {
aura.Duration = NeverExpires
StartPeriodicAction(sim, options)
}
aura.OnReset = func(aura *Aura, sim *Simulation) {
aura.Duration = NeverExpires
StartPeriodicAction(sim, options)
}
}

Expand Down
4 changes: 2 additions & 2 deletions sim/mage/TestArcane.results
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ dps_results: {
dps_results: {
key: "TestArcane-AllItems-EphemeralSnowflake-50260"
value: {
dps: 10727.16841
tps: 6570.11619
dps: 10738.79708
tps: 6577.6561
}
}
dps_results: {
Expand Down
8 changes: 4 additions & 4 deletions sim/mage/TestFire.results
Original file line number Diff line number Diff line change
Expand Up @@ -770,8 +770,8 @@ dps_results: {
dps_results: {
key: "TestFire-Settings-Troll-p3_fire_alliance-Fire-fire-FullBuffs-LongMultiTarget"
value: {
dps: 38064.82304
tps: 32963.64697
dps: 38085.36222
tps: 32980.78258
}
}
dps_results: {
Expand All @@ -791,8 +791,8 @@ dps_results: {
dps_results: {
key: "TestFire-Settings-Troll-p3_fire_alliance-Fire-fire-NoBuffs-LongMultiTarget"
value: {
dps: 22173.53497
tps: 20541.48297
dps: 22222.81509
tps: 20575.92958
}
}
dps_results: {
Expand Down
Loading

0 comments on commit c097de6

Please sign in to comment.