Commit Graph

1278 Commits

Author SHA1 Message Date
livid washed
6e193df3e9
POTD fixes (#9376)
* POTD: add a broadcast when each battle starts, stating the Pokemon of the Day

* POTD species should be set before getting information about species (affects type counts when generating team)
2023-02-05 11:10:29 -05:00
livid washed
b9251678aa
Old Gens Random Battles updates (#9383)
Gen 3:
    some set tweaks
    3 Physical attacks + Fire Blast gives Choice Band

Gen 4:
    Mismagius: add Trick, so that it can rarely generate choiced sets
    Umbreon can now get Wish + Moonlight, but not with Protect
    Ditto will get Salac Berry or Sitrus Berry
    Pidgeot, Fearow, and Farfetch'd have Heat Wave added, which will result in Life Orb sets for the first two

Gen 5:
    Pikachu: remove Thunderbolt, add Volt Tackle
    Dugtrio gets a fixed Life Orb set

Gens 6 and 7:
    Dusknoir: remove Focus Punch
    Pokemon with Rock Head/Water Absorb as possible abilities will never get Swift Swim as their ability, unless they have Rain Dance in their set
    Dustox will no longer get Quiver Dance + U-Turn (the change to gen8/random-teams.ts has no effect on any gen 8 sets)
    Slow Pokemon (< 90 base speed) will no longer get Life Orb with Volt Switch

Gen 6:
    Rework Malamar's set
    Kangaskhan-Mega will not get Seismic Toss with Power-Up Punch
    Cloyster should always get Icicle Spear with Shell Smash
    Focus Sash bulk threshold has been reduced from <= 275 to < 255
    remove Cherrim-Sunshine set, add HP Ice to Cherrim

Gen 7:
    Reshiram should always get Blue Flare
    tweak Ninetales and Ninetales-Alola's sets
2023-02-05 11:09:11 -05:00
Marty-D
9ab9e55f8c
Gen 6 UU: Ban Slurpuff
https://www.smogon.com/forums/posts/9492568/
2023-02-01 21:54:30 -05:00
livid washed
ca55d37b6d
Random Battles Monthly Spotlight: POTD (#9374)
* Add new POTD mod, copying randomTeam() from gen9 random-teams.ts

* implement PotD

* linting
2023-02-01 12:49:44 -07:00
Kris Johnson
6f641f069c Joltemons: Rename mod 2023-01-31 23:59:06 -07:00
livid washed
cac12006b0
BDSP Random Battles updates (#9358)
* Changes on the pinned list

* Implement other changes

* linting

* 3 Special attacks + U-Turn = Choice

* Toxic Orb if Quick Feet

* Tauros should get Life Orb and Sheer Force

* Add Quick Feet rejection condition

* Update data/mods/gen8bdsp/random-teams.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2023-01-31 13:42:40 -07:00
sexy90gxebattlefactoryplayer
5cbb317a4c
Gen 8 Battle Factory: Remove Darmanitan-Galar's Choice Band set (#9354)
* Gen 8 Battle Factory: Remove Band set from Ubers Darmanitan-Galar 

Credentials: https://cdn.discordapp.com/attachments/1042959218208157696/1067534457160089731/image.png (i am "lost wind's elegy")

Darm-G's firepower is just fine with scarf; there aren't many (if any?) relevant 1hkos or 2hkos you miss out on compared to band. The only one I can think of is missing out on the OHKO vs Sp. Def Necrozma Dusk Mane, and nobody's leaving their NDM in anyway + you probably have like 12 other things to deal with it.

Without scarf, however, you miss out on really good source of offensive checking and revenge killing potential. Scarf outspeeds huge threats like non scarf Yveltal, Eternatus, Calyrex-Shadow, etc. 

What sparks had to say about band darm in proper SS Ubers:
sparks — Today at 1:53 PM
not really but with band building needs to be more focused cos the speed over the 90s and etern etc is insane with scarf

sparks — Today at 1:54 PM
while with band you're very much focused on "how to take out ndm and capitalize while not being weak to ho"

As a secondary factor, it would make Ubers in BF a lot better. Currently you have to not only win the coinflip of what move Darm clicks but also the coinflip of what item it is. Both of these are more or less up to random chance.

* Update data/mods/gen8/factory-sets.json

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2023-01-31 13:42:14 -07:00
livid washed
73da793891
Gen 5-7 Random Battles updates (#9365) 2023-01-29 19:09:39 -06:00
livid washed
67ad24b364
Gen 2-4 Random Battles updates (#9364) 2023-01-29 19:09:30 -06:00
livid washed
c0d74ea24e
Gen 2: Fix Encore (#9357)
* Gen 2: revert Mirror Move fix, since it is bugging Encore

* Use a volatile for checking if a Pokemon has a last move for Mirror Move purposes

* conversion2

* Disable

* Mimic

* Spite

* Do mirror move in onTryHit

* Gen 1 shouldn't inherit onTryHit for mirror move and mimic

* Commenting

* Instead of using a volatile, add a new field for a pokemon 'lastMoveEncore' used only in gen 2 and only for Encore

* Add test for Gen 2 Encore
2023-01-29 11:43:11 -07:00
Kris Johnson
881c8cbef2
Gen 1: Move Poliwhirl to NUBL
https://www.smogon.com/forums/threads/rby-nu-poliwhirl-voting.3715170/#post-9488074
2023-01-28 19:23:19 -07:00
Kris Johnson
c99faa9a5d Release Protean Greninja 2023-01-26 19:43:05 -07:00
pyuk-bot
139deab2e5
Fix Ability Shield Levitate vs. Mold Breaker (#9353) 2023-01-24 23:23:09 -06:00
adrivrie
efdd0daf15
Battle Factory updates (#9307) 2023-01-23 13:23:11 -05:00
livid washed
3f25dab65a
Gen 4 Random Battles updates (#9348) 2023-01-23 13:22:28 -05:00
livid washed
4d4bc05256
Old Gens Random Battles updates (#9347)
* Gen 1: Fix Tangela's set

* Gen 3: replace Counter with Rest on Politoed, and give Skarmory Whirlwind instead of Roar

* Gen 6-7: Fix Expert Belt condition

* Gen 5: allow Specs Kyogre and Typhlosion

* Gen 5: set changes

* Gen 5: Change Mewtwo set and move enforcement for Psychic types with Calm Mind

* Gen 5: Re-add Ice Shard to Cloyster, only allowed if not Shell Smash

* Gen 5: Reflect and Light Screen should usually be generated together

* Gen 3: Remove Refresh from Latios, allow mono-attacking Latias with Refresh

* Gen 3: Deal with unobtainable moves

* Gen 5: Fix Priority + trick/switcheroo condition

* Gen 2: set changes

* Gen 2: remove unobtainable Zapdos moves

* Gen 3: Return is better on farfetch'd
2023-01-22 21:36:51 -06:00
Hisuian Zoroark
d7fb144a97
Add Gen 9 Trademarked (#9335)
* Improve and revive Trademarked

* Fix A LOT

* Fix more

* prep

* Don't need fail message, add thread

* Add better activation fail message
2023-01-22 15:17:36 -07:00
livid washed
bfff1adf3a
Gen 1 Thrash: Confusion from thrashing should be silently added (#9345)
* Gen 1 Thrash: Confusion from thrashing should be silently added

* cleaner code
2023-01-22 13:39:19 -08:00
pyuk-bot
e3b791f310
Fix changing, blocking, and reacting to stat boosts (#9322) 2023-01-21 12:17:22 -05:00
livid washed
fe1f2f8e82
Gen 6-7 Random Battles updates (#9330) 2023-01-15 23:33:53 -06:00
Karthik
924917ba73
Use onTryImmunity event for Attract failure (#9332) 2023-01-15 21:16:34 -05:00
livid washed
0d4f6bea69
Gen 2-7 Random Battles: add limit of 3 Pokemon weak to each type (#9325) 2023-01-14 19:19:03 -06:00
pyuk-bot
a5a9d96ef1
Remove Fly animation target leak in Gen 9 (#9327) 2023-01-14 19:06:59 -06:00
livid washed
6573f468bc
Gen 1: Fix Thrash and Rage mechanics (#9315)
* Copy everything from Gen 2 thrashing condition and stop inheriting

* Remove residual and MoveAborted events (don't occur in gen 1)

* effectState.duration --> effectState.time, so that thrashing pauses on slp/frz/flinch/partial trapping. Also, confusion is now applied before the final Thrash hits (but after confusion check, so the final Thrash won't be interrupted)

* Confusion is only applied if Thrashing effect ends naturally, not due to full para/confusion

* Thrash should lock the user in, even if it misses/hits a Ghost/etc

* Add Thrash tests: duration and locking in the user when it misses

* Thrash locks in the user even if it breaks a sub

* Remove unnecessary events for thrashing moves

* Thrash is paused when the user is asleep, frozen, partially trapped, or flinching

* Thrash is paused when disabled

* Rage duration is permanent, not 255

* Implement Rage/Thrash accuracy bug (need to change when lockedmove volatile is removed

* Move location of applying thrashing effect, so that the final turn will be subject to accuracy bug

* Add test for Thrash accuracy bug

* Add test for Rage accuracy bug

* Remove useless line

* Use an event for obtaining accuracy of Rage/Thrash

* Revert last change
2023-01-14 14:47:58 -08:00
livid washed
cd9fd6f27d
Gen 2 and 4 Random Battles update (#9303)
* Gen 4: remove Unaware from Bibarel

* Gen 4: prevent Dragon Pulse + Draco Meteor

* Gen 2: Gligar and TTar set changes + count Screech as a physical setup move

* Gen 2: Enforce STAB Flying on Gligar (futureproofing for if its movepool is expanded)
2023-01-12 20:48:55 -05:00
livid washed
2e2f844911
Gens 5-7 Random Battles updates (#9302)
* Gens 6-7: give Sunflora Specs set

* Gen 6: Remove Bullet Seed from Mega Heracross

* Gen 6: give Sigilyph Flame Orb

* Gens 6-7: make Light Screen and Reflect equally likely

* more movepool changes in gen 6

* Gen 6: require recovery on support Pokemon

* Guarantee Milk Drink in gen 6 and Moonlight on pure Psychics in gens 6-7

* no Cloud Nine on Altaria (gens 5-6)

* Gen 5: guarantee Milk Drink on Miltank

* Gen 5: guarantee Moonlight on non-TR Musharna and Cresselia

* Gen 5: replace HP fighting with Focus Blast on mrmime

* Gen 5: give Sigilyph Flame Orb

* Fix Trick Room check
2023-01-12 20:48:12 -05:00
pyuk-bot
ac3647cba0
Remove unnecessary effect overrides from some mods (#9312) 2023-01-11 23:08:25 -06:00
Marty-D
a39054be73
Gen 5 OU: Drop Latias into OU by technicality
https://www.smogon.com/forums/posts/9465722/
2023-01-10 15:14:39 -05:00
Kris Johnson
75e0eeaf1d Delete Gen 8 OMs 2023-01-09 15:26:06 -07:00
livid washed
b3f0bc25ee
Gen 1: Fix Bide selections (#9301)
* Gen 1: Fix Bide so that it restricts the choices of the player using it

* Add tests for Bide move choices
2023-01-09 11:33:19 -08:00
livid washed
57f00f2c24
Gen 1: Fix battle log for charging moves, add hint for stat overflow (#9294)
* Gen 1: Fix battle log for charging moves

* Add hint for stat overflow
2023-01-08 17:49:19 -08:00
livid washed
3b85dedf1a
Gen 2 Random Battles updates (#9289)
* Gen 2 Random Battles update

* Remove some culling conditions that never occur

* Remove illegal moves

* Fix Bellossom: Razor Leaf + Leech Seed is illegal
2023-01-05 21:09:20 -07:00
Alexander B
ead7d28537
Gen 8 Random Battle: Fix lead bugs (#9274) 2023-01-03 12:12:10 -06:00
adrivrie
da9d196efb
Gen 8 Random Battle: Set a minimum level for Zoroark (#9279)
* Gen 8 Random Battle: Set a minimum level for Zoroark

* Remove double check for zoroark presence

* But properly this time
2023-01-02 13:16:01 -08:00
adrivrie
e75399819c
Gen 3 Random Battle: Add levels for new PU tier (#9280) 2023-01-02 13:14:05 -08:00
adrivrie
4cabf6f507
removing more illegal mons from bf (#9272) 2023-01-01 11:01:03 -07:00
Kris Johnson
f6652d7026 Add ADV PU 2023-01-01 02:26:19 -07:00
adrivrie
7f831931f8
Gen 8 Battle Factory: Remove banned Pokemon (#9268)
* remove magby from gen8BF

* more bans
2022-12-31 11:04:13 -07:00
livid washed
a1cb1f23fc
Gen 1: Implement Dig/Fly invulnerability glitch, partially fix charging moves and Mirror Move (#9243)
* Protect/Detect/Endure don't exist in gen 1

* Add twoturnmove condition to gen 1

* Gens 1-2: Mirror Move fails immediately after a switch

* Fix first Mirror Move test: Fearow was getting OHKO'd by Hyper Beam

* pokemon.lastMove (for Mirror Move) isn't updated with the charging turn

* Remove unnecessary code

* Add onTryMove for each two-turn move with removeVolatile('twoturnmove')

* Sleep, Freeze, partial trapping, flinch don't stop two turn moves

* Para/confusion stops thrashing moves + copy over lockedmove condition details instead of inheriting

* Remove some unnecessary code

* Add Dig/Fly invulnerability glitch

* Add hint for Dig/Fly invulnerability glitch

* Gen 1 Japanese and Stadium

* put Dig before Fly

* Self-targeted moves (e.g. Recover) will work while semi-invulnerable

* Revert changes to lockedmove, do them in a future patch

* move ends if it fails due to disable

* Two-turn moves use PP in their second turn

* restore mocharc

* Remove unnecessary code

* Fix PP usage for Metronome/Mirror Move calling two-turn moves
2022-12-29 18:35:59 -08:00
livid washed
ca0674934c
[Gen 1] Random Battle: Improve Substitute HP EV generation (#9246) 2022-12-29 17:48:52 -08:00
livid washed
76bce69eec
Gen 3 Random Battle update: White Herb for non-band Deo (-A) (#9253)
* Add White Herb for non-CB Deoxys and Deoxys-A

* Only deo and deo-a have psycho boost
2022-12-29 17:48:07 -08:00
livid washed
60b134332f
Gen 5 Random Battles updates (#9244)
* Prevent same type STAB when undesirable

* Heracross only gets Guts if it has Facade and would get an orb

* Add Roost to Gliscor

* Guarantee recovery on support/defensive mons

* linting

* Implement Heracross condition more efficiently

* easier Gliscor case

* Update data/mods/gen5/random-teams.ts

Co-authored-by: ACakeWearingAHat <45981036+ACakeWearingAHat@users.noreply.github.com>

* linting

Co-authored-by: ACakeWearingAHat <45981036+ACakeWearingAHat@users.noreply.github.com>
2022-12-29 19:46:08 -06:00
Alexander B
47dd6d0e55
Gen 6-8 Random Battles: Fix unused moves (#9256) 2022-12-29 19:44:28 -06:00
adrivrie
1a20b25f52
Gen 6/7 Random Battle: Give Seaking Swift Swim with Rain Dance (#9247)
* seaking now gets swift swim when there's rain

* fix trailing space
2022-12-29 19:43:53 -06:00
Leonard Craft III
65951e3b69
Fix more SV item legality (#9236) 2022-12-27 13:43:34 -05:00
Leonard Craft III
fa56e1658f
Gen IX: Really fix Curse targeting behavior (#9218) 2022-12-27 13:43:07 -05:00
Karthik
bffabd437c
Don't reveal Dudunsparce forme on Team Preview (#9239) 2022-12-26 21:41:56 -07:00
Karthik
65dcedc557
Implement proper Origin forme mechanics (#9227) 2022-12-26 12:20:44 -06:00
Kris Johnson
710c50f233
Move Scrafty to PUBL 2022-12-23 12:48:27 -07:00
Marty
2fea293ecc Revert "Gen 4: Ensure Brick Break breaks screens of immune targets (#9149)"
This reverts commit 06453020ee.
2022-12-22 20:02:58 -05:00