Commit Graph

372 Commits

Author SHA1 Message Date
Audiosurfer
38d915c7e3 resist berries only chosen for 4x weak in randdubs
made it so that shuca berry and chople berry will only be selected in randdubs in the case of a 4x weakness as opposed to being potential item picks for 2x or 4x weaknesses
2014-10-07 23:49:05 -05:00
Relados
cee46bb34c Prevent Life Orb with HP reliant attacking moves
Pokemon that have Eruption or Water Spout should not generate with Life Orb in random battles.
2014-10-07 00:24:40 -04:00
Ivo Julca
64f22e4fd4 Fix Mega check in b078d698 2014-10-03 13:36:28 -05:00
Ivo Julca
12bafc7036 Merge pull request #1223 from Audiosurfer/master
Conflicts:
	data/scripts.js
2014-10-03 13:31:34 -05:00
Audiosurfer
b078d698fe changes to random doubles item generation
- added charti & occa for 4x weaknesses
- made yache only for 4x weaknesses
- made it so you cant have fake out & sheer force (9-21-14)
- changed it so shuca berry and chople berry won't be added to
immunities
- unburden mons only have normal gem if they have fake out as opposed to
any normal attacking move
- made life orb more common over expert belt

fixed error in shuca generation

typoed, but fixed it so now it should only give shuca berry to pokemon
without a ground immunity

fixed broken indentation

fixed issues pointed out by slayer95

should have fixed the indentation and edited the  immunity check
2014-10-02 17:27:32 -05:00
The Immortal
c09498b58f Give Belly Drum Pokemon Sitrus Berry in Random Battle 2014-10-03 01:09:18 +04:00
The Immortal
84fedef174 Prevent Fake Out with setup in Random Battle 2014-10-01 20:05:44 +04:00
The Immortal
250c2e6af2 Prevent Spacial Rend with Draco Meteor in Random Battle 2014-10-01 18:54:44 +04:00
Guangcong Luo
80f8ff8dcd Merge pull request #1217 from kotarou3/style
Add some extra style checks to jshint and fix them in the files
2014-09-30 13:29:08 -07:00
The Immortal
72b36653dc Prevent Rest / Sleep Talk with speed boosting moves in Random Battle 2014-09-30 22:20:23 +04:00
小太
fe37f3b6a7 Apply jscs to the data files as well 2014-09-30 18:34:16 +10:00
小太
5027be79fb Add jscs as a style checker, and add some extra jshint options 2014-09-29 18:38:01 +10:00
The Immortal
53c4d953eb Modify Lopunny in Random Battle
Added the possibility of Klutz + Assault Vest + Switcheroo to
perma-taunt an opposing Pokemon.
2014-09-27 01:37:32 +04:00
The Immortal
4ab1090017 Update Random Battle
- Fix #1226
- Remove HP Electric from Empoleon
- Prevent Drain Punch with Superpower
2014-09-26 00:46:51 +04:00
The Immortal
8ca3da8f0a Prevent Flare Blitz with Sacred Fire in Random Battle 2014-09-19 20:25:00 +04:00
Relados
33b15dc383 Prevent Sacred Fire with Will-o-Wisp in randoms
Like Lava Plume, having Will-o-Wisp with Sacred Fire is redundant and the Pokemon would be better off with another move.
2014-09-16 23:12:56 -04:00
The Immortal
67dd902bc5 More Random Battle changes 2014-09-16 02:02:43 +04:00
The Immortal
bbeee481a1 Allow Volt Switch with another Electric move in Random Battle
This should solve the three moves bug on certain Pokemon.
2014-09-16 00:52:43 +04:00
The Immortal
265378088e Update Random Battle set generator
- Fixed repeated cases in moves
- Prevent Thunder Wave with setup
2014-09-15 23:32:19 +04:00
The Immortal
9bf54a127a Change Choice Scarf range in Random Battle 2014-09-15 23:04:41 +04:00
The Immortal
f32d331e8a Prevent Expert Belt with Fake Out / Return in Random Battle 2014-09-12 17:01:17 +04:00
The Immortal
313d144139 Prevent Defog with setup in Random Battle 2014-09-12 16:37:37 +04:00
The Immortal
f9a2407b8b Reject Gluttony in Random Battle
Every Pokemon that has Gluttony has a better alternative
2014-09-12 13:17:43 +04:00
The Immortal
040add20ac Prevent Air Balloon with Solid Rock in Random Battle 2014-09-11 20:34:59 +04:00
The Immortal
7c20a3854d Reduce Expert Belt in Random Battle
In favor of Choice Scarf. Expert Belt is now limited to mixed attackers.
2014-09-11 20:07:55 +04:00
The Immortal
77c889f612 Update Random Battle generator 2014-09-11 19:19:07 +04:00
The Immortal
9e05dbd15e Make sure Bisharp gets Defiant in Random Battle 2014-09-11 00:11:30 +04:00
The Immortal
09fd38776a Update Random Battle generator
Prevent Reversal + Leftovers
2014-09-10 20:32:13 +04:00
Guangcong Luo
8c631590b8 Fix multiple Hidden Powers in random battle 2014-09-06 13:26:53 -04:00
Guangcong Luo
f99b4fe751 Fix randbat set generator being too reject-happy
So yeah, this is a major bug in the randbat set generator, but other
than performance issues and the random 3-move pokemon, it shouldn't
have any other implications.
2014-09-04 16:12:29 -04:00
The Immortal
c4f44ea0dd Update Random Battle
Added PU level
2014-09-02 22:27:33 +04:00
The Immortal
45903b2e90 Lower Xerneas' level in Randoms 2014-09-02 00:38:30 +04:00
Ivo Julca
300302cec3 Give Black Sludge back to Poison-types in randbats
Accidentally removed in f57e771e8
2014-08-29 17:50:20 -05:00
Guangcong Luo
cff9737680 Merge pull request #1167 from Slayer95/ruleset-modding
Properly load banlist tables for modded formats
2014-08-25 11:20:53 -05:00
Ivo Julca
f57e771e8c Refactor randbats set generators a bit
- Move some variable declarations outside of loops.
- Use single-line if statements wherever reasonable.
- Update a check for Hyper Fang to Gen 6.
- Fix Ghost types getting Chople Berries in Random Doubles Battles.
- Fix a typo intended to fix in d24b184b and another one introduced in the same commit.
2014-08-25 01:42:17 -05:00
Ivo Julca
b4ec88610f Properly load banlist tables for modded formats
They are no longer loaded in Tools.getFormat, which could be called from any modded tools and cached the bans.
2014-08-24 22:24:09 -05:00
Ivo Julca
9a1ad50574 Fix Quick Guard failing to protect from moves called by other moves 2014-08-23 20:05:50 -05:00
Ivo Julca
69254f0c25 Fix bug from random battle moves refactor 2014-08-13 19:07:31 -05:00
Guangcong Luo
c286e46177 Remove randomBetaTeam; April Fool's is long over 2014-08-13 17:04:05 -04:00
Guangcong Luo
ac7f1d22b4 viableMoves are now randomBattleMoves
randomBattleMoves is now an array, and has been renamed from
viableMoves since it no longer is used for anything other than
random battles.

