Commit Graph

192 Commits

Author SHA1 Message Date
urkerab
4da5d66951
Make Eerie Spell's secondary effect secondary (#7575) 2020-10-27 13:58:41 -07:00
urkerab
ff0ca077b6
Update Lunar Dance to Gen 8 mechanics (#7576) 2020-10-26 19:39:39 +04:00
Marty-D
0f17b39dd3 As One cannot be suppressed, acquired, or removed 2020-10-23 19:13:27 -04:00
The Immortal
8eddf3724e Fix Eerie Spell 2020-10-23 18:37:56 +04:00
Kris Johnson
7242eaef29 Fix Thunderous Kick 2020-10-22 23:53:11 -06:00
Kris Johnson
41ed00002f
Fix oversights from adding Crown Tundra DLC (#7559) 2020-10-23 07:45:12 +04:00
The Immortal
2a03b7fd88 Add new moves 2020-10-23 07:13:55 +04:00
Guangcong Luo
a55d3cd530 Fix crashes from using moves with no target
Specifically, if you target your ally and your ally uses Ally Switch
(causing you to target yourself), certain moves (including Thunder,
Hurricane, and SSA) crash. This has been fixed.
2020-10-19 18:10:25 +01:00
The Immortal
7638f8238a Fix Present healing vs Substitute 2020-10-15 18:46:58 +04:00
Kris Johnson
21663f95e4 Fix formatting for G-Max moves 2020-10-15 02:44:17 -06:00
urkerab
287aa2a42f
Fix Jungle Healing when target's HP is full (#7494) 2020-10-08 21:10:03 -04:00
Leonard Craft
8c3dd0ba79 Correct Wicked Blow / Surging Strikes / Jungle Healing flags 2020-10-06 21:11:20 -05:00
Kris Johnson
3e0a47c4b3 Iron Fist boosts Surging Strikes and Wicked Blow 2020-10-06 19:30:55 -06:00
The Immortal
ccca25fc55 Fix Grudge interaction with Dynamax 2020-09-26 05:37:10 +04:00
The Immortal
3a7085d26b Copycat fails on Behemoth moves 2020-09-26 05:00:47 +04:00
Leonard Craft
34a526796c Mark Spotlight as past-generation only 2020-09-19 17:14:03 -05:00
urkerab
5d714fbb56
Replace @ts-ignore with type assertions or other less unsafe constructs (#7390) 2020-09-19 02:07:48 -07:00
Guangcong Luo
ea8f52ce97
Move descriptions to data/text/ files (#7036)
This adds some new `data/text/` files, which are the new home for
item/move/ability descriptions, as well as in-game messages, in one
place for ease of translation.
2020-09-06 22:00:11 -07:00
Ocean-ey
5c34d6997b
Update Instruct's longdesc (#7272) 2020-09-05 17:17:28 -04:00
Kris Johnson
8656d633ac
Format volatiles consistently (#7314) 2020-09-05 08:12:24 -07:00
Kirk Scheibelhut
39c14e0868 Remove EBC staleness from abilities upon switching 2020-08-17 12:59:10 -07:00
Marty-D
7b3023c236 Fix Stuff Cheeks
Thanks EeveeTrainer and DaWoblefet
2020-08-15 15:46:19 -04:00
Mia
deeed6c789
Remove sim/ and data/'s globals (#7091) 2020-08-07 06:44:15 -07:00
Annika
8f92852fd3
Shorten the description of Steel Roller (#7153)
This is getting cut off, a la
2020-08-05 22:09:03 -07:00
Marty-D
592abc0525
Fix Rising Voltage Max Move power 2020-08-01 11:15:43 -04:00
Leonard Craft III
95243cdb00
Don't leak target of two-turn charge moves (#7104) 2020-07-31 17:55:28 -07:00
Guangcong Luo
4d09f7acde Rename more instances of Effect to Condition 2020-07-26 11:26:23 -07:00
Kris Johnson
e7a72680f3
Fix G-Max Fireball's name (#7059) 2020-07-25 15:45:19 -07: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
Kris Johnson
00b88b521d
Handle Gigantamaxing properly (#7001) 2020-07-23 13:27:42 -07:00
The Immortal
13e6eac46f Revert "NatDex: Correct Hidden Power/Judgment Max Power (#7014)"
This reverts commit c604df0312.
2020-07-21 03:08:18 +04:00
The Immortal
4d22a0f87e Move Magikarp's Revenge to NEXT mod 2020-07-19 15:00:40 +04:00
Marty-D
085dba6d1f
Descriptions: Update Shell Side Arm 2020-07-18 17:58:08 -04:00
Kris Johnson
c604df0312
NatDex: Correct Hidden Power/Judgment Max Power (#7014) 2020-07-18 15:10:59 +04:00
Guangcong Luo
9f4122d6c4
Improve Gravity description
Thanks Finland for helping with the description.
2020-07-17 03:37:57 -07:00
urkerab
bd28810ba6
Copycat and Encore should fail against a Z move (#7008) 2020-07-16 02:28:47 -07:00
Kris Johnson
25af31372f
Fix /dt interaction with Galar starters' Gmax moves (#6994) 2020-07-12 23:37:59 -07:00
Jacob McLemore
30e420204a
Fix Fusion Bolt + Fusion Flare interaction when first move fails (#6991) 2020-07-10 16:29:53 -07:00
The Immortal
79684d0937 Multi-Attack's max move is 95 bp 2020-07-09 23:43:37 +04: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
Marty-D
2cf9631ed5 Update some descriptions
and fix Corrosive Gas interaction with Sticky Hold
2020-06-27 11:15:40 -04:00
Marty-D
508650fb7e
Fix DLC moves and update descriptions 2020-06-24 16:19:19 -04:00
Marty-D
a6216eb6cb
Fix Poltergeist 2020-06-23 18:29:02 -04:00
The Immortal
aa906d0f68 Add missing move data 2020-06-23 15:05:08 +04:00
Marty-D
65d2bb5d0c
Fix Shell Side Arm 2020-06-22 15:02:48 -04:00
The Immortal
d5f86cad02 Fix Surging Strikes' Max move power 2020-06-22 13:36:32 +04:00
fart
357e4764a3
Fix Rising Voltage (#6895) 2020-06-21 19:19:53 -04:00
fart
50797c8c54
Rising Voltage boost applies if target is grounded (#6886) 2020-06-20 20:16:33 -07:00
Kris Johnson
caf3c1045d
Fix Terrain Pulse and Expanding Force (#6884) 2020-06-20 11:53:03 +04:00
The Immortal
8071b8dac8 Correct Poltergeist mechanics
Also changed Aura Wheel to use `onTry` as this is consistent with other moves such as Hyperspace Fury.
2020-06-20 11:26:07 +04:00
The Immortal
4c93edee77 Terrain Pulse is boosted by Mega Launcher 2020-06-20 09:21:15 +04:00
Marty-D
0ebf03ee82
Fix Max Guard interaction with Unseen Fist 2020-06-19 09:59:49 -04:00
Marty-D
a50f63078a
Fix Coaching target 2020-06-18 18:31:09 -04:00
fart
7d10ed89e7
Fix Steel Roller (#6870) 2020-06-18 17:54:12 -04:00
Marty-D
8035c72259
Fix Scale Shot 2020-06-18 16:42:42 -04:00
The Immortal
3aacc62d0a Fix Poltergeist 2020-06-19 00:28:51 +04:00
The Immortal
0e86997b01 Expanding Force has 10 PP 2020-06-18 22:15:59 +04:00
Ocean-ey
9f4b261f5a
Fix Shell Side Arm (#6863)
Shell Side Arm's currently states and functions as "Physical if target Def > Sp. Def.", contrary to the ingame description that it will use whichever stat is more effective. (If it was physical when Def was higher, the damage would be LESS effective than if Sp. Def was used.)
2020-06-18 14:10:22 +04:00
Kris Johnson
4156eef05d
Fix various Isle of Armor DLC moves (#6862) 2020-06-18 00:25:26 -07:00
Kris Johnson
6162c850cb
Fix Poltergeist and Triple Axel (#6857) 2020-06-17 18:44:02 -07:00
Kris Johnson
61a58739f0
Fix Scale Shot and Triple Axel (#6853) 2020-06-17 17:38:36 -07:00
Kris Johnson
dbb397bfb6
Correct some of the DLC moves (#6852) 2020-06-17 16:09:37 -07:00
Kris Johnson
6b8826df58
Isle of Armor: Moves (#6841) 2020-06-17 22:02:25 +04:00
The Immortal
98e9bd2f8e Add new data for Slowpoke lines 2020-06-17 19:21:35 +04:00
The Immortal
472688ef33 Update moves usable in Sw/Sh 2020-06-17 18:45:20 +04:00
Mia
6839a1f4db
Add a library for utility functions (#6817) 2020-06-09 22:06:43 -07:00
urkerab
a21c64fd10
Back out erroneous change from 1fa9e14 to fix After You regression (#6799) 2020-06-04 06:52:55 -07:00
SSlayer9
7f3b464bc2
Update Heal Bell interaction with Soundproof (#6771) 2020-05-30 16:04:57 -04:00
Guangcong Luo
54974b8d56 Improve Pursuit desc 2020-05-29 19:04:12 -07:00
urkerab
d3a3666e85
Fix bugs caused by not specifying effectiveness priority (#6765)
Inverse Mod needs to go first, to calculate the negated effectiveness.
Disguise goes second, to suppress effectiveness.
Delta Stream goes third, to weaken moves super-effective against Flying types.
Tar Shot goes last, to make its victim weak to Fire type moves.

This allows the existing test for Delta Stream with Tar Shot to pass.
Additionally a new test for Delta Stream with Inverse Mod now passes.
A test for Flying Press with Inverse Mod is also included.
2020-05-29 16:55:42 -07:00
urkerab
7dd6e8bd64
Fix doubled effectiveness for victims of Tar Shot (#6566) 2020-05-29 01:27:53 -07:00
Kirk Scheibelhut
adfc77246b EBC: Entrainment/Skill Swap inflicts staleness 2020-05-28 12:05:16 -07:00
PartMan
775f1e4945
Update Howl flags (#6727) 2020-05-22 14:49:10 -04:00
Marty-D
0d8c840ce2
Fix Taunt interaction with Me First
The better implementation would be a check for zero `basePower`, but that's for another refactor.
2020-05-15 17:27:54 -04:00
Marty-D
dd53650f78 Fix G-Max Centiferno/Sandblast binding
+1 Anubis/DaWoblefet
2020-05-15 16:25:19 -04:00
Marty-D
c8c048a645 Update Curse targeting 2020-05-14 13:23:37 -04:00
Guangcong Luo
3a1fe75b13 Remove isViable from moves
It's a judgment call that doesn't belong among the other factual
information in `moves.ts`.

The information is still around; in the client's `battle-dex-search.ts`
in `BattleMoveSearch#moveIsNotUseless`. But now it's all in one place.

fb18721e82
2020-05-08 19:25:51 -07:00
AnnikaCodes
a46d0a9844
Update move descriptions to account for Teleport's Gen 8 behavior (#6660) 2020-05-07 14:24:24 -04:00
Kirk Scheibelhut
2af7040270
Group zMove and maxMove attributes (#6652)
This mostly serves to provide cleaner and more consistent field
naming. maxMove currently doesn't have boosts or effects to group
together but who knows what will be thrown at us via DLC, and being
symmetrical with zMoves is a nice.
2020-05-04 20:21:27 -07:00
The Immortal
c40d9dfd99 Fix Struggle interaction with Dynamax
https://twitter.com/Sibuna_Switch/status/1256055062469607426?s=20
2020-05-04 01:00:59 +04:00
Guangcong Luo
6c1992b067 Fix Metronome blacklists 2020-05-02 00:16:55 -07:00
urkerab
1eff20a530
Fix G-Max Chi Strike's effect on Crit Ratio (#6639) 2020-05-01 21:14:01 -07:00
Guangcong Luo
23b59de881 Fix Metronome 2020-05-01 13:22:16 -07:00
Guangcong Luo
e0f6453b60 Refactor data definitions
- `Modded[Effect]Data` are now correctly defined: they must either have
  `inherit: true` and be partial, or not have `inherit: true` and be a
	complete `[Effect]Data` entry

- `id` is no longer allowed; instead, it's calculated directly from
  `toID(name)`. The one exception, Hidden Power, gets a `realMove`
	property to track this (it's still used to set `.id`, though;
	TODO: really fix it properly).

- `num` is still required in `data/pokedex.ts` (dex number),
  `data/moves.ts` (move index number, for Metronome), and
	`data/items.ts` (minisprite sprite-sheet location). It's still not
	required for mod-only items and moves.

- `num` is no longer allowed for PureEffects (in `statuses.ts`) where
  it's always been meaningless.

- `color` and `heightm`, being completely flavor, are still not
  required for `pokedex.ts` in mods. They're still required in the base
	pokedex.
2020-04-30 21:39:29 -07:00
urkerab
8476a24318
Shell Trap should not power up if hit by a Z- or Max move (#6622) 2020-04-27 08:04:49 -07:00
Kris Johnson
f7053eb7cd
Update Defog's description (#6624) 2020-04-26 16:27:43 -07:00
Guangcong Luo
c5faebd739 Remove extraneous properties from BasicEffect
BasicEffect always had a `status` property to support the pattern of
testing it to see if it's a move that sets status directly.

This is just a situation that TypeScript is bad at.

Another possibility would be to set `status: undefined` on PureEffect,
Ability, Item, and Species, but I think that's also ugly. Casting to
Move is probably the best approach, so that's what we do now.
2020-04-25 12:57:46 -07:00
Guangcong Luo
549ef7edb1 Fix MoveData interface definition
For historical reasons, move property definitions have been very blurry
across `EffectData`. Fortunately, recent refactors have made it
possible to put them all where they're supposed to be.
2020-04-25 12:57:46 -07:00
Kirk Scheibelhut
c8b4213e16
Change Clangorous Soul self damage from 1/3 -> 33% (#6608)
Per SadisticMystic:

"https://docs.google.com/spreadsheets/d/15r_-iUngMDoA9ux7tCkUJLJVBeQhpIzEH7rju9fgWOQ/edit
the "Moves" tab is a dump of move data from the game, CS has a "-33"
listed under the Heal% field, just like Double-Edge has under
Drain%"
2020-04-25 13:33:16 -04:00
Marty-D
abe7b58419
Fix Steel Beam description
Nice catch @scheibo!
2020-04-24 15:51:02 -04:00
Guangcong Luo
5d63b16d4d Fix botched merge in data/.ts refactor
The data/.ts refactor left a few .js files in, which weren't deleted
between 13 and 3 days ago:

c85f5bccb0

Because of this, the corresponding `.ts` files were considered new,
rather than renamed, and changes to the `.js` files got deleted rather
than merged.

Fortunately, this only affected `moves.js`, which has now been manually
re-merged with the changes.
2020-04-23 11:22:21 -07:00
Kris Johnson
28bf388b98
Typescript data (#6553) 2020-04-23 09:16:09 -07:00