Commit Graph

401 Commits

Author SHA1 Message Date
Juanma Serrano
1b75007647 Implement new Seasonal Ladder, Sleigh Showdown 2014-12-10 18:01:39 +01:00
Marty-D
8c2b18c622 Fix forced switch mechanics.
- Red Card and Eject Button do not activate if the holder is being
forced out.
- Circle Throw, Dragon Tail, Roar, and Whirlwind cannot attempt to force
out a Pokemon with no inactive unfainted allies.
2014-12-06 11:53:26 -05:00
The Immortal
b64287b64f Prevent Flare Blitz with Fire Blast in Random Battle 2014-12-06 16:31:15 +04:00
The Immortal
37fd088915 Random Battle updates 2014-12-06 16:25:00 +04:00
Guangcong Luo
151b7ea61a Merge pull request #1334 from ascriptmaster/primal
Ability refactor - Abilities now receive End events properly
2014-12-03 16:43:29 -06:00
ascriptmaster
e79e64e3fc Ability Refactor: Abilities now listen for End events
Added functionality for setAbility to send End events to abilities.

Fixed bug with Mold Breaker negating all Battle#singleEvent ability calls,
even those that don't involve damage calculation.

Fixed Skill Swap to now use End and Start events in the right order:
send the End events, then change the abilities, then send Start events.
If the same ability is swapped, don't send End events (the game simply
re-activates the abilities in question)

Moved SwitchOut/Faint events from weather to ability so the weather
can interact properly with Cloud Nine or Air Lock.

Primal weathers persist if a Pokemon with the relevant ability is
on-field, even if the originator switches out.
2014-12-03 12:22:21 -08:00
Ivo Julca
01de2eadf9 Magician's handler is now purely a global event
Reverts 3b5d455
2014-12-02 20:25:02 -05:00
Joimer
d3b233d8ac Update the Mega Pokemon check
There is no need to store whether the team has a mega anymore.
With the general use of pokemon.canMegaEvo and it being set to false for
the whole team after a mega evolution, it is what we need to check to avoid
more than one mega evolution or banned mega evolutions.
2014-11-29 23:58:27 +01:00
ascriptmaster
b6fcb793dc Mega Evolution now ends primal weathers from base form
Sends an EndAbility event when you mega evolve so the weather can check.
2014-11-26 12:58:56 -08:00
The Immortal
e2af6d65cc Fix Travis CI errors 2014-11-22 19:25:33 +04:00
The Immortal
bcf19608c9 Update Mega Rayquaza
Rayquaza does not have a mega stone; it can mega evolve with the move
Dragon Ascent.
2014-11-21 16:26:56 +04:00
The Immortal
1b302c7117 Random Battle: Prevent Flame Charge with Tailwind 2014-11-15 23:53:08 +04:00
Juanma Serrano
26c03e50f3 Update Seasonal Strikes Back: Add safeguard against hash collision
There's an improbable chance that a nickname gets a hash collision.
In such a case, the player gets five instead of six Pokémon.
This safeguard prevents that improbable event from happening at all.
2014-11-11 18:30:59 +01:00
ascriptmaster
15b04f0a8a Fix every error in the Travis CI Build / npm test 2014-11-10 10:57:38 -08:00
Joimer
2ff379f51e Implement november seasonal, Seasonal Strikes Back
Seasonal format is a random battle format that changes its rules monthly.
It often includes limited Pokmon pools, wacky mechanics you'd never encounter in game, and other fun stuff.
2014-11-10 11:34:12 +01:00
Joimer
6b10f3961d Exclude Magikarp's Revenge from Smeargle's movepool in Challenge Cup 2014-11-10 01:02:30 +01:00
Ivo Julca
d5b7034da1 Remove unnecessary checks for sound immunity
As of ecbc9bfd62, no effect provides an "immunity" to sound.
2014-11-05 21:26:25 -05:00
Audiosurfer
3d66859182 edit to random doubles item generation 2014-10-29 21:06:41 -05:00
The Immortal
e304345fe1 Modify Articuno's Random Battle level 2014-10-23 02:39:14 +04:00
Guangcong Luo
ffcce9d746 Randbats ORAS level-balance update
Groudon-Primal, Kyogre-Primal, and Rayquaza-Mega are now level
70 in randbats
2014-10-21 16:43:11 -04:00
Guangcong Luo
fd23027573 Fix level scaling for unreleased megas
Reverts f4cd04a651
2014-10-21 02:38:30 -04:00
Guangcong Luo
623ff87f74 Merge pull request #1265 from ascriptmaster/skydrop-patch
Sky Drop refactor and bug fixes
2014-10-19 23:23:53 -05:00
ascriptmaster
2ffaf0fc77 Sky Drop refactor and bug fixes
- Changed Sky Drop to use onTryHit on its first hit as well as its second,
  allowing it to check for Protect and Fly naturally.

- Added messages when a Pokemon is freed from Sky Drop.

- Allow Flying-type Pokemon to be hit by Sky Drop if their Ground immunity
  has been removed.

- Added BeforeMovePriority to allow Sky Drop to interact with Stance
  Change properly.

- Prevent a Pokemon trapped by Sky Drop from Mega Evolving.

- Added onRedirectTarget to allow Sky Drop to interact with Ally Switch
  properly.
2014-10-19 20:15:16 -07:00
The Immortal
26e882c976 Set even HP for Belly Drum + Sitrus Berry Pokemon in Random Battle 2014-10-20 01:07:17 +04:00
The Immortal
f4cd04a651 Set unreleased forms to the same level as the regular form in Random Battle 2014-10-19 17:06:16 +04:00
The Immortal
f3acd8bbd4 Fix crash 2014-10-18 19:18:05 +04:00
The Immortal
a72edc4ad1 Implement Primal Reversion 2014-10-18 19:10:17 +04:00
The Immortal
69e9d3d52f Fix Primal formes in Random Battle 2014-10-18 17:33:33 +04:00
The Immortal
db24264fae Change Lightningrod to Lightning Rod
It has been changed in ORAS.
2014-10-16 15:15:15 +04:00
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