This commit also does some cleanup of some code relating to
random battle moves, including fixing gen 1's randomSet function,
which apparently has never worked.
2014-08-13 17:03:21 -04:00
Guangcong Luo
af2026436a More style fixes and Gulpfile updates
JSHint is now a fair bit stricter, and is now correctly checking
files in `mods/`.

The code has been fixed to match the new stricter standards.

JSHint has now caught its second actual bug: Gen 5 Pinap Berry
was Ice instead of Grass.
2014-08-10 20:43:53 -04:00
Guangcong Luo
12b673bb49 Fix style errors; update gulpfile
I used a hack to make the multiple declaration errors go away,
so all that remained in jsHint were actual errors, which I've
now mostly fixed.

All this linting ended up uncovering one actual bug: Uproar's
message not showing. It's a very minor bug in a move no one uses,
so I'm going to fold it into this commit.
2014-08-10 18:06:44 -04:00
V4Victini
3e3505e673 Add fail message for forceSwitch moves.
If the opponent cannot be switched due to having no more available pokemon, the move should fail.
2014-08-07 18:41:26 -04:00
The Immortal
e6ae62f6e4 Fix mega evolution mechanics
In Hackmons, Mega Charizard Y can mega evolve into Mega Charizard X, for example
2014-08-03 23:35:09 +04:00
V4Victini
882dfe7d19 Flame Charge is not a valid STAB 2014-08-01 02:46:47 -04:00
V4Victini
41c46e67d4 Aeroblast is a valid STAB move
The one who committed that probably meant Sky Attack. Like Bounce it is also a 2-turn move. Aeroblast is a 100 BP Special Flying-Type attack. Very STAB-worthy.
2014-07-31 11:56:04 -04:00
Guangcong Luo
378aa9670f Nerf randbats Xernas slightly 2014-07-21 23:38:56 -04:00
Guangcong Luo
6e626048a2 Nerf randbats Sigilyph 2014-07-21 23:29:22 -04:00
Slayer95
802cde5a30 Make sure that sleep stops multihit moves
If a pokémon fell asleep due to Effect Spore while performing a multi-strike move called by Assist or Metronome, the move wouldn't be stopped.
2014-07-16 04:01:24 -05:00
Slayer95
828154a6e6 Move global events ´TryHitField´ and ´TryHitSide´ to ´tryMoveHit´ 2014-07-16 00:26:53 -05:00