Commit Graph

7094 Commits

Author SHA1 Message Date
Juanma Serrano
e253ea3e7d Gen 1: Fix two turn moves
This fixes two turn moves as latest changes maonde this necessary.
Related to 7977b2c3cd
2015-01-12 12:19:09 +01:00
Juanma Serrano
263cb0b422 Ban Greninja to Ubers
Be gone, foul creature! Leave the OverUsed in peace.
2015-01-12 12:18:36 +01:00
Juanma Serrano
aaed2fd6df Gen 1 RandBats: Reject setup with no attacking moves 2015-01-12 09:07:31 +01:00
Ivo Julca
1d85e9edd2 Clean-up code for Destiny Bond and Grudge
- The existence of the volatile implies that the last move used by the fainted mon is the correct one.
- Just like Destiny Bond, Grudge isn't triggered by future moves, and the volatile should always be removed on BeforeMove.
2015-01-12 00:18:43 -05:00
Ivo Julca
2b5e3bab10 Minor style fixes in data files 2015-01-12 00:11:48 -05:00
Guangcong Luo
445e4636e0 Merge pull request #1411 from codelegend/wifi-patch1
WiFi plugin: fix grammatical errors, slighly modify giveaway object
2015-01-11 12:26:33 -08:00
Guangcong Luo
ab6dfa68e5 Merge pull request #1410 from asgdf/faq-update
Update /faq, re-add support for "all" in /faq, /tiers and /om
2015-01-11 12:25:12 -08:00
asgdf
6bb0039d9f Update /faq
Remove outdated randomcap FAQ, add 3 other questions that get asked a lot, update name and link of deviation FAQ since it has nothing to do with deviation anymore
fix trailing whitespaces from previous commit
2015-01-11 14:29:00 +01:00
blazikenmask
47f38b34e9 WiFi plugin: fix grammatical errors, slighly modify giveaway object 2015-01-11 18:53:50 +05:30
asgdf
274aa0f991 Re-add support for "all" in /faq, /tiers and /om 2015-01-11 08:47:38 +01:00
Guangcong Luo
c09692e567 Merge pull request #1407 from Morfent/invite
Fix logic error in private room check for /invite
2015-01-10 19:33:56 -08:00
Morfent
26cfc37b07 Fix logic error in private room check for /invite
Fix possible crash by checking that roomauth exists in a secret room
with modjoin on before checking if the target user has permission to
join. This also fixes a really, really stupid logic error in the last
commit that makes it impossible for anyone that can't bypassall to get
invited anywhere.
2015-01-10 19:37:07 -04:00
Guangcong Luo
74663bd547 Merge pull request #1406 from Morfent/invite
Update /invite, fix /me and /announce in PM
2015-01-10 14:37:46 -08:00
The Immortal
95d27e842a Add event Pikachu 2015-01-11 00:56:57 +04:00
The Immortal
e3b2927638 Ban Serperior from PU 2015-01-11 00:51:19 +04:00
Morfent
e26f1e55ff Update /invite, fix /me and /announce in PM 2015-01-10 12:38:55 -04:00
Guangcong Luo
5c8ddc6983 Refactor gen 2 fainting
Makes gen 2 use the modern fainting system.
2015-01-10 01:39:35 -05:00
Guangcong Luo
ba426e0a73 Fix Burn+Explosion
Explosion/Selfdestruct used to be unaffected by burn. This commit
fixes that.
2015-01-10 01:39:35 -05:00
Guangcong Luo
daa073d687 Merge pull request #1383 from codelegend/wifi
Add wi-fi chat plugin: giveaways
2015-01-09 20:57:53 -08:00
Joimer
5050a7efc8 Gen 1: Make sure partial trapping lock ends after faint
Partial trapping lock on user disappears if target is fainted mid-duration
2015-01-09 15:54:27 +01:00
Juanma Serrano
0e5a854dee Gen 1 RandBats: Overhaul the set generator
Update a lot of possible moves.
Reject Sharpen and Sword Dance if the Pokémon has Special attacks only.
Reject Sharpen and Growth if Pokémon has better setup.
Make recovery mons always get their recovery move.
Prefer Thunder Wave to Body Slam on movesets in which is used to paralyse mainly.
Avoid Slash with setup moves on the same set.
2015-01-09 11:29:18 +01:00
Juanma Serrano
07538a8f81 Gen 1 RandBats: Move updates. Nidorino doesn't learn EQ 2015-01-09 10:52:54 +01:00
Juanma Serrano
470ab938f0 Gen 1 RandBats: Update moves and balance 2015-01-09 10:49:34 +01:00
Juanma Serrano
3bd4c0649e Gens 1 & 2: On Tradeback, allow Egg moves from gen 2 with gen 1 moves 2015-01-09 10:30:11 +01:00
Juanma Serrano
c72606276b Delete last minute error tab 2015-01-09 10:01:11 +01:00
Juanma Serrano
adf11a9036 Gen 1: Last used move is stored after deducting a PP 2015-01-09 09:55:59 +01:00
Juanma Serrano
defedeb162 Implement Stadium format
This commit implements at its full the Stadium format.
Stadium is a half-generation between Gen 1 and Gen 2, widely regarded as a Gen 1 game without the major gen 1 bugs.

