Linked: Fix priority of linked moves (again)

This commit is contained in:
Kris Johnson
2026-03-02 19:56:45 -07:00
parent 65e046529c
commit e4801e992a

View File

@@ -287,7 +287,8 @@ export const Scripts: ModdedBattleScriptsData = {
if (this.gen < 5) this.eachEvent('Update');
if (this.gen >= 8 && this.queue.peek()?.choice === 'move') {
const nextAction = this.queue.peek();
if (this.gen >= 8 && nextAction?.choice === 'move' && nextAction?.pokemon !== action.pokemon) {
// In gen 8, speed is updated dynamically so update the queue's speed properties and sort it.
this.updateSpeed();
for (const queueAction of this.queue.list) {