This commit is contained in:
Aurastic 2026-05-08 15:22:02 +05:30 committed by GitHub
commit 9e635d6eac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2489,6 +2489,10 @@ export const PS = new class extends PSModel {
}
}
if (options.id.startsWith('battle-') && PS.prefs.rightpanelbattles) options.location = 'right';
if (options.id.startsWith('help-')) {
options.location = 'right';
options.type = 'chat';
}
options.parentRoomid ??= this.getRoom(options.parentElem)?.id;
const parentRoom = options.parentRoomid ? this.rooms[options.parentRoomid] : null;
let preexistingRoom = this.rooms[options.id];