The main changes of this game are:
Sleep lasts between 1 and 3 turns.
Hyper Beam does recharge after a faint.
Critical hits happen way less.
Substitute now blocks all status ailments and draining.
It allows tradebacks.
Partial trapping moves miss and stop their duration upon target switch.
Focus Energy actually works.
Stat calculations are done properly, burn and para drop are lost if you lose status.
2015-01-09 09:48:50 +01:00
Guangcong Luo
2a3c4e71dd Gen 1-3: Fix faint mechanics
Faint mechanics are now handled in the battle engine, instead of
hackily in the data files.

This also makes it so the case of Pokemon fainting mid-turn in
gen 3 singles correctly ends the turn.
2015-01-09 01:45:19 -05:00
Guangcong Luo
adc804693d Merge pull request #1399 from ascriptmaster/seasonal
Fix Hidden Powers on Terminator Scenario
2015-01-08 18:57:02 -08:00
ascriptmaster
1c634b07fc Fix Hidden Powers on Terminator Scenario
Reduce all speed IVs by 30 to the lowest possible values that conserve the
typing of Hidden Power (since it's based on odd vs even)
2015-01-08 18:33:45 -08:00
Guangcong Luo
87ffe53851 Merge pull request #1398 from MonoHearted/patch-3
NEXT: Readme Update
2015-01-08 17:24:56 -08:00
Guangcong Luo
3e81aa26b8 Merge pull request #1395 from sirDonovan/settype
Tournaments: update /tour settype
2015-01-08 17:23:17 -08:00
MonoHearted
9be541a04b NEXT: Readme Update 2015-01-08 16:09:10 -08:00
sirDonovan
e913bf3f82 Tournaments: update /tour settype
Allow changes to the player cap and send a message to the user if
changes were successful
2015-01-08 15:43:36 -06:00
Joimer
88bd068886 Gen 1: Fix critical bug in typechart
Poison resists poison...
2015-01-08 22:26:09 +01:00
Guangcong Luo
37a5a4c2ec Merge pull request #1396 from Morfent/invitetoalias
Fix /invite to room aliases and nonexistent rooms
2015-01-08 13:23:23 -08:00
Guangcong Luo
355b949e8d Merge pull request #1392 from MonoHearted/patch-1
NEXT: Tweaks to Swift Swim, Sand Rush, Chlorophyll
2015-01-08 13:21:13 -08:00
Joimer
0b2ee6c36f Gens 1 & 2: Fix small bug with recoil and drain damage 2015-01-08 21:08:10 +01:00
Joimer
2398439a49 Gen 1 RandBats: Balance level better 2015-01-08 20:51:57 +01:00
Joimer
bcd27ae976 Gen 1 Randbat: Avoid sharpen with special set 2015-01-08 20:39:32 +01:00
Joimer
04ec7541e6 Add ladder for Gen 1 Random Battle
After an overwhelming welcome to the format, with more than 200 spectators on the first battle, and a 64 man tourney getting full in about 5 seconds, it's plausible that this format will be popular
2015-01-08 20:26:17 +01:00
Joimer
e32d1a049d Gen 1: Fix possible bug with statuses and switch ins 2015-01-08 20:22:31 +01:00
Joimer
38cd66d76a Gen 1: Fix and add Random Battles 2015-01-08 19:39:33 +01:00
Juanma Serrano
206084d3ac Gen 1: Sand Attack was normal type, but hit Ghosts 2015-01-08 14:13:20 +01:00
Juanma Serrano
dc34e0e181 Gen 2: Don't run AfterSwitchInSelf on forced switch 2015-01-08 13:35:18 +01:00
Juanma Serrano
8f5327db76 Gens 1 & 2: Make sure AfterSwitchInSelf doesn't run after a faint 2015-01-08 13:25:31 +01:00
Juanma Serrano
ecdc54e842 Gen 1: Proper toxic leech seed damage
As it stands, the residual damage on gen 1 works as follows:
The 'residual damage' var is set to 0 when a Pokémon switches in.
Poison, burn, and leech seed increment 'residual damage' by 1 upon start. So does Toxic.
If the pokémon has a status ailemnt or leech seed, run residual damage function.
Residual damage function will damage the Pokémon for floor(total HP / 16) * 'residual damage'.
If the Pokémon has the status Toxic, increase 'residual damage' by 1.

This causes the 'toxic leech seed' bug, as if you toxic and leech seed the same Pokémon, the residual damage function will increase the damage for each damage.
This also causes the first toxic after the combination of the two to get to the next stage, as the leech seed init will increase the damage var by 1.
This alsoc auses the rest bug in which resting does not reset the residual (or toxic) counter.

See the bug in action: https://www.youtube.com/watch?v=bNjEFgsIIIY
2015-01-08 13:05:22 +01:00
The Immortal
020f704185 Free Contrary Serperior 2015-01-08 15:21:33 +04:00
Juanma Serrano
33c2a0206d Gen 1: Implement toxic counter properly
The toxic counter is a separate volatile.
It is set to 1 on burn, poison, and leech seed.
It starts on 1 on toxic, but gets increased by 1 every turn.
If the Pokémon gets both Toxic and leech seed, both get their damage increased.
If the Pokémon gets unstatused from Toxic but regains a damage dealing residual (brn, psn, leech seed, tox), the counter won't be reset until switch out.
2015-01-08 11:59:03 +01:00
Juanma Serrano
2e53e4681c Gen 1: Make sure Toxic -> Psn on switch in deals damage 2015-01-08 11:05:24 +01:00