Commit Graph

7252 Commits

Author SHA1 Message Date
Guangcong Luo
d18c0a4e1f Refactor more things to use pokemon.allies/foes
(This will make multi battles easier to implement.)
2021-03-28 20:06:18 -07:00
Leonard Craft III
d6e7df506f Fix Eruption Heatran event
https://www.smogon.com/forums/threads/bug-reports-v4-read-original-post-before-posting.3663703/post-8798521
2021-03-28 21:06:51 -05:00
Guangcong Luo
ed454ef76a
Refactor scripts to battle-actions (#8138)
This introduces a new class, BattleActions, available as `battle.actions`,
moving all functions from `data/scripts.ts` to `sim/battle-actions.ts`.

This makes it so that "go to definition" will now work correctly for
functions previously in scripts; we no longer need UnimplementedError,
and there's now a clean conceptual separation between `battle` and
`battle-actions` (whereas the previous distinction between `battle` and
`scripts` was basically nonexistent).

This will be a difficult migration if you maintain a fork with custom
scripted mods. I'm sorry! Migration instructions are here:

https://github.com/smogon/pokemon-showdown/pull/8138
2021-03-28 12:01:38 -07:00
Leonard Craft III
b707a4ad97 Correct Shed Skin odds 2021-03-27 22:44:28 -05:00
Annika
24c4ed134c Random Battles: Revert SpeedSetup changes
Requested by the Random Battles community.

I do not approve of this design in the slightest.
2021-03-27 18:37:11 -07:00
Annika
a115f1d415 Random Battles: Make speedsetup 2-stage boosts 2021-03-27 16:03:18 -07:00
Annika
2e8b32333d Random Battles: Fix Necrozma frequency 2021-03-26 17:03:20 -07:00
Annika
9e7074572e Random Battles update 2021-03-26 15:45:59 -07:00
Marty-D
afb15b82f0 Validator: Fix blank mismatched forme message 2021-03-26 16:29:34 -04:00
Guangcong Luo
619a1e228d
Stadium: Apply BRN Atk drop once instead of 5x (#8139) 2021-03-25 23:38:55 -07:00
DayanYT
b9fbf17583
Add "m4a" as an alias for "Megas for all" (#8140) 2021-03-25 09:58:48 -07:00
Annika
0c2563ddc2
SSB: Give Lilypad Overflow 62 BP
Requested by instruct.
2021-03-24 23:11:56 -07:00
urkerab
82b8b90038
Make Scalemons apply before Tier Shift when they are mashed up (#8051) 2021-03-23 23:17:08 -06:00
Instruct
fb471f8569
SSB: Fix description of Lilypad Overflow (#8137) 2021-03-23 17:05:01 -07:00
urkerab
d395d18591
End Uproar if the user is under the effect of Throat Chop (#8135)
SadisticMystic confirmed that the user of Uproar simply calms down at the end of the current turn.
2021-03-23 17:42:41 -04:00
HematiteH2O
409d5acfef
Megas for All: Minor Ability polish (#8136)
* Megas for All: Minor Ability polish

* Attribute Arena Rock to the proper source
* Don't always animate delayed moves when the user is KOed
* Add visual indicator of which Pokémon currently has Gravitational Pull
* Damage the correct Pokémon with Stealth Rock and G-Max Steelsurge through Gravitational Pull

* Megas for All: Minor Ability polish

* Don't animate delayed moves through Long Whip unless the user is active - it gets very weird if it tries when the user is absent, because most of the animations bring back the user and then it just hangs out indefinitely behind the other Pokémon and... it's very funny but also not correct
2021-03-23 15:00:27 -06:00
Kris Johnson
5e6c259dec
Gen 3/4: Remove HAs in getSpecies (#8134) 2021-03-23 10:19:50 -07:00
HematiteH2O
654a106df4
Megas for All: Slates 30 and 31, balance/bugfixes (#8114)
* Megas for All: Slate 30 and balance/bugfixes

Adding all four new Abilities from Slate 30 (Pool Floaties, Red Licorice, Stygian Shades and Long Whip), but also fixing issues with various other Abilities, including minor balance changes to Savage, Heavenly Techniques, Body of Water and Forgery, and bugfixes to Forgery (again), Seismic Scream and Settle.

* Megas for All: Slate 30 ability (Long Whip)

This is so convoluted, but it has to be able to stack with itself as many as five times over, so I hope this is okay. Let me know if there's a way to streamline this! (and same for Settle, for that matter)

* Megas for All: Slate 30

* Megas for All: Add slate 30 stones

* Megas for All: Update Court Change

* Megas for All: Add slate 30 Mega Evolutions

* Megas for All: Slate 30 and balance changes

Forgery can no longer fake a Z-Crystal, so the entire section dedicated to making that work is no longer necessary. However, there's a new form of non-groundedness that needs to be added (the new 'poolfloaties' volatile), and I also modified the damage section slightly because Settle and Body of Water have some weird interactions, and this was the best way I could find to handle them with perfect accuracy. (For reference, Settle is meant to use the user's physical Attack stat without actually becoming a physical move for any other intents or purposes, while Body of Water is now about halfway to the Body Press effect but keeps the user's offensive stat changes rather than its defensive ones.)

* Megas for All: Add two new move modifiers

* Megas for All: Add missing trailing comma

* Megas for All: Improve Red Licorice ability

* Update abilities.ts

Okay I do think this was at least part of the problem so I'm gonna address that first

* Update scripts.ts

* Megas for All: Fix Cinccino and Falinks

Just fixing two minor errors that came up since the last time I touched this patch

* Update data/mods/megasforall/abilities.ts

Co-authored-by: Annika <annika0uwu@gmail.com>

* Megas for All: Define bladeMoves only once

(okay I was so tired when I worked on this code and I'm actually very embarrassed to see that there are three of these in quick succession and I only changed two of them ._.
so uh! clearly Annika's suggestion not to define it three separate times in the first place is the right call XP)

* Update data/mods/megasforall/abilities.ts

Co-authored-by: Annika <annika0uwu@gmail.com>

* Update scripts.ts

* Megas for All: Abilities for slate 31 and bugfixes

* Revise some shortDescs so they can fit better
* Accommodate for Illusion in some messages (previously, they gave away the Pokémon's real name)
* Revise Forgery (again) - it can no longer copy Mega Stones, and it no longer wears off when the user is hit
* Improve the functionality of Clairvoyance (for consistency with Future Sight and other delayed moves)
* Preserve type change indicators for SOS and Stance Change (established convention is for every Mega in the mod to have these regardless of whether it has changed type, but they disappear when changing form)
* Make sure Sticky Gel doesn't ignite more than once at a time (has been happening)
* Add an activation message to Stygian Shades to reduce confusion
* Overhaul Long Whip (now compatible with the varying base powers of Triple Axel and Triple Kick; now decides accuracy at the start and guarantees that every subsequent hit will land; now persists after the source faints and behaves more similarly to other delayed moves)
* Add new Abilities from slate 31, the very over-the-top complicated Gravitational Pull and the refreshingly simple Chakra Lock

* Megas for All: Improve functionality of Long Whip

* Megas for All: Slate 31

* Megas for All: Slate 31 stones

* Megas for All: Slate 31 compatibility

Modify all entry hazards to account for Gravitational Pull and Triple Axel and Triple Kick to account for Long Whip

* Megas for All: Add slate 31 forms

Add Mega Torterra, Mega Infernape and Mega Empoleon and revise Mega Zoroark's stats

* Megas for All: Slate 31 moves and balance changes

* Megas for All: Minor Ability corrections

* Megas for All: longWhipBoost

* Update moves.ts

* Megas for All: Fix Long Whip

* Megas for All: Fix Alchemist

SHOOT sorry I skipped over this
Meant to do it in the same commit
That was just a copying error

* Apply suggestions from code review

Aaaaa thank you so much! ;u;

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Megas for All: Condense Long Whip conditions

WOW this saves so much space I never knew you could do that

* Update conditions.ts

Co-authored-by: Annika <annika0uwu@gmail.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2021-03-23 02:34:41 -06:00
Instruct
6c5a97e342
SSB4: Bugfixes and Balance changes (#8109) 2021-03-22 22:06:59 -04:00
Kris Johnson
03d214064a Add aliases for Retro OMs 2021-03-21 22:05:37 -06:00
ACakeWearingAHat
00bd42826f
Random Battles: Updates to Gen 5 (#8127) 2021-03-20 17:31:36 -07:00
Marty-D
b26b8f6da7 Fix G-Max One Blow / Rapid Flow interaction with protection 2021-03-20 18:04:55 -04:00
Marty-D
1888fb2e06
Descriptions: Update G-Max Moves 2021-03-20 11:33:44 -04:00
Annika
19c5883e84 Random Battles: Fix Weakness Policy 2021-03-19 20:48:57 -07:00
Kris Johnson
3f5ef2e510 Add more Retro OMs 2021-03-19 19:58:18 -06:00
Annika
ff56f7e503 Random Battles update 2021-03-19 18:28:08 -07:00
Marty-D
1240cb6195
Gen II: Fix Mean Look and Spider Web flags 2021-03-19 18:02:01 -04:00
Annika
7f237eb87f Random Battles: Fix Golisopod's moveset
Oops I forgot to push this with the other two
2021-03-18 18:31:14 -07:00
Annika
8a587b1746 Random Battles: Allow 1 Ditto per game in Gen 1/2 2021-03-18 16:35:01 -07:00
ACakeWearingAHat
3d9aa7dec3
Random Battle: bugfixes and minor updates (#8124) 2021-03-18 11:35:07 -07:00
Annika
c7fd226253 Random Battles: Remove extraneous break statements 2021-03-16 17:23:27 -07:00
Instruct
8105b4121a
SSB: Remove Easter Egg (#8121) 2021-03-16 04:37:29 -07:00
Kris Johnson
8b946b30c3
Move Zygarde-10% to RUBL
https://www.smogon.com/forums/threads/ss-ru-suspect-process-round-3-voting.3679944/page-2#post-8785024
2021-03-15 17:43:15 -06:00
Kris Johnson
4fc5ec08cb
Move Cresselia to NUBL
https://www.smogon.com/forums/threads/ss-nu-suspect-process-stage-5-2-cresselia.3679886/page-2#post-8783760
2021-03-14 20:30:10 -06:00
LegoFigure11
3447c90744
Add Spikemuth Cup (#8094) 2021-03-13 10:35:19 -05:00
Annika
04f2e7d588 Random Battles update
https://www.smogon.com/forums/threads/random-battles-changelog.3678462/#post-8779954
2021-03-11 11:17:15 -08:00
Annika
3b2f5e1b4e Random Battles: Allow Rock Head + Curse 2021-03-10 18:08:07 -08:00
ACakeWearingAHat
333371b709
Add [Gen 8] Random Battle (No Dynamax) (#8111) 2021-03-10 17:19:50 -08:00
Annika
9b354e51d4 Random Battles: Prevent Taunt + Encore 2021-03-10 10:29:09 -08:00
Annika
8e6c54e676 Random Battles: Scale levels for NUBL in Gen 1 2021-03-10 09:23:13 -08:00
Mia
4f710d3ce8 Remove random Monitor.slow() from random-teams 2021-03-10 08:41:27 -06:00
Annika
550a4df374
Random Battles: Refactor Gen 5-7 (#8106) 2021-03-09 19:49:47 -08:00
Annika
c8351c79e3 Random Battles: Add level scale for Gen 1 NU 2021-03-08 18:23:45 -08:00
Kris Johnson
7037d8ee8b Add "ngas" alias for Neutralizing Gas 2021-03-08 17:37:39 -07:00
Kris Johnson
3fbaa90ddd Add Gen 1 NU 2021-03-08 17:21:37 -07:00
Marty-D
8dd7b1e482 Fix UU suspect 2021-03-08 18:17:07 -05:00
Kris Johnson
f595675e27 UU: Unban Aegislash for suspect and ban Victini 2021-03-08 15:57:06 -07:00
Annika
776be29d89
Random Battles: Allow Aerial Ace + Choice Scarf 2021-03-07 15:13:23 -08:00
Marty-D
a620ee53d8
Fix Heat Crash and Heavy Slam 2021-03-07 17:24:48 -05:00
ACakeWearingAHat
46733b2fd5
Gen 3 Random Battle updates (#8102) 2021-03-06 14:59:51 -08:00