urkerab
cdb12bd696
Fix last item handling ( #4383 )
2018-01-28 20:05:44 -06:00
urkerab
f0c93655c4
Fix Protective Pads mechanics ( #4362 )
2018-01-23 11:19:07 -05:00
urkerab
fba65229cf
Add Mind Blown to Damp's description ( #4305 )
2018-01-02 16:22:08 -06:00
urkerab
25fe89f45a
Make Contrary Competitive/Defiant self-inflicted ( #4276 )
2017-12-24 23:29:59 -06:00
MacChaeger
8d571be74e
Fix certain Abilities not being overwritten by most forme changes ( #4245 )
2017-12-14 11:45:12 -05:00
Guangcong Luo
6d3c78fca6
Fix typoes
2017-12-06 14:57:22 -06:00
Guangcong Luo
c0da44c482
Refactor moveset -> moveSlots
...
pokemon.moveset is now pokemon.moveSlots, which is at least slightly
clearer about what it's doing (tracking move state, mainly PP).
Mostly, this gives a consistent naming scheme for `move` (a Move
object) vs `moveSlot` (a MoveSlot object).
This also refactors a lot of existing `moveSlot` accesses to be modern,
including using `for...of`.
2017-12-05 11:12:44 -06:00
Guangcong Luo
f3dbfbe685
Refactor Decision -> Action
...
"Decision" and "Choice" were always kind of unclear, so Decision is now
Action. It should now be a lot clearer.
Actions are also now strongly typed.
2017-12-02 11:34:55 -06:00
Marty-D
dc7c46b427
Update Ability-changing effects
...
Fixes #3230 , closes #3245
2017-12-02 11:37:36 -05:00
Guangcong Luo
1ac2745c3e
Refactor Pursuit hack
...
Pursuit no longer uses `moveThisTurn`, but rather `willMove`, which
involves significantly fewer Pursuit hacks.
2017-12-01 15:59:13 -06:00
Guangcong Luo
f4e535bbd6
Enforce consistent key spacing
...
This was previously not enforced because we used `:1` in too many
places, but those places seem to all be refactored out at this point.
2017-12-01 08:16:23 -06:00
Guangcong Luo
9bdf674d5f
Refactor more tables to arrays
...
See #4079
Now we're just missing oldgens.
2017-11-30 19:40:16 -06:00
Marty-D
4c6b71f656
Gen III-IV: Fix Overgrow and friends
2017-11-24 12:40:26 -05:00
Kris Johnson
3a01ece652
Add Totem Pokemon ( #4165 )
2017-11-24 01:09:22 -06:00
The Immortal
40c49cc5c5
Random Battle updates
2017-11-20 19:18:13 +08:00
Marty-D
ebb274ed86
Update descriptions
2017-11-17 21:09:37 -05:00
Kris Johnson
f2caefba9b
Ultra Sun and Ultra Moon update ( #4151 )
2017-11-16 20:34:43 -06:00
urkerab
e9303b1d1a
Use this when it's a Dex ( #4152 )
2017-11-16 16:57:08 -06: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
The Immortal
792f7e0162
Random Battle updates
2017-10-20 13:29:40 +04:00
QuiteQuiet
6651c5dadb
Fix confusion interaction with HP-checking items ( #4045 )
2017-10-17 09:26:27 -04:00
Kris Johnson
5d13b92bc8
Fix -ate Abilities' interaction with type-changing moves ( #4023 )
2017-09-27 22:01:37 -04:00
Marty-D
9a35ee28e5
Clarify Stakeout description
2017-09-27 13:50:17 -04:00
Marty-D
c33dff68a0
Fix new Ability modifiers
2017-09-27 10:24:27 -04:00
MacChaeger
05cdd33542
Fix Dancer activation order ( #4009 )
2017-09-23 20:17:00 -04:00
The Immortal
5e7d460149
More Random Battle updates
2017-09-10 01:08:51 +04:00
The Immortal
e778ee0332
Random Battle: Improve Abilities
2017-09-09 16:07:52 +04:00
The Immortal
8eecbdb899
Random Battle updates
2017-09-09 01:59:11 +04:00
The Immortal
748305ec2b
Modify weather abilities' ratings
2017-09-07 13:17:41 +04:00
Guangcong Luo
2923b94140
Sim: Moves may only be aura boosted once
...
Fixes #3952
2017-09-05 19:11:48 -04:00
Marty-D
3e6ba18cd4
Fix Disguise interaction with substitutes
2017-08-27 18:48:25 -04:00
urkerab
5ea93dc11b
Fix parameters to onAnyBasePower for Dark/Fairy Aura ( #3922 )
2017-08-27 14:45:15 -05:00
urkerab
0ed87b755d
Remove some ability effects to improve compatibility with Instruct ( #3905 )
2017-08-23 22:45:54 -07:00
Marty-D
389d10e636
Update Ability descriptions
...
And remove redundant inheritance from Gen 3
2017-08-23 20:25:50 -04:00
asgdf
8620fab0d4
Add ignoring Aurora Veil to Infiltrator's description ( #3872 )
2017-08-09 10:30:51 -04:00
Lionyx
d3c863c7dd
Update the list of Abilities Trace cannot trace ( #3694 )
2017-08-07 23:14:11 -04:00
Marty-D
702c029385
Fix -ate Abilities' interaction with moves
2017-08-02 20:17:02 -04:00
The Immortal
727a2e7dff
Fix Normalize interaction with certain moves
2017-08-03 00:28:13 +04:00
urkerab
5bc0c634d6
Reset Parental Bond damage after a move ( #3847 )
2017-07-29 20:10:02 -04:00
urkerab
217f3b34e3
Shields Down blocks Yawn when active and ignores Mold Breaker ( #3799 )
2017-07-17 18:48:24 -05:00
Ivo Julca
4e543aee9e
Implement Trace adjacency check
2017-05-27 20:43:24 -05:00
t8bm
4cef9358c9
Fix Refrigerate modifiers ( #3552 )
2017-05-25 22:09:44 -04:00
urkerab
f24d7cbadb
Move Illusion-breaking out of the battle engine ( #3549 )
2017-05-24 20:36:17 -04: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
MacChaeger
e2c07a6c6f
Fix Perish Song + Soundproof ( #3487 )
2017-04-29 09:48:45 -04:00
The Immortal
02ea84fd59
Random Battle: Ability improvements
2017-04-25 17:13:31 +04:00
Kevin Lau
8970beac69
Random Battle: Allow Belly Drum Gluttony ( #3472 )
2017-04-24 20:47:11 +04:00
MacChaeger
e22a504824
Random Battle: Update Mudsdale ( #3462 )
2017-04-18 15:18:17 +04:00
The Immortal
afe3341a53
Random Battle updates
...
- Increase Adaptability rating
- Remove Toxic from Mega Blastoise
- Update gen 6 with relevant changes from current gen
2017-04-14 16:53:11 +04:00