Skip to content

Commit

Permalink
Merge pull request #3261 from wowsims/apl
Browse files Browse the repository at this point in the history
Move cooldown delays into apl config
  • Loading branch information
jimmyt857 authored Jul 7, 2023
2 parents 5b9047c + 7c7fcf2 commit f3cec49
Show file tree
Hide file tree
Showing 7 changed files with 259 additions and 246 deletions.
3 changes: 2 additions & 1 deletion sim/core/character.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func NewCharacter(party *Party, partyIndex int, player *proto.Player) Character
StatDependencyManager: stats.NewStatDependencyManager(),

DistanceFromTarget: player.DistanceFromTarget,
IsUsingAPL: player.Rotation != nil && player.Rotation.Enabled,
},

Name: player.Name,
Expand Down Expand Up @@ -517,7 +518,7 @@ func (character *Character) FillPlayerStats(playerStats *proto.PlayerStats) {
})
playerStats.Auras = MapSlice(aplAuras, func(aura *Aura) *proto.AuraStats {
return &proto.AuraStats{
Id: aura.ActionID.ToProto(),
Id: aura.ActionID.ToProto(),
MaxStacks: aura.MaxStacks,
}
})
Expand Down
3 changes: 2 additions & 1 deletion sim/core/unit.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ type Unit struct {
// Must be enabled to use, with "EnableAutoAttacks()".
AutoAttacks AutoAttacks

Rotation *APLRotation
IsUsingAPL bool // Used for checks before the finalize() stage, when apl rotations are created.
Rotation *APLRotation

// Statistics describing the results of the sim.
Metrics UnitMetrics
Expand Down
Loading

0 comments on commit f3cec49

Please sign in to comment.