Commit Graph

979 Commits

Author SHA1 Message Date
Guernouille
437a777fe4 Gen 1: Mimic can copy Transform.
Tested in Link Battle
2015-06-20 17:27:56 +02:00
Marty-D
25a670dc25 Gen II: Steel types can become poisoned 2015-06-18 15:33:39 -04:00
The Immortal
9ea2a9a457 Update OU Theorymon 2015-06-18 04:46:15 +04:00
Kevin Lau
05f718f1ff Move Gen 5 Sky Drop's Try handler to TryHit
Fixes glitches preventing it from working properly due to it inheriting
Gen 6's TryHit handler and effectively locking the users in a loop.
2015-06-16 11:37:09 -07:00
Kevin Lau
903853d91b Battle refactor: No longer reset negated immunity in pokemon.update()
Replace the pokemon.negateImmunity object with a new `NegateImmunity`
event that handles all the immunity negation.

Also deprecate 'IgnoreEffectiveness' in favor of having relevant moves
and items use `Effectiveness` event handlers instead.
2015-06-16 00:02:06 -07:00
Kevin Lau
2aba40b8ad Gen 4 and below Pressure affects allies 2015-06-15 16:30:19 -07:00
Juanma Serrano
d351206e56 Gen 1: Ban Dig and Fly
Dig and Fly are banned from all Gen 1 competitive formats.
This has been long done in tournaments, since it has always been implicit that it is preferred a proper Dig and Fly implementation and a ban rather than just modding the game.

Read more here: http://www.smogon.com/forums/threads/fly-and-dig-implementation-and-possible-ban-opinions-wanted.3527640/page-2
2015-06-15 16:58:41 +02:00
Guangcong Luo
cf112d1d3c Merge pull request #1945 from Slayer95/jscs-rules
Implement custom JSCS rules to enforce code style
2015-06-13 06:18:24 +00:00
Guangcong Luo
6cd44dbe07 Merge pull request #1950 from ascriptmaster/move-fixes
Style Change: suppressAttackEvents -> suppressingAttackEvents
2015-06-12 23:51:23 +00:00
Kevin Lau
5bde84fd6d Style Change: suppressAttackEvents -> suppressingAttackEvents
The new function name makes it clear that the function doesn't actually
suppress attack events, only checks if they would be suppressed.
2015-06-12 16:22:32 -07:00
Marty-D
3a8bad7811 Correct message for sub blocking Status moves 2015-06-12 17:43:33 -04:00
Ivo Julca
f18eef39ca Fix Travis build 2015-06-12 03:41:22 -05:00
Guangcong Luo
d46ada6777 Merge pull request #1934 from SolarisFox/patch-5
standardize "Pokémon" in .md files
2015-06-10 00:36:27 +00: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
SolarisFox
7ed407dfd3 standardize "Pokémon" in .md files 2015-06-09 17:21:23 -07:00
Ivo Julca
d595fcd7e1 Linked: fix Encore
The second move will no longer be performed twice.
2015-06-09 18:33:52 -05:00
Kevin Lau
114ab7e8d4 Gen-NEXT: Fix Intrinsic Levitate
An examination of the commit history seems to indicate that it was
intended to be bypassed by Mold Breaker variants, and not be affected
by Gastro Acid.
2015-06-09 13:43:30 -07:00
The Immortal
a4a09021b2 Gen 1: Fix Wrap deducting extra PP
It currently deducts an extra PP on a switch. According to the comment,
PP is not deducted earlier, which is why it was being deducted here.
But this is incorrect. PP is deducted earlier on a switch.
2015-06-09 19:12:43 +04:00
Juanma Serrano
3a4abaf0fc Gen 1: Implement NU listing
Where as SmogDex does not list the NU tier, it is been a long-standing existing tier within Smogon and rby2k10 communities.
The NU tiering serves for Random Battle balance purposes mainly, as there is no UU format.
One could use the change to build a Gen 1 NU tier or similar, though.
2015-06-09 13:42:36 +02:00
Ivo Julca
c42a6bc132 Linked fixes
- Hardcode Assault Vest and Belch behavior to avoid breaking other core mechanics.
- Rework Encore so that its effect is similar to that of Choice Items.
2015-06-08 23:14:39 -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
Marty-D
301ad94a16 Gen II: Fix Focus Band with confusion damage 2015-06-06 23:44:26 -04:00
Ivo Julca
9e20df84ab Linked: fix issues with disabled linked moves
- Handle these moves with a flag set in BattlePokemon#getLinkedMoves
- Fixes Assault Vest and Belch failing to prevent status moves and itself respectively if called in a link.
2015-06-06 02:09:34 -05:00
Marty-D
29e56b1043 Fix confusion timing after rampage moves
- Gen 1, 2, 5, and 6 cause confusion immediately after the move on the
last turn
- Gen 3 and 4 cause confusion at the end of the turn on the last turn
2015-06-04 09:55:30 -04:00
The Immortal
5aefaf121f Add latest Theorymon winner 2015-06-03 17:14:13 +04:00
Marty-D
1e496508af Gen I, II: Fix Low Kick's power 2015-06-01 23:02:28 -04:00
The Immortal
18f37b8e5a Gen 1/2: Fix Low Kick's accuracy 2015-06-02 05:34:08 +04:00
The Immortal
8d3ebabfd6 Add latest Theorymon winner 2015-06-01 14:45:24 +02:00
Ivo Julca
234caa4ee0 Update OM of the Month: Linked 2015-05-31 13:16:39 -05:00
Marty-D
aab6d24bb2 Correct a few "events" from Pokémon XD 2015-05-29 14:27:00 -04:00
Marty-D
4749def28b Add Johto starter prizes from Pokémon XD 2015-05-29 11:58:59 -04:00
Marty-D
974bd3d41b Gen II: Only Rain Dance weakens SolarBeam 2015-05-28 19:03:15 -04:00
Marty-D
099824a3fb Gen II: Fix base power modifiers 2015-05-28 19:01:15 -04:00
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
Juanma Serrano
98dcac1d8b Gen 1: Fix (de)boost behaviour
The routine for burn and para drops is checked after applying boosts to the Pokémon whose turn is not, regardless of the target of the move, when a Pokémon uses a move that results in a stat change.
2015-05-26 18:12:06 +02:00
Juanma Serrano
825fc4b92e Gen 1: Fix bug with stat modifiers over +2 2015-05-26 17:58:37 +02: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
1e5b241c0d Gen I, II: Fix rampage moves
- The lock starts even if the move is blocked by Protect, misses, or the
target is immune
- The lock ends without causing confusion whenever the move cannot be
executed
- When the lock ends normally, confusion begins even if the user is
already confused, and there is no indication that confusion has started
- In Gen 1 the duration is 3-4 turns
2015-05-22 14:30:44 -04: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
Juanma Serrano
c8f1b8c150 Gen 1: Articuno and Jolteon are OU 2015-05-21 09:55:20 +02: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
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
Marty-D
a8daa10618 Gen II: Correct Low Kick 2015-05-14 16:07:13 -04:00
Juanma Serrano
9e119fa279 Gen 1: Fix status and stats interaction
Stats are recalculated from 0 with a boost, status ignored.
Status drops only applied if status is successfully set.
2015-05-14 10:47:24 +02:00
Juanma Serrano
c3a28abc61 Gen 2: Proper chain breeding learnset check
This is quite complex.
In gen 2, the egg moves pass through father and species through mother.
Therefore, we must check that:
1. Two egg moves come from the same father or are learned in another way.
2. If two egg moves come from the same father, check if the father can learn those two as well.
Also, we must keep track of the state of egg and machine moves in the learnset in order to properly reject them when the problem is found.

Related commits: 17e8515486 and 33cc1e09eb
2015-05-13 16:45:23 +02:00