Commit Graph

41 Commits

Author SHA1 Message Date
Guangcong Luo
55cbc52bba Fix bugs with secondary/ability order
Fixes #6346

The `AfterDamage` event has been replaced with `DamagingHit`, which
which happens for damaging moves after secondaries.

The `AfterHit` event has also been moved after `DamagingHit`, to make
sure Knock Off still procs after Rocky Helmet.

`AfterHit` is no longer a valid event on `secondary` and `self` blocks,
because it's meaningless in those blocks, anyway. All `self.onAfterHit`
and `secondary.onAfterHit` handlers have been moved to `onHit`, which
should have the same timing in practice.
2020-02-08 08:07:39 -08:00
DeltaCoderr
d4779cc558
Update Ranks in SSB (#6345)
* Update  Ranks in SSB

* Update Schiavetto's  SSB Rank.
2020-02-06 15:29:55 +04:00
SalamanderFire
6b2293918f SSB: More bugfixes/updates (#6262) 2020-01-05 22:47:15 -05:00
SalamanderFire
d8a0449702 SSB: Bugfixes and Namechanges (#6241) 2020-01-03 18:16:48 -05:00
Guangcong Luo
9b943fb62f Fix Dynamax stat handling
We now track `baseMaxhp`, the pre-Dynamax max HP. We also have a new
function `getUndynamaxedHP` for use by moves that use it (famously,
Endeavor).

- `baseStoredStats` is unused outside of the mouseover stats display.
  I updated its implementation to reflect this.

- Power Construct doesn't have a defined behavior during Dynamax. I
  ended up implementing an approximation of what it should probably do.

- Endeavor, Pain Split, Super Fang, and Nature's Madness now work on
  undynamaxed HP.

- Moves that deal or heal percentage damage now do it based on
  undynamaxed max HP, other than G-Max Finale.

Fixes #6131

Fixes #6087
2019-12-04 09:25:46 +09:00
Lusamine
2e09c83906 SSB: Namechange Akasianse to Felucia, promote Aeonic (#5932) 2019-11-05 13:27:15 -05:00
HoeenHero
4ced391d6b SSB: Apply various updates 2019-10-30 10:39:20 -04:00
Lusamine
0053aa3adc SSB: Nerf Sundar (#5881) 2019-10-18 19:20:03 -04:00
Lusamine
dcb438c041 Update vivalospride's and Rage's ranks (#5887) 2019-10-16 04:22:35 +04:00
Lusamine
c3068e23de SSB: Fix typo in Volco's message (#5861) 2019-10-12 00:15:56 +04:00
Torracat
b27df882a2 Update Rory's quotes (#5872)
bad puns make the world go round
2019-10-12 00:15:06 +04:00
Lusamine
1cbcb654c1 SSB: Update HoeenHero's rank (#5856) 2019-10-09 01:00:15 +11: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
Torracat
86344e1de9 SSB: Properly update Snaq's health when switching out (#5837) 2019-10-05 14:55:31 -04:00
Kris Johnson
1d3fb35e9d SSB: Update Eien's rank (#5846) 2019-10-04 16:25:55 +10:00
urkerab
948257cce7 Change weight units to hectograms (#5765) 2019-10-03 14:00:16 +10:00
HoeenHero
78a0fb0ad6 SSB: Update Inactive's Faint Message 2019-10-01 11:19:04 -04:00
Torracat
d977cc8aa4 SSB: Break Illusion on Scripted Terrain Corrupt (#5830) 2019-10-01 11:13:58 -04:00
whales
17fc8e5771 SSB: Fix rageee + beat up crash (#5829) 2019-10-01 11:12:08 -04:00
Lusamine
edada46463 Fix multiple places in SSB leaking Illusion (#5818) 2019-09-27 21:28:12 -04:00
Torracat
f9c50edf09 SSB: Fix OM + Illusion (#5820) 2019-09-27 13:14:20 -04:00
Lusamine
c8446e3c1f Fix SSB crash when Illusion copies Kay's innate ability (#5819) 2019-09-27 10:51:26 +09:30
Lusamine
edeb155448 Shorten descs, add speech (#5809) 2019-09-23 11:27:34 -04:00
HoeenHero
8723969e89 Fix Toxic Spikes in SSB 2019-09-22 22:29:35 -04:00
HoeenHero
025d3e2f72 Fix Spikes in SSB 2019-09-22 16:39:35 -04:00
HoeenHero
7f7c2d9a95
Super Staff Bros Brawl Update (#5764) 2019-09-22 14:47:33 -04:00
Kirk Scheibelhut
a61c10eeb8
Remove hardcoded URLs in favor of Config.routes (#5557) 2019-07-01 10:19:21 -07:00
HoeenHero
3d45ebe62b SSB: Remove Bimp 2019-04-15 19:28:47 -04:00
urkerab
0133ba9bd6 Make Pokemon.moves a read only array (#5433) 2019-04-14 23:57:42 +09:30
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
MacChaeger
d3f1161b62 Fix Weakness Policy and Clangorous Soulblaze in doubles (#5389) 2019-04-04 18:51:27 +08:00
force
e3e269956a SSB: update ranks and fix moves (#5380) 2019-04-01 22:12:19 -04:00
Slayer95
628f32e8fb Stricter type definitions for dex data (#5375)
BattleStatuses switched to PureEffectData
2019-03-30 22:31:04 +08:00
Alexander B
57701a5f04 Refactor OMs to use "m" property of Pokemon (#4957) 2019-03-28 22:28:35 +08:00
Ivo Julca
ac4b94876b Sim: Refactor to use Battle#getAllPokemon() and Battle#getAllActive() 2019-03-26 23:18:19 -05:00
Kirk Scheibelhut
9f5a727ad1 Pull Field out of Battle (#5333) 2019-03-23 02:52:12 +09:00
force
b6a28d693d SSB: Bug Fixes & Update Names/Ranks (#5295) 2019-03-15 08:54:58 -04:00
Lycanium Z
51cb39a599 SSB: Arrested -> Pablo; Fix Fake Claim & Sub Interaction (#5205) 2019-02-26 20:33:08 -05:00
Lycanium Z
cacc83043a SSB: Fix Evoblast interaction with substitute; update ranks (#5166) 2019-02-19 21:23:12 -05:00
Guangcong Luo
b498bb222c Require object literal method shorthand 2019-02-11 18:14:09 -06:00
Guangcong Luo
f3e45fbb72 Move server code to server/
Also move mods/ to data/mods/

This makes PS more monorepo-like. The intent is to further separate
the sim and the server code, but without fully committing to splitting
the repository itself.

We now support `./pokemon-showdown start` in addition to
`./pokemon-showdown`. I'm not clear which I want to be the default
yet.
2019-02-03 16:07:06 -06:00