diff --git a/sim/core/apl.go b/sim/core/apl.go index fe2dd4a6ac..421c2b968d 100644 --- a/sim/core/apl.go +++ b/sim/core/apl.go @@ -54,7 +54,7 @@ func (rot *APLRotation) doAndRecordWarnings(warningsList *[]string, isPrepull bo } func (unit *Unit) newAPLRotation(config *proto.APLRotation) *APLRotation { - if config == nil || config.Type != proto.APLRotation_TypeAPL { + if config == nil || !unit.IsUsingAPL { return nil } diff --git a/sim/core/character.go b/sim/core/character.go index 077b898f9d..920b6f03be 100644 --- a/sim/core/character.go +++ b/sim/core/character.go @@ -106,7 +106,10 @@ func NewCharacter(party *Party, partyIndex int, player *proto.Player) Character ChannelClipDelay: max(0, time.Duration(player.ChannelClipDelayMs)*time.Millisecond), DistanceFromTarget: player.DistanceFromTarget, NibelungAverageCasts: player.NibelungAverageCasts, - IsUsingAPL: player.Rotation != nil && player.Rotation.Type == proto.APLRotation_TypeAPL, + IsUsingAPL: player.Rotation != nil && + (player.Rotation.Type == proto.APLRotation_TypeAPL || + player.Rotation.Type == proto.APLRotation_TypeAuto || + player.Rotation.Type == proto.APLRotation_TypeSimple), }, Name: player.Name, diff --git a/ui/core/player.ts b/ui/core/player.ts index 257e3f7a6a..468b69ac3b 100644 --- a/ui/core/player.ts +++ b/ui/core/player.ts @@ -827,11 +827,15 @@ export class Player { const type = this.getRotationType(); if (type == APLRotationType.TypeAuto && this.autoRotationGenerator) { // Clone to avoid modifying preset rotations, which are often returned directly. - return APLRotation.clone(this.autoRotationGenerator(this)); + const rot = APLRotation.clone(this.autoRotationGenerator(this)); + rot.type = APLRotationType.TypeAuto; + return rot; } else if (type == APLRotationType.TypeSimple && this.simpleRotationGenerator) { // Clone to avoid modifying preset rotations, which are often returned directly. - const rot = APLRotation.clone(this.simpleRotationGenerator(this, this.getRotation(), this.getCooldowns())); - rot.type = APLRotationType.TypeAPL; // Set this here for convenience, so the generator functions don't need to. + const simpleRot = this.getRotation(); + const rot = APLRotation.clone(this.simpleRotationGenerator(this, simpleRot, this.getCooldowns())); + rot.simple = this.aplRotation.simple; + rot.type = APLRotationType.TypeSimple; // Set this here for convenience, so the generator functions don't need to. return rot; } else { return this.aplRotation;