Commit Graph

3090 Commits

Author SHA1 Message Date
Guangcong Luo
066b1d6828 Merge pull request #1865 from ascriptmaster/move-fixes
Battle refactor: No longer reset ignore in Battle#update
2015-05-27 01:11:34 +00:00
Guangcong Luo
b7aa629703 Merge pull request #1889 from ascriptmaster/move-fixes-2
Battle refactor: New function isGrounded(), bug fixes
2015-05-26 07:09:19 +00:00
Guangcong Luo
590ebf9730 Merge pull request #1898 from ascriptmaster/tests
Un-hardcode Rock Head in favor of an onDamage handler
2015-05-26 01:25:06 +00:00
Marty-D
c40fdef413 Remove Yawn tag when the effect ends 2015-05-23 14:48:13 -04:00
Kevin Lau
61996d3f6e Battle refactor: New function isGrounded(), bug fixes
Added BattlePokemon#isGrounded to check for the grounded-ness of a
Pokemon. Also BattlePokemon#isSemiInvulnerable for whether a Pokemon is
in the first turn of a two-turn move that makes them semi-invulnerable.

Fixed Terrain bugs involving Pokemon in a semi-invulnerable state.

Changed OHKO move check to use BattlePokemon#isSemiInvulnerable, fixing a
graphical bug that would display an immunity message when a Pokemon
attempted an OHKO move on a higher-leveled Pokemon that was being held by
the effect of Sky Drop.

Fixed Misty Terrain bug that was causing Rest and the effect of Yawn to
put Pokemon to sleep.

Fixed Misty Terrain bug that was causing Yawn to fail.

Fixed Electric Terrain bug that was causing Yawn to succeed.
2015-05-21 16:54:44 -07:00
Kevin Lau
17724c59f0 Un-hardcode Rock Head in favor of an onDamage handler
Instead of having a hardcode in scripts.js that people needed to
reference, it seemed more intuitive to take advantage of the Damage
event instead, and have Rock Head negate damage within the event.

Fixed a bug in Gen-NEXT Rock Head exhibiting the same behavior that
was causing the original Rock Head + Mummy glitch.
2015-05-21 13:52:02 -07:00
Marty-D
0581a47431 Fix rampage-ending confusion message 2015-05-21 14:54:37 -04:00
Guangcong Luo
1824125753 Merge pull request #1887 from SolarisFox/patch-5
Style fix: indexOf() comparisons
2015-05-20 18:59:18 +00:00
Marty-D
0e2606b9b9 Fix failure message showing for self effects 2015-05-20 10:45:17 -04:00
Kevin Lau
276f5ff475 Random Doubles Battle: Item Distribution Update
- Removed Trick/Gyro Ball checks as no Pokemon uses that combination.

- Reject Life Orb on Pokemon with 55 or less base Speed.

- Add a check for slow and strong Regenerator Pokemon to receive Assault
  Vest, at slightly higher priority than Sitrus Berry.
2015-05-19 16:02:47 -07:00
Marty-D
c1a1ce85df Fix failure message showing for secondary effects 2015-05-19 15:49:45 -04:00
Kevin Lau
12be51b262 Battle refactor: New functions ignoringItem() and ignoringAbility()
BattlePokemon#ignoringItem and BattlePokemon#ignoringAbility are
hardcodedto return true for any situation where pokemon.ignore['Item']
or pokemon.ignore['Ability'] respectively would have been true.
2015-05-18 19:17:41 -07:00
SolarisFox
29b961ff69 Style fix: indexOf() comparisons 2015-05-18 15:55:57 -07:00
Marty-D
5d0beee8ac Fix partial trapping end messages 2015-05-18 15:08:52 -04:00
The Immortal
7ab3d2d1fe Update Pokemon in PU 2015-05-18 19:11:16 +04:00
Ivo Julca
bcb3278737 Battle Factory: sync sets 2015-05-17 23:59:41 -05:00
Marty-D
724ae5e0ea Add Endure activation message 2015-05-17 12:58:23 -04:00
Marty-D
420e3458e7 Fix Aromatherapy's interaction with Sap Sipper 2015-05-16 19:47:37 -04:00
The Immortal
fca467c76d Random Battle: Give Aegislash a better item
No more Assault Vest Aegislash!
2015-05-16 23:06:49 +04:00
Marty-D
27db03ebef Battle Factory: Fix Thick Fat resistances 2015-05-15 21:52:07 -04:00
Kevin Lau
b4ccff60dd Fix npm build errors 2015-05-15 01:08:25 -07:00
Marty-D
09c5278d4e Merge pull request #1882 from ascriptmaster/move-fixes-2
Fix Imprison bugs
2015-05-14 17:23:00 -04:00
Kevin Lau
54f9383a2c Fix Imprison bugs
Imprison was not blocking moves the turn it was used.
2015-05-14 14:18:41 -07:00
Ivo Julca
49b2898e28 Battle Factory improvements
- Reject teams significatively weak to a single attack type.
- Improve rejection of multiple megas.
- Reject weather-based abilities without their associated weather.
2015-05-14 16:10:51 -05:00
The Immortal
f7167c9393 Add new format: Battle Cup 1v1
In place of Challenge Cup 1v1. Challenge Cup 1v1 under the new Challenge
Cup rules (f73ea6a0ea) isn't a good
format. It's supposed to have some competitive element in that you can
make predictions on what an opponent might have to beat your "best"
choice and as a result you can counter-pick. But with the new Challenge
Cup, that goes out the window.

