Skip to content

Commit

Permalink
Default to auto when loading legacy for sims with launched APL rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyt857 committed Oct 11, 2023
1 parent 0d856fc commit ee16f2c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions ui/core/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1312,15 +1312,20 @@ export class Player<SpecType extends Spec> {
this.setInFrontOfTarget(eventID, proto.inFrontOfTarget);
this.setDistanceFromTarget(eventID, proto.distanceFromTarget);
this.setHealingModel(eventID, proto.healingModel || HealingModel.create());
if (aplLaunchStatuses[this.spec] != LaunchStatus.Launched) {
this.setSpecOptions(eventID, this.specTypeFunctions.optionsFromPlayer(proto));

if (aplLaunchStatuses[this.spec] == LaunchStatus.Launched) {
if (proto.rotation?.type == APLRotationType.TypeUnknown || proto.rotation?.type == APLRotationType.TypeLegacy) {
if (!proto.rotation) {
proto.rotation = APLRotation.create();
}
proto.rotation.type = APLRotationType.TypeAuto;
}
} else {
this.setCooldowns(eventID, proto.cooldowns || Cooldowns.create());
this.setRotation(eventID, this.specTypeFunctions.rotationFromPlayer(proto));
}
this.setAplRotation(eventID, proto.rotation || APLRotation.create())
this.setSpecOptions(eventID, this.specTypeFunctions.optionsFromPlayer(proto));

this.aplRotation = proto.rotation || APLRotation.create();
this.rotationChangeEmitter.emit(eventID);

const options = this.getSpecOptions();
for (let key in options) {
Expand Down

0 comments on commit ee16f2c

Please sign in to comment.