Skip to content

Commit

Permalink
Merge pull request #3453 from wowsims/apl
Browse files Browse the repository at this point in the history
Support fake gotw casts for all druid sims
  • Loading branch information
jimmyt857 authored Aug 13, 2023
2 parents 6b0230d + ed07b07 commit c87cfdb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion sim/druid/druid.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ func (druid *Druid) Initialize() {
druid.registerFaerieFireSpell()
druid.registerRebirthSpell()
druid.registerInnervateCD()
druid.registerFakeGotw()

if druid.RaidBuffTargets == 0 {
// 17 is an arbitrary compromise between 10 and 25, plus pets
druid.RaidBuffTargets = core.MaxInt(17, len(druid.Env.Raid.AllUnits))
}
}

func (druid *Druid) RegisterBalanceSpells() {
Expand Down Expand Up @@ -204,7 +210,6 @@ func (druid *Druid) RegisterFeralCatSpells() {
druid.registerSwipeBearSpell()
druid.registerSwipeCatSpell()
druid.registerTigersFurySpell()
druid.registerFakeGotw()
}

func (druid *Druid) RegisterFeralTankSpells(maulRageThreshold float64) {
Expand Down
3 changes: 3 additions & 0 deletions sim/druid/fake_gotw.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ func (druid *Druid) registerFakeGotw() {
GCD: core.GCDDefault,
},
},
ExtraCastCondition: func(sim *core.Simulation, target *core.Unit) bool {
return druid.InForm(Humanoid)
},
})
}
2 changes: 1 addition & 1 deletion sim/druid/feral/feral.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func NewFeralDruid(character core.Character, options *proto.Player) *FeralDruid
cat.AssumeBleedActive = feralOptions.Options.AssumeBleedActive
cat.maxRipTicks = cat.MaxRipTicks()
cat.prepopOoc = feralOptions.Rotation.PrePopOoc
cat.RaidBuffTargets = int(core.MaxInt32(feralOptions.Rotation.RaidTargets, 1))
cat.RaidBuffTargets = int(feralOptions.Rotation.RaidTargets)
if !feralOptions.Rotation.ManualParams {
cat.RaidBuffTargets = 30
}
Expand Down

0 comments on commit c87cfdb

Please sign in to comment.