Fix pursuit consuming unrelated actions when attacking a switching target

This commit is contained in:
Zachary Perlmutter 2024-10-17 19:48:08 -07:00
parent 3a7943d3d3
commit 64f14bd62b

View File

@ -14922,6 +14922,7 @@ export const Moves: import('../sim/dex-moves').MoveDataTable = {
if (action.choice === 'megaEvo') this.actions.runMegaEvo(source);
// Also a "forme" change that happens before moves, though only possible in NatDex
if (action.choice === 'terastallize') this.actions.terastallize(source);
else continue;
this.queue.list.splice(actionIndex, 1);
break;
}