This adds a slightly updated version of the old CC generator.
2015-05-14 23:08:38 +04:00
Marty-D
e9057cff4d Fix Perish Song tagging Soundproof Pokemon 2015-05-13 09:40:30 -04:00
Pikachuun
4788f7e707 Add new Alias for Primal Groudon 2015-05-12 13:24:05 -04:00
Marty-D
022dc59767 Remove Attract tag when unneeded 2015-05-12 11:05:20 -04:00
The Immortal
f73ea6a0ea Update Challenge Cup
- CC now follows Hackmons mechanics to differentiate it from Random
further (in other words, CC is now Hackmons CC)
- Took this opportunity to finally rename CC 1v1
- Commented out Gen 1 CC
2015-05-12 13:48:14 +04:00
Jay
a245d19b97 Add new aliases 2015-05-12 02:27:32 -04:00
Guangcong Luo
8b7963e996 Merge pull request #1874 from ascriptmaster/tests
Upgrade tests
2015-05-12 06:25:38 +00:00
Rhythms
8ec0b193a4 Battle Factory: EV Fix
not really necessary, but "more proper"
2015-05-11 19:10:33 -06:00
Marty-D
a570a29eac Fix Foresight and Miracle Eye interaction 2015-05-11 11:41:52 -04:00
Ivo Julca
9978eac254 Battle Factory: update for recent tier shifts 2015-05-11 05:09:46 -05:00
Juanma Serrano
f9375a77a6 Merge pull request #1870 from Slayer95/battle-factory
Implement Battle Factory
2015-05-11 09:54:34 +02:00
Ivo Julca
3817311d9c Implement Battle Factory 2015-05-11 01:03:25 -05:00
Kevin Lau
93d5efef43 Status moves return -immune if the target is immune to the status move 2015-05-10 21:00:23 -07:00
Marty-D
f9bc7594ce Gen II: Stalling moves fail behind a substitute 2015-05-09 12:30:55 -04:00
The Immortal
a18c581176 Ban Kingdra from RU 2015-05-09 01:27:48 +04:00
Kevin Lau
c9c54ada16 Random Battle: Reject Toxic Spikes where Spikes is rejected
Prevents things like Shell Smash + Toxic Spikes.
2015-05-08 00:34:58 -07:00
Marty-D
af280660bb Gen II: Fix Dig and Fly
- Fissure can hit Dig and Whirlwind can hit Fly
- Use BasePower instead of ModifyDamage for doubled power moves
- Also correct current-gen Fly to modify damage instead of base power
2015-05-07 11:09:35 -04:00
Guangcong Luo
383af9eea1 Merge pull request #1858 from ascriptmaster/move-fixes-2
Fix Rage Powder's interaction with Safety Goggles
2015-05-05 05:39:29 +00:00
Guangcong Luo
4f708b1240 Merge pull request #1849 from ascriptmaster/move-fixes
Refactor disabling moves, other miscellaneous bug fixes
2015-05-05 05:36:06 +00:00
Kevin Lau
d287e86b46 Do not consume healing berry if healing is blocked
Fixes behavior between healing berries and Berry Juice with Heal Block.
2015-05-04 21:17:08 -07:00
Kevin Lau
0ec4ff912a Battle Engine Refactor: Add a DisableMove event
The intention for this event is to remove the move disabling code away
from ModifyPokemon and to an event that can be run a fewer number of
times. Since the disabledMoves index is used to gray-out moves that cannot
be used, and not for any other purpose, there is no need for the related
code to be run at the ModifyPokemon timing, instead working better as a
once per turn event.
2015-05-04 21:17:00 -07:00
Kevin Lau
8f33492d8b Fix Gravity's interaction with Fly and Bounce
Without removing the 'twoturnmove' volatile, it was forcing Pokemon to
re-select Fly if Gravity was used while the Pokemon was in midair.
2015-05-04 21:16:56 -07:00
The Immortal
6ab9c05837 Move Gallade to RU 2015-05-05 05:28:18 +04:00
Juanma Serrano
1a2882eb09 Remove March-April Seasonal, Super Staff Bros. 2015-05-04 17:35:21 +02:00
Marty-D
1209954765 Fix Sheer Force properly 2015-05-04 10:45:44 -04:00
Juanma Serrano
299213040d Fix Sheer Force
This adds the intended fix of bdd99e84d3 and fixes the problem that made all Sheer Force mons to ignore the AfterMoveSecondary event.
2015-05-04 12:15:09 +02:00