Commit Graph

96 Commits

Author SHA1 Message Date
Marty-D
3533a15976 Make sure some Abilities are properly suppressed 2015-03-19 13:43:41 -04:00
Juanma Serrano
e41db19062 Gen 3: Implement properly future-hit moves
This fixes the problem of future moves getting STAB and effectiveness.
Relevant commits: fb6a75e3a3 and a057a77970
2015-03-16 13:56:58 +01:00
Kevin Lau
a3909337fd Fix Auras
They now use the accurate hex values. The old values were slightly off.
2015-02-18 21:14:42 -08:00
Kevin Lau
4884ec66ba Weather Refactor: Regular weathers don't activate w/ Primal Weather set
Moved all checks for primal weather into setWeather() instead of
hard-coding the check into every effect attempting to change the weather.

Also to prevent hardcoding, the check now runs on the event system, and
the primal weathers themselves deny regular weathers from being set.
2015-02-12 14:39:50 -08:00
The Immortal
ab1e90e478 Update BeforeMove priorities 2015-01-14 03:33:00 +04:00
Guangcong Luo
80704c272d Merge pull request #1298 from Slayer95/disabled-maybe
Hide moves disabled by Imprison or NEXT's Telepathy
2014-12-10 03:57:30 -06:00
Ivo Julca
1d95bfbda5 Fix remaining instances of Klutz being ineffective 2014-12-04 23:19:58 -05: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
Marty-D
db4d16fbd2 Prevent Delta Stream from affecting Stealth Rock. 2014-12-01 22:19:10 -05:00
Marty-D
73ea9f4ea9 Primal weather does not prevent Status moves. 2014-11-26 21:09:00 -05:00
ascriptmaster
54fd6f41d3 Updated most moves, items and abilities to not use -message tags
Some gen 1 moves like Dig/Fly, gen 4's Custap Berry, and everything in
NEXT is untouched for now.
2014-11-17 11:25:56 -08:00
Ivo Julca
d928b64221 Implement BattlePokemon#disableMove to support hiding information
- Changed data to use it anywhere moves get disabled.
2014-11-13 14:45:49 -05:00
Ivo Julca
ac671bcc99 Fix Stealth Rock in Inverse 2014-11-10 19:33:30 -05:00
ascriptmaster
213d9ef47f Fix Primordial Sea glitch 2014-10-30 15:12:35 -07:00
ascriptmaster
859cebf490 Implement Harsh Sun, Heavy Rain, Strong Winds
Abilities might not be 100% accurate to the gameplay yet.
2014-10-27 16:10:26 -07:00
Ivo Julca
727579ff89 Revamp effectiveness calculation
- Implement BattlePokemon#runEffectiveness, accounting for battle events.
- Refactor Tools#getEffectiveness accordingly.
- Remove Inverse mod. It's now implemented using the global event 'Effectiveness', and with a few changes in the base data for hazards and Arena Trap.
- NEXT: Fix Filter and Solid Rock not accounting for the special effects of Freeze Dry and Flying Press.
2014-10-27 03:46:32 -05:00
Guangcong Luo
dde363ca28 Fix style errors in recent pull requests 2014-09-30 17:00:43 -04:00
Guangcong Luo
2f93240bfb Merge pull request #1231 from Pikachuun/master
Future Moves Bug Fix (Issue 567)
2014-09-30 13:37:52 -07:00
Pikachuun
a7e9079726 Future moves bug fix
Future moves fail to activate if the opponent has Wonder Guard, and
deals damage if it activated beforehand to a Wonder Guard Pokemon that
is not weak to them. This commit fixes both of those issues. However,
future moves still hit through wonder guard in generation 5, so that
is untouched.
2014-09-30 08:32:32 -04:00
小太
fe37f3b6a7 Apply jscs to the data files as well 2014-09-30 18:34:16 +10:00
Guangcong Luo
2c39a828a4 Merge pull request #1083 from Slayer95/trap-passing
Trap passing
2014-07-17 02:08:57 -05:00
Slayer95
0221b6521e Fix Pursuit sometimes being not choice-locked into 2014-07-17 01:05:37 -05:00
Slayer95
08792b1661 Fix choice-locking Magic Bounce 2014-07-16 02:32:32 -05:00
Slayer95
cc0c856231 Gen 2-4: Users of Mean Look, etc. can Baton Pass the effect 2014-07-15 02:52:37 -05:00
Slayer95
c8c685367a Scald thaws frozen targets in Gen 6 2014-07-12 01:33:40 -05:00
Slayer95
79b37b5603 Fix aurae of the same type stacking together
Dark Aura, Fairy Aura
2014-07-10 22:24:42 -05:00
Guangcong Luo
9fa425bff1 Refactor selfdestruct faint order fix 2014-06-09 04:14:54 -04:00
Slayer95
ae414deed0 Revert Skymin to Land Forme when frozen 2014-05-11 06:23:54 -05:00
小太
5c8fc7b982 Space after function for anonymous functions 2014-04-22 01:58:16 +10:00
小太
6fb3bc332a Spaces around operators and === instead of == 2014-04-22 01:56:11 +10:00
Slayer95
2efe53ab05 Add missing semicolons and remove whitespace 2014-04-19 00:05:31 -05:00
Guangcong Luo
9f87e79e51 Merge pull request #836 from Slayer95/master
Remove some globals
2014-04-18 19:15:55 -05:00
Slayer95
3fc36ef80f 'clampIntRange is now a method of 'Tools' and no longer global 2014-04-18 15:14:54 -05:00
Guangcong Luo
258700f619 Fix crash in new two-turn move code 2014-04-18 01:32:11 -04:00
Guangcong Luo
64f6cc98a2 Refactor two-turn moves
They can no longer be redirected
2014-04-17 18:00:51 -04:00
Ivo Julca
cf0c927a36 Fix Infiltrator being unaffected by Gastro Acid
Also add some debug data for Gastro Acid
2014-02-28 19:45:33 -05:00
Slayer95
9387a163f1 Fix previous commit 2014-02-28 00:02:06 -05:00
Ivo Julca
e768fc501e Relocate custom messages to statuses.js 2014-02-27 22:35:57 -05:00
Ivo Julca
70114c8c4c Fix messages for activation of Toxic/Flame Orb 2014-02-27 21:39:46 -05:00
Tyler Stark
afb3dc0c09 First pass at code quality: adding semicolons. 2014-02-09 20:35:42 -06:00
Ivo Julca
85c07aac83 Fixes for Arceus typing
Fix Arceus overriding Trick-or-Treat and Forest´s Curse.
Implement Arceus typing more reliably by setting it when it switches into the field.
Display fail messages when trying to modify Arceus´ first type by any means.
Also fix mons keeping their typing when changing to another forme.
2014-02-07 19:39:18 -05:00
Ivo Julca
79593705aa Fix Arceus typing
Also use ´setType´ in Gen5´s Camouflage
2014-02-06 22:46:04 -05:00
V4Victini
efb9b5da0d Gen 6 Successive Protect Chances 2014-01-13 12:37:38 -05:00
Guangcong Luo
4fda7e5221 Fix 3-turn Outrage not locking 2013-12-12 03:31:04 -06:00
The Immortal
681aaadd54 Facade ignores burn Attack drop in Gen 6 2013-12-11 17:21:41 +04:00
Guangcong Luo
e226249395 Fix rampage moves not ending on immunity 2013-12-10 12:22:58 -08:00
V4Victini
03a96f41ae Fix Trapping Implementation
Until the next overhaul
2013-11-15 02:11:07 -05:00
V4Victini
f1a2dc9f82 Gems are 0x14CD 2013-11-07 17:31:11 -05:00
V4Victini
51bbd2fd6a Gems are now 30% in Gen 6 2013-11-07 04:32:13 -05:00