Commit Graph

1042 Commits

Author SHA1 Message Date
Guangcong Luo
e716e9edc7 Implement Ultra Burst 2017-11-17 00:01:09 -06:00
Kris Johnson
f2caefba9b Ultra Sun and Ultra Moon update (#4151) 2017-11-16 20:34:43 -06:00
urkerab
83632c0789 Flame Burst should damage target's allies even if it has a Substitute (#4082) 2017-11-16 16:58:20 -06:00
urkerab
e9303b1d1a Use this when it's a Dex (#4152) 2017-11-16 16:57:08 -06:00
TheTiksiBranch
686942c888 Update Useful Moves List (more) (#4126) 2017-11-15 15:59:24 -06:00
MacChaeger
b0910de0a3 Variable healing moves should have fail messages (#4104) 2017-10-31 16:04:04 -05:00
TheTiksiBranch
79d033ad2e Add Magma Storm to Viable Moves (#4099) 2017-10-30 23:43:11 -05:00
Guangcong Luo
246dfa1da3 Refactor in-object-literal to array-includes (#4079)
Previously, if we wanted to test if A was either 'B' or 'C', we would use
the pattern:

    A in {B:1, C:1}

I actually don't know how common this pattern is; I just started using
it because I was tired of typing `A === 'B' || A === 'C'` all the time.
I never really liked it, though; the `:1` part made it kind of
blatantly a hack.

I did some testing and `['B', 'C'].includes(A)` is overall faster.

(A switch statement is around 20x faster still, but who wants to type
that much code?)

Anyway, the new standard is

    ['B', 'C'].includes(A)

Something something progress!
2017-10-23 09:19:15 -05:00
Marty-D
312f93c47c Revert "Fix confusion interaction with HP-checking items (#4045)"
This reverts commit
6651c5dadb.
2017-10-20 21:05:49 -04:00
QuiteQuiet
6651c5dadb Fix confusion interaction with HP-checking items (#4045) 2017-10-17 09:26:27 -04:00
Marty-D
df05e12f59 Correct confusion prevention messages 2017-10-12 09:36:41 -04:00
MacChaeger
a759b8910b Fix Reflect Type vs. Pokemon with the "???" type (#4039) 2017-10-06 15:24:04 -05:00
MacChaeger
88965b39a4 Improve Ingrain's short description (#4040) 2017-10-05 10:22:11 -04:00
Ridaz
8aef13ae18 Update Encore & Fake Out move animations (#4035) 2017-10-03 18:57:05 -05:00
Marty-D
cb91464a49 Update Encore 2017-10-02 21:16:17 -04:00
urkerab
804d0ea4a0 Remove some move effects to improve compatibility with Instruct (#4003) 2017-09-23 01:35:01 -05:00
Marty-D
e6f0f0efd7 Update Instruct 2017-09-18 19:36:52 -04:00
Marty-D
b365d3fea6 Update screen-related descriptions 2017-09-16 13:04:34 -04:00
Marty-D
977af547d6 Fix Aurora Veil 2017-09-15 20:47:14 -04:00
Marty-D
d704b90f5a Gen V-VII: Update move descriptions 2017-09-09 12:41:58 -04:00
Marty-D
92ebb48e3e Remove now-redundant King's Shield check 2017-09-08 14:29:26 -04:00
Guangcong Luo
52619d26ea Sim: Fix Thief Weakness Policy interaction 2017-09-07 09:43:16 -04:00
urkerab
a76a462cd1 Perish Song shouldn't normally hit semi-invulnerable Pokémon (#3963) 2017-09-05 22:06:23 -04:00
urkerab
111c9ff071 Misty Terrain shouldn't -activate for secondary confusion (#3934) 2017-08-31 16:51:36 -04:00
The Immortal
d0606f5cce Aurora Veil is viable 2017-07-27 14:12:32 +04:00
urkerab
3d3158b5a5 Fix mixup between moves and ids in Metronome (#3791) 2017-07-17 09:20:36 -05:00
Insist
df99c57fcc Magikarp's Revenge: Add steals boosts into desc (#3789) 2017-07-16 12:10:12 -05:00
urkerab
d651627755 Fix Metronome calling Gen 7 moves in Gen 6 battles (#3781) 2017-07-15 01:00:55 -05:00
urkerab
2a26e161e5 Typed Hidden Power should be Gen 2 (#3764) 2017-07-12 01:04:06 +09:00
sparktrain
85ac876e27 CAP: Update Persistent (#3722)
Persistent now affects Room moves introduced after Gen 4 as discussed here: http://www.smogon.com/forums/threads/cap-updates-fidgit-discussion-complete.3602772/
2017-07-03 15:24:16 -04:00
Marty-D
b51e138768 Add event Marshadow
Closes #3718
2017-07-03 09:33:48 -04:00
Marty-D
2815b3a6cb Give Magikarp's Revenge a Z-Move power 2017-07-01 10:14:12 -04:00
Marty-D
88e03486a8 Update Sheer Cold mechanics 2017-06-21 19:25:53 -04:00
Marty-D
1b8c56d483 Correct Precipice Blades description 2017-06-17 09:37:55 -04:00
Marty-D
d60c007f3d Update move flag descriptions 2017-06-17 09:36:52 -04:00
Garbodor
4bdb8c05b6 Add missing space in Wonder Room (#3631) 2017-06-13 12:53:48 -05:00
Insist
3c1cd8b4e2 Magikarp's Revenge: Make it even better :^) (#3556) 2017-05-28 14:26:48 +09:00
Guangcong Luo
6dd58b40d3 Refactor simulator into new sim/ directory
This is a surprisingly minor refactor considering how many files it
touches, but most of this is only renames.

In terms of file renames:
- `tools.js` is now `sim/dex.js`
- `battle-engine.js` is now `sim/index.js` and its three classes are
  in `sim/battle.js`, `sim/side.js`, and `sim/pokemon.js`
- `prng.js` is now `sim/prng.js`

In terms of variable renames:
- `Tools` is now `Dex`
- `BattleEngine` is now `Sim`
- `BattleEngine.Battle` is now `Sim.Battle`
- `BattleEngine.BattleSide` is now `Sim.Side`
- `BattleEngine.BattlePokemon` is now `Sim.Pokemon`
2017-05-05 16:48:38 -05:00
Marty-D
8ab09a4aed Remove Laser Focus tag on end 2017-04-28 12:46:03 -04:00
QuiteQuiet
26d6a48156 Implement correct Perish Song mechanics (#3483)
- Liquid Voice + Perish Song will get absorbed by Storm Drain/Water Absorb
- Electrify Perish Song will trigger Lightningrod/Motor Drive/Volt Absorb
2017-04-26 19:29:27 -04:00
Marty-D
f4df0f2312 Fix Roost interaction with Terrains 2017-04-15 14:09:25 -04:00
Marty-D
c5ad9762e4 Fix Core Enforcer interaction with substitutes
Closes #3388
2017-03-31 11:21:59 -04:00
Marty-D
a58c86eae3 Fix Final Gambit 2017-03-31 11:19:41 -04:00
Marty-D
1f2347493a Add dance flag 2017-03-31 10:36:17 -04:00
sparktrain
5c010911e7 Add Z-Move power for CAP signature moves (#3406) 2017-03-27 23:59:32 +04:00
Marty-D
c955328676 Update Telekinesis 2017-03-20 22:40:04 -04:00
Marty-D
145897ff7f Fix Encore 2017-03-18 18:22:19 -04:00
jumbowhales
ed7b23e374 Update Dark Void description (#3358) 2017-03-17 09:27:50 -04:00
Marty-D
c4048fd0bb Fix Genesis Supernova's interaction with substitutes 2017-03-13 23:28:12 -04:00
Marty-D
938f8f6aba Fix Perish Song's end-of-turn order 2017-03-07 11:02:23 -05:00