Skip to content

Commit

Permalink
Merge pull request #3690 from wowsims/apl
Browse files Browse the repository at this point in the history
Fix backwards compatibility bug
  • Loading branch information
jimmyt857 committed Sep 17, 2023
2 parents 435092e + 67cfcb8 commit 83ccd8b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/core/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1252,11 +1252,13 @@ export class Player<SpecType extends Spec> {
if (aplLaunchStatuses[this.spec] == LaunchStatus.Launched) {
const rot = this.specTypeFunctions.rotationFromPlayer(proto);
if (rot && !this.specTypeFunctions.rotationEquals(rot, this.specTypeFunctions.rotationCreate())) {
if (this.simpleRotationGenerator) {
if (proto.rotation?.type == APLRotationType.TypeAPL) {
// Do nothing
} else if (this.simpleRotationGenerator) {
proto.rotation = APLRotation.create({
type: APLRotationType.TypeSimple,
simple: {
specRotationJson: this.specTypeFunctions.rotationToJson(rot),
specRotationJson: JSON.stringify(this.specTypeFunctions.rotationToJson(rot)),
cooldowns: proto.cooldowns,
},
});
Expand Down

0 comments on commit 83ccd8b

Please sign in to comment.