Commit Graph

38 Commits

Author SHA1 Message Date
Kevin Lau
1c574c6c55 Critical Hit Ratio refactor: Use an event to modify crit ratios (#2501)
This allows for proper crit ratios when a Pokemon loses/gains an ability,
item, or other effect in the middle of a multi-hit attack.
2016-04-11 21:35:36 -04:00
Konrad Borowski
81f602b8d8 Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
Konrad Borowski
79a5b23f25 Modify data and mods files to follow style rules 2016-01-01 00:18:00 +01:00
Konrad Borowski
133595c70f Fix style issues in mods hidden by ESLint before 2015-12-10 23:14:32 +01:00
Juanma Serrano
c4ac8d6e2f Use strict mode and let and const instead of var
This commit also fixes some duplicated variable declarations.
2015-11-06 21:56:52 -05:00
Kevin Lau
cbef63343a Fix OHKO moves' interaction with accuracy-changing abilities/effects
Add a new event ModifyAccuracy that affects all moves other than OHKO
moves and switched many event handlers that originally used the Accuracy
event to ModifyAccuracy instead.
2015-06-29 17:22:42 -07:00
Ivo Julca
26680768eb Properly handle failure of multitarget moves
- On failure, they will no longer trigger the `AfterMoveSecondarySelf` event. It was a common pattern to check for success on its handlers, so this removes some duplication.
- All failed moves will now run any set `MoveFail` single events.
- Life Orb will now harm the holder if a successful attack did 0 damage (e.g. False Swipe on a 1 HP target).
2015-06-09 19:31:11 -05:00
Marty-D
ad00529215 Fix Life Orb
- All attacking moves except OHKO moves now take recoil correctly
(except Bide... TODO)
- Thief effects stealing a Life Orb now take recoil correctly
2015-06-07 15:49:38 -04:00
NickMP
20dc263fc5 NEXT: Update Gossamer Wing
Update Gossamer Wing to provide healing to Dustox/Lilligant.
2014-11-12 12:36:26 +01:00
Guangcong Luo
7d1e511a49 NEXT: Buff Gossamer Wing
Gossamer Wing now grants 1/16 recovery after using a status move
2014-10-12 22:14:53 -05:00
Ivo Julca
0fb4b18e66 Gulpfile: check for ES3 issues in data files
Also, remove trailing commas everywhere.
2014-09-04 14:12:07 -05:00
QxC4eva
d906865d1a Fix gennext data syntax errors 2014-09-04 23:23:48 +10:00
NickMP
af0772c451 NEXT: Remove Lilligant from GossamerWing's Damage Reduction
Update GossamerWing to no longer include Lilligant in the list of Pokemon who take reduced damage from Rock, Ice, or Electric type moves, as Lilligant is not a Flying type.
2014-08-24 06:47:10 -04:00
Slayer95
377345454f Shed Bell may be nullified by Sheer Force
Also remove 'AfterMove' global event from all gens, and 'AfterMoveSelf' from Gen 3 onwards.
2014-07-14 19:03:38 -05:00
NickMP
5ffed00265 NEXT: Fix Indentation 2014-07-10 19:52:33 -04:00
NickMP
fd169bb779 NEXT: Fix Life Orb/Confusion Interaction
Add an extra conditional to Life Orb's recoil damage, fixing a bug where Confusion caused Status moves to suffer Life Orb recoil.
2014-07-08 21:20:48 -04:00
Slayer95
dfd0eb9933 NEXT: Fix Genesect 2014-06-26 12:58:54 -05:00
小太
5c8fc7b982 Space after function for anonymous functions 2014-04-22 01:58:16 +10:00
小太
6fb3bc332a Spaces around operators and === instead of == 2014-04-22 01:56:11 +10:00
Slayer95
3fc36ef80f 'clampIntRange is now a method of 'Tools' and no longer global 2014-04-18 15:14:54 -05:00
Tempoanon
38b3e9fd35 NEXT: Vivillon gets Gossamer Wing
Vivillon can now gain the benefits of Gossamer Wing by equipping a Stick.
2014-03-25 16:46:01 -07:00
Guangcong Luo
e6c74559f4 NEXT: Many updates
It's the Gen 6 update!

- Autocrit moves have their base powers tweaked for the new crit
  mechanics; they're now slightly more powerful.
- Ambipom's Sketch is now considered an event move, like Necturna's
- Confusion now deals damage every attack, but the attack is never
  prevented. Its duration is also 3-5 now.
- Parental Bond is now half damage on both hits, but makes all moves
  perfect accuracy as is standard for NEXT multi-hit moves.
- Parabolic Charge now has 40 base power, but gives -1 SpA, -1 SpD to
  the target and +1 SpA, +1 SpD to the user
- Focus Blast down to 30%; I really don't want people to use it
  without No Guard
- Drives no longer grant bonus damage to Techno Blast, the gen 6 buff
  is plenty
- Manaphy unbanned
2014-03-11 00:14:57 -04:00
Ivo Julca
0150143408 Fixes for type change
Fixes Trick-or-Treat and Forest´s Curse stacking.
Fixes Roost overriding other type changes when it ends.
Fixes Roost not suppressing Flying type adquired afterwards in the turn.
Fixes mons not adquiring Flying type when transforming into a roosted pokemon.
Fixes nature of types (added by Trick-or-Treat or Forest´s Curse) not being passed on use of Reflect Type or Transform.
2014-02-01 19:05:28 -05:00
Guangcong Luo
3fb0414c15 NEXT: Update docs, fix Big Root crash 2013-07-09 20:25:18 -07:00
Guangcong Luo
9f2b4f155c NEXT: nerf Double Hit, fix Big Root 2013-07-07 12:22:48 -07:00
Guangcong Luo
cd0f0c8a64 NEXT: Abilities/items that decrease damage announce it 2013-05-29 17:06:45 -07:00
Guangcong Luo
be64f4bd73 NEXT: item changes, new sig moves
- Kingdra gets sig BubbleBeam
- Eelektross gets sig Spark
- Beautifly gets sig Giga Drain
- Lilligant gets GossamerWing access
- type-specific item buffs to pure Grass, Poison, Fighting, and
  Psychic-types
2013-05-27 16:32:52 -07:00
Guangcong Luo
d54f129342 Template/stats refactor:
- Stats are now cached and recalculated every clearVolatile (switchout)
- Power Trick, Power Split, Guard Split, Transform, forme changes now
  modify the cached stat value
- This eliminates the need for pokemon.baseSet, so it's been removed
- pokemon.transformInto has been split into transformInto and formeChange
- pokemon.baseBoosts have also been eliminated, boost changes are now
  calculated on-the-fly like stats themselves
- Overall, stat changes should be a lot more like the cartridge games now
- We're also one step closer to finally getting rid of the ModifyPokemon
  event
2013-03-06 09:53:34 -08:00
Guangcong Luo
5d1e4a6c4b Fix more crashes relating to new stat code 2013-01-22 10:17:56 -08:00
Guangcong Luo
53af2c8533 NEXT changes:
- buff Snow Cloak, special perfect accuracy moves, Thick Fat, Unown
- unnerf Draco Meteor
- nerf Genesect, freezing
- 95% accurate moves now 100% accurate (except Jump Kick)
- Kyurem-B, Deoxys-D, Latios, Latias to Uber
2012-11-24 11:54:38 -08:00
Guangcong Luo
179eb0f989 NEXT: add manifesto, change QD, buff lenses 2012-09-03 21:17:56 -07:00
Guangcong Luo
9f3bc42c63 NEXT: buff Shuckle 2012-08-23 13:41:22 -07:00
Guangcong Luo
ffa1fe5082 NEXT: lots of changes
- see the diff of GEN-NEXT.md for details
2012-08-23 12:55:43 -07:00
Guangcong Luo
39bab5c151 NEXT: nerf Strange Orb
(also update documentation)
2012-08-22 19:39:48 -07:00
Guangcong Luo
125ede327f Gen next changes:
- several bugfixes and new features
- see GEN-NEXT.md for details
2012-07-06 16:50:20 -04:00
Guangcong Luo
d8c4c92d04 More fixes to NEXT:
- see GEN-NEXT.md for details
2012-07-06 05:07:24 -04:00
Guangcong Luo
ec48d36721 Gen NEXT changes:
- Too many to list. See GEN-NEXT.md for details
2012-07-06 03:31:19 -04:00
Guangcong Luo
abac051031 Start work on Gen Next 2012-07-05 13:33:12 -07:00