pokemon-showdown/data/mods/linked
Slayer95 96871d0fc9
Linked: Improvements to queue and targetting (#11935)
* Linked: Support dynamic turn order after megaevo

The original approach was a minimally invasive hack meant to support
the theoretical yet never playable Doubles/Triples Linked formats.

However, in the playable Singles formats, it had the effect of only
resorting the queue once, before the second player Pokémon moves.
Notably, in a custom format with megaevolutions allowed, the resorting
after mega evolutions are done but before they move was not omitted. In
fact, it could be said that any significant re-sorts were removed.

This commit adds support for proper turn ordering for newly mega-evolved
Pokémon, by implementing a flag specific to Actions for linked 2nd moves,
so that all standard re-sorts before moves are done, while linked 2nd moves
are exempt.

* Linked: Support tracking originalTarget

Implements Propeller Tail, Snipe Shot, and Stalwart,
for compatibility with non-Singles game types.
2026-04-14 13:20:40 -06:00
..
conditions.ts Linked: Fix inconsistent implementations of twoturnmove, lockedmove (#11804) 2026-03-08 12:06:19 -06:00
moves.ts Linked: Fix Upper Hand 2026-03-17 22:58:12 -06:00
scripts.ts Linked: Improvements to queue and targetting (#11935) 2026-04-14 13:20:40 -06:00