Commit Graph

210 Commits

Author SHA1 Message Date
YaBoiJD
546065a10d Update National Dex Mechanics (#6108)
Pokemon that are holding an Item that enables Mega Evolution, Primal Revision, or the use of a Z-Move cannot Dynamax. A Rayquaza that can Mega Evolve also cannot Dynamax.

Also fixes an alias loop with the national dex format/ruleset.
2019-11-30 14:50:09 -05:00
Kris Johnson
1fe47eabdd Add Utility Umbrella (#6120) 2019-12-01 01:24:25 +13:00
Spandan Punwatkar
0e8ee00acb Add Eternamax forme for Eternatus (#6081) 2019-11-28 12:24:47 -05:00
Guangcong Luo
c04898eab1 Remove Substitute upon Dynamaxing
Fixes #6089
2019-11-27 17:15:42 +13:00
Kris Johnson
413b28b36f Fix lockedmove volatile interaction with Max moves (#6050) 2019-11-23 22:37:07 +04:00
The Immortal
ebd501bb04 Update Dynamax messages 2019-11-21 18:01:32 +04:00
Guangcong Luo
86467ce1bd Fix Octolock
Fixes #5968
2019-11-20 19:53:29 +13:00
Guangcong Luo
09412bb570 Dynamaxed Pokemon can't be forced out
Fixes #6007
2019-11-20 11:31:27 +13:00
The Immortal
ed3a6e73aa Dynamax: Add hint on switch out
Dynamax has no actual text in Wi-Fi battles. I left the Start/End messages for now and just added a hint on Switch.
2019-11-17 19:09:27 +04:00
Guangcong Luo
5bedfe1905 Fix Gorilla Tactics
I'm not sure this is how it works, but it at least shouldn't make
dynamax moves auto-fail.
2019-11-17 13:44:22 +13:00
Guangcong Luo
e27233307f Display Dynamax as a volatile status 2019-11-17 06:32:20 +13:00
HoeenHero
6253a77d3f Use level 10 dynamax power for HP changes 2019-11-16 10:02:12 -05:00
HoeenHero
34649c12ae Trigger dynamax switch out events sooner 2019-11-16 09:00:03 -05:00
HoeenHero
f28921d2d2 Do not go under 0 HP when dynamax ends 2019-11-16 08:48:17 -05:00
HoeenHero
a9f0f752d3 Fix choice lock - dynamax interaction 2019-11-16 08:44:31 -05:00
HoeenHero
1f324ce065 Dynamax should bypass choice lock
While a pokemon is dynamaxed, they can use any of
their moves. Once it ends, they are locked back in
to the move they were originally locked into.
2019-11-15 23:09:18 -05:00
HoeenHero
8f1e5c917e Fix Shedinja's HP when dynamaxing 2019-11-15 23:03:20 -05:00
HoeenHero
e9a686e9e0 Comment out unsupported protocal, add placeholder 2019-11-15 22:49:44 -05:00
HoeenHero
e6a900702d Fix dynamax onSwitchOut 2019-11-15 22:17:59 -05:00
HoeenHero
9ecbcabee9
Dynamaxing (#5946) 2019-11-15 21:33:10 -05:00
Guangcong Luo
7a023746ba
Refactor battle.dex out of battle (#5851)
In most other similar systems, like TeamValidator, we use `thing.dex` instead of having it extend `ModdedDex`. Battle has always extended `ModdedDex`, though. This changes Battle to match the others.

This should fix an issue with `Battle.data` not being cached.

This also frees up Battle to extend ObjectReadWriteStream<string> in a future update.
2019-10-06 07:38:08 +11:00
Marty-D
1671fe4e15
Fix Doom Desire/Future Sight on hit 2019-06-11 10:57:29 -04:00
Kirk Scheibelhut
be82a3b817 Move -mustrecharge message to onStart (#5488)
This way it doesn't show up at the end of the turn or get added 3 separate times.

Fixes #5462.
2019-05-08 16:39:56 -04:00
Kirk Scheibelhut
29430984f6 Only add the '-status slp' message in statuses (#5486) 2019-05-08 11:52:44 -04:00
MacChaeger
d3f1161b62 Fix Weakness Policy and Clangorous Soulblaze in doubles (#5389) 2019-04-04 18:51:27 +08:00
Slayer95
628f32e8fb Stricter type definitions for dex data (#5375)
BattleStatuses switched to PureEffectData
2019-03-30 22:31:04 +08:00
MacChaeger
9a7ce3dedf Put side conditions on p1 and p2 in multi battles (#5341) 2019-03-27 11:00:36 +08:00
Kirk Scheibelhut
9f5a727ad1 Pull Field out of Battle (#5333) 2019-03-23 02:52:12 +09:00
Kirk Scheibelhut
4be90a0a28 Cleanup sim/battle.ts (#5325) 2019-03-22 01:25:12 +09:00
Marty-D
39a8b4270e Fix Stealth Rock effectiveness during Delta Stream 2019-03-16 14:38:03 -04:00
Kirk Scheibelhut
a04d4da992 Add more hints to Gen 1 & 4, migrate others to Battle#hint (#5258) 2019-03-06 11:24:47 -06:00
Guangcong Luo
b498bb222c Require object literal method shorthand 2019-02-11 18:14:09 -06:00
asgdf
9b4c42cc8f Fix partial trapping moves in the statbar after having ended (#5108) 2019-01-15 19:25:46 -06:00
Alexander B
73a158631e Desolate Land activates before Dazzling (#5107) 2019-01-15 11:05:32 -06:00
Guangcong Luo
13614b9890 Update for TypeScript 3.2
TypeScript 3.2 unearthed a metric fuckton of bugs, making this change
take effectively forever.
2018-12-08 21:39:38 -06:00
urkerab
5d259fe6ac Fix charge moves without target (#4974) 2018-11-19 17:09:56 -06:00
Lycanium Z
766508d860 Doom Desire is affected by Adaptability &Normalize (#4975) 2018-11-18 22:11:03 -06:00
Alexander B
34c3096d6b "But it failed!" messages should not reveal the target (#4944) 2018-11-01 09:41:04 -04:00
Marty-D
733ea72d4f Make a move fail if the target is the user and it's not self-target 2018-09-03 11:24:38 -04:00
MacChaeger
84381c2bf2 Arceus/Silvally should have standard type mechanics when transformed (#4700) 2018-08-22 14:19:46 -04:00
littlefoot22
58e9a8923e Fix Rollout / Ice Ball target locking (#4796) 2018-08-07 21:54:35 -04:00
MacChaeger
82c792f82c Update to TypeScript 3.0.1 (#4710) 2018-08-07 03:27:28 +09:00
Marty-D
f259d43987 Fix Nightmare removal properly 2018-06-09 18:17:58 -04:00
Marty-D
ea75aa39dd Fix Nightmare removal 2018-06-08 23:05:20 -04:00
MacChaeger
22ad90d3ff Camomons: Modify the template unless the Pokemon is transforming (#4688) 2018-05-25 19:27:47 -04:00
MacChaeger
08ba5bc831 Make formeChange handle relevant messages and ability changes (#4654) 2018-05-23 19:55:05 -04:00
MacChaeger
e3174ebc02 Fix type display in Gen 7 metas (#4655) 2018-05-21 17:27:23 -05:00
Marty-D
8cb12f547e
Fix Truant interaction with recharge turns 2018-05-18 08:33:59 -04:00
Andi Wang
6621b84efa Gen IV: Fix Disable/Encore interaction with switching effects (#4519)
Specifically, Healing Wish/Lunar Dance/Baton Pass/U-turn.
2018-03-27 22:30:23 -04:00
Quinton Lee
c799393710 Typescript data/ and config/formats (#4513)
Also removes Battle Factory methods accidentally re-added in d0a4a689a7
2018-03-26 09:50:51 -05:00