mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-09-11 18:55:38 -05:00
Linked: Fix priority of linked moves (again)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user