Commit Graph

28 Commits

Author SHA1 Message Date
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
Kris Johnson
c6504627ec
Appease linter
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2026-03-09 12:28:27 -06:00
Kris Johnson
8d87bb5a9c Fix typo 2026-03-09 12:03:23 -06:00
Kris Johnson
cc68e3e967 Linked: Fix modified-priority moves in a link 2026-03-09 12:00:37 -06:00
Slayer95
55f9e85172
Linked: Fix inconsistent implementations of twoturnmove, lockedmove (#11804)
* Linked: Fix inconsistent implementations of twoturnmove, lockedmove

* Linked: Sturdier implementation for Torment
2026-03-08 12:06:19 -06:00
Kris Johnson
04a026782d Linked: Fix priority on moves in the first moveslots while choice-locked
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2026-03-03 14:48:32 -07:00
Slayer95
7bd04f470c
Linked: Remove m.lastMoveAbsolute in favor of lastMove (#11791)
* Fix Linked last move checks

At some point between af6affb and 045fe456, Linked's concept of
last absolute move changed from using the 2nd move in a link to
using the 1st move, likely in an attempt to preserve the 1st move
information that used to be stored for debugging purposes.

However, the redefinition has impacted the mechanics of Sketch, and
other moves for a long time.

This commit restores the original mechanics, and gets rid of the
last absolute move concept, in favor of the orthodox pokemon.lastMove.
In consequence, all modded data entries that now match gen9 are
also deleted.

* Linked: Fix Grassy Glide priority calculation
2026-03-03 09:50:30 -07:00
Kris Johnson
59529d79e0 FIx lint
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2026-03-02 22:40:11 -07:00
Kris Johnson
5f698aaf74 Linked: Update runAction for missing action choices 2026-03-02 22:38:21 -07:00
Kris Johnson
6545c74486 Linked: Fix bugs with Encore, Stalwart, Propeller Tail, and Snipe Shot 2026-03-02 21:14:50 -07:00
Kris Johnson
bf612bf9ee Fix lint 2026-03-02 20:01:49 -07:00
Kris Johnson
e4801e992a Linked: Fix priority of linked moves (again) 2026-03-02 19:56:45 -07:00
Kris Johnson
8ce95e4a2c Linked: Fix crash 2026-03-02 19:53:51 -07:00
Kris Johnson
be25932aff
Update rotational ladders (#11785)
* Update Kalos starter Mega abilities

* Update rotational ladders
2026-03-01 03:19:22 -07:00
WeWuzNidokangz
580ed48329
OMs: Fix generation consistency (#9088)
* Linked: Fix generation consistency

* Fix same issue with Pokebilities

* Clean up
2022-12-05 16:05:08 -07:00
Karthik
e9c8a1ce3f
Improve check for Sky Drop preventing Mega Evolution (#8680) 2022-03-03 21:55:33 -06:00
Kris Johnson
33d5ad73f8 Linked: Fix targeting 2022-02-18 22:42:56 -07:00
Kris Johnson
75a0c0e03f Linked: Fix Choice items 2022-02-01 23:36:02 -07:00
Mia
ee73d367fe
Fix typo 2022-02-01 18:40:26 -06:00
Kris Johnson
213357f306 Linked: Fix battles 2022-02-01 17:08:01 -07:00
Kris Johnson
a2da36f185 Fix crash 2022-02-01 14:55:35 -07:00
Kris Johnson
4a932ee79b
Add February 2022 OMotM and RoA Spotlight (#8651) 2022-02-01 12:04:55 -07:00
Kris Johnson
274e5ef267
Add August OM and RoA Spotlight ladders (#7111) 2020-08-01 16:46:04 +04:00
Guangcong Luo
2f805c93a2
Remove "Battle" prefix from data exports (#7039)
`BattlePokedex` is now `Pokedex`, `BattleItems` is now `Items`, etc.

I also renamed `Movedex` to `Moves` and `Statuses` to `Conditions`.

`TypeChart` isn't `Types` yet, because unlike the others, it's not
indexed by ID. That should probably be fixed one day.
2020-07-24 12:42:26 -07:00
Slayer95
0afd86221b
Linked: Fix priority of linked moves (#6990)
Second move in a chain ignores Gen 8 dynamic turn-order mechanic.
2020-07-09 23:17:28 -07:00
Guangcong Luo
8fd572f1f6 Refactor BattleQueue to wrap Array
The old decision to make it extend Array was wrong, as clearly
illustrated by the problems with slice/splice.
2020-07-01 16:37:36 -07:00
Kris Johnson
f126b5aa6f
Fix typo (#6937) 2020-07-01 15:27:18 +04:00
Kris Johnson
7010e0286f
Add OMotM and RoA Spotlight for July 2020 (#6936) 2020-07-01 12:59:10 +04:00