Commit Graph

1211 Commits

Author SHA1 Message Date
Kirk Scheibelhut
3d24166cdf toId -> toID
Closes #5479
2019-05-12 17:53:01 -07:00
Kirk Scheibelhut
29430984f6 Only add the '-status slp' message in statuses (#5486) 2019-05-08 11:52:44 -04:00
Kirk Scheibelhut
a0734bde6f Redo Endless Battle Clause with a new specification (#5472) 2019-05-07 11:18:06 +09:30
Marty-D
611ddbd6f2 Fix crash in Trump Card 2019-05-06 12:23:36 -04:00
Marty-D
1ee999ff0c Fix Toxic Spikes interaction with Steel/Poison types 2019-04-27 15:50:31 -04:00
Kirk Scheibelhut
7e4929a39f Change protocol for '|split' message type (#5331) (#5332) 2019-04-22 09:20:47 +09:30
Marty-D
a3586f13a0
Correct Yawn activation timing 2019-04-16 09:22:07 -04:00
urkerab
8034198c87 Camouflage and Soak should fail if they don't change the type (#5425) 2019-04-09 08:18:07 -04:00
Marty-D
4652e9a0cb Fix Disable from Cursed Body durations 2019-04-08 17:20:32 -04:00
Guangcong Luo
4c47af28aa Refactor moveHitData
This is actually three refactors:

- swap around thing:slot for slot:thing in MoveHitData
- add Pokemon#getSlot
- remove the ActiveMove class; it's back to being an interface
2019-04-06 19:10:45 +08:00
Kirk Scheibelhut
0efd71dfef Move Data.ActiveMove methods to Pokemon (#5416)
See #5415 for context - having these methods is unsafe and leads
to crashes because not all ActiveMoves are created through the
Data.ActiveMove constructor. Instead of Pokemon, these could
alternatively be static methods on ActiveMove (or the ActiveMove
class could be completely abolished and reverted back to an
interface), but #5415 will deal with ActiveMove long term, this just
fixes the crashes.
2019-04-06 13:14:50 +08:00
Marty-D
707239c897
Fix Fury Cutter 2019-04-05 16:33:46 -04:00
MacChaeger
d3f1161b62 Fix Weakness Policy and Clangorous Soulblaze in doubles (#5389) 2019-04-04 18:51:27 +08:00
Slayer95
6384964a10 Sim: Z Moves may only be disabled when all base moves are (#5387) 2019-03-30 18:14:53 -04:00
Slayer95
628f32e8fb Stricter type definitions for dex data (#5375)
BattleStatuses switched to PureEffectData
2019-03-30 22:31:04 +08:00
MacChaeger
9472019e03 Fix Gear Up and Magnetic Flux (#5368) 2019-03-28 14:19:47 -04:00
Ivo Julca
ac4b94876b Sim: Refactor to use Battle#getAllPokemon() and Battle#getAllActive() 2019-03-26 23:18:19 -05: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
urkerab
e2beda76a8 Don't show failure when Stockpile ends after no boost (#5324) 2019-03-23 00:11:41 +09:00
Kirk Scheibelhut
03b2c92cb1 Make isNonstandard specify reason for non-standardness (#5330) 2019-03-22 01:49:22 +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
Guangcong Luo
125ffcc633 Add NOT_FAIL, FAIL, SILENT_FAIL to battle
This replaces battle.NOT_FAILURE. The others aren't used anywhere yet,
but should in theory provide more readability than `null` and `false`.
2019-03-13 11:25:23 +09:00
Kirk Scheibelhut
a8903d2563 Cleanup stat naming and types (storedStats, StatNameExceptHP) (#5274) 2019-03-09 09:53:11 -06:00
Kirk Scheibelhut
295f7c6c9f Switch hints to use double quotes everywhere (#5261)
Also, have `Battle#hint` take Side per @urkerab's suggestion.

Followup to #5258, no functionality changes.
2019-03-07 09:34:14 -06: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
Marty-D
69f9c29a4d Fix Parental Bond interaction with Fury Cutter 2019-03-05 13:14:09 -05:00
MacChaeger
33a872e029 Gen 7: Stockpile tracks individual stat alterations (#5246) 2019-03-04 17:59:44 -06:00
Kirk Scheibelhut
aa81f2a2d8 Fix Shell Trap behavior with Encore (#5218) 2019-02-28 14:27:56 -05:00
Marty-D
f108ec0fba Update Psych Up and Transform interactions with crit rate effects 2019-02-27 12:45:09 -05:00
Guangcong Luo
b498bb222c Require object literal method shorthand 2019-02-11 18:14:09 -06:00
Marty-D
008dfbdd8a
Update Me First 2019-02-02 16:13:03 -05:00
Guangcong Luo
8d57bd1b8c Remove useless param from pokemon.transformInto
Introduced in 743c85127c
2019-02-01 15:10:46 -06:00
Marty-D
4ceb8101fc
Update Trick Room's short description 2019-01-30 12:02:13 -05:00
urkerab
768f6f6a21 Electrify shouldn't affect Struggle (#5115) 2019-01-20 10:22:48 -05:00
Marty-D
d1b286680e Update Celebrate calling restrictions 2019-01-16 13:52:25 -05:00
Marty-D
a0a81519ca Update Zen Mode 2019-01-16 13:42:18 -05:00
Guangcong Luo
570c9858af Add hint message for Roost 2019-01-15 22:11:14 -06:00
MacChaeger
2a60ad7589 Fix stomping tantrum vs. only Protect (#5081) 2019-01-15 22:03:54 -06:00
Russell Jones
d35aeb0b23 Trying another fix for Fake Out (#5103) 2019-01-14 09:52:04 -06:00
urkerab
554060b0b5 Rename crash damage back to (High) Jump Kick (#5104) 2019-01-13 21:46:10 -06:00
urkerab
fa4442cb7c Fix Fairy Lock (#5101) 2019-01-13 13:22:35 -06:00
The Immortal
0be83d1706 Revert "First-turn-only moves should be blocked if you used a Dancer move immediately after switching in (#5090)"
This reverts commit 7e6148b8c4.
2019-01-13 21:56:40 +04:00
Russell Jones
7e6148b8c4 First-turn-only moves should be blocked if you used a Dancer move immediately after switching in (#5090) 2019-01-11 15:29:35 -06:00
urkerab
0a60bd8a43 Fix two issues with Flame Burst (#5064) 2019-01-06 19:21:51 -06:00
MacChaeger
54eeb88e5e Fix Stomping Tantrum interaction with spread moves and Protect (#5055) 2018-12-28 20:09:31 +04:00
Alexander B
7e48645999 Fix Wish in Doubles (#5030) 2018-12-25 09:29:11 -08:00
MacChaeger
2710633765 Magic Guard should block crash damage (#5042) 2018-12-25 09:08:00 -08:00
asgdf
39de70b9b9 Fix Defog move attribution (#5020)
Not sure if this matters for anything, but since the [of] presumably describes who used the move in the [from], it should be the source for both messages.
2018-12-10 17:04:16 -06:00