Commit Graph

75 Commits

Author SHA1 Message Date
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
V4Victini
644d9fc720 Partial Trapping moves now deal 1/8 damage
In Gen 5, partial trapping residual damage was 1/16 Max HP and 1/8 with
Binding Band
In Gen 6, it is now 1/8 Max HP and 1/6 with Binding Band
2013-10-21 12:34:04 -04:00
Joimer
cc104912cc Update Sleep Mechanics
In Gen 6, sleep counter is not reset as in Gen 5.
2013-10-16 12:08:51 +02:00
Guangcong Luo
0f0bbea822 No permaweather in gen 6 2013-10-11 15:17:32 -07:00
V4Victini
4e663da55e Use this.chainModify for base power modifiers
This also fixes Technician
2013-10-11 15:09:47 -04:00
V4Victini
fb33b72e87 Use this.chainModify for stat modifiers
Also apply Sandstorm and Hustle boosts directly to the stat.
2013-10-11 14:05:51 -04:00
V4Victini
8628066f0f Chain Burn
...reluctantly
2013-10-06 14:43:29 -04:00
V4Victini
8a119fefeb Chain base power modifiers
onBasePower events now affect the base power modifier as opposed to the
base power directly. Also some moves had their base power changes moved
from basePowerCallback to onBasePower. These moves affect the modifier
and not the base power.

Note: The effects of weather and burn are still incorrectly applied as
base power modifiers
2013-10-05 18:56:32 -04:00
V4Victini
bed7316a14 Chain stat modifiers in the proper order
10: Figure out a way to apply these directly to the stat later
...
6: Target Ability
5: User Ability
4: Target's Ally Abilities
3: User's Ally Abilities
2: Target's Item
1: User's Item

To be honest it's mostly for posterity's sake as well as to match the
soon-to-be-corrected base power modifiers. At the moment all stat
modifiers are either *1.5 or *2 which have the same result no matter
which order you chain them in. However a mod or ability/item in the
future could add a value that isn't as clean.
2013-10-05 01:14:11 -04:00
V4Victini
c50d30f11f Overhaul the stat system and implement chaining
onModifyStat events now alter the returning modifier instead of
affecting the stat directly
2013-09-11 03:17:13 -04:00
Guangcong Luo
dd63b1b6dd Fix Arceus/Transform interaction 2013-05-20 14:24:33 -07:00
Guangcong Luo
de7277c768 New research suggests all formes are possible in Hackmons
Specifically, formes that normally require a specific condition,
such as Darmanitan-Z and Arceus-Fire, are now available in Hackmons.

The previous confusion stemmed from that Arceus-Fire is actually
Normal-type, and the Arceus forme is handled separately from
Multitype and plates, which is what actually gives it the Fire
typing.
2013-05-16 21:22:52 -07:00
Guangcong Luo
782b497d3c Fix Encore + Mental Herb interaction
This fix involves overhauling how changeDecision works, which also
fixes priority order (and speed ties) getting rerolled when Encore
hits.
2013-04-23 17:21:58 -07:00
Guangcong Luo
0ef3daa0f1 Fix the rest of the Air Lock interaction bugs
Specifically, Sandstorm's SpD boost and Weather Ball's power/type.
2013-04-22 01:28:27 -07:00
Guangcong Luo
1bc5f3749e Don't deal residual weather damage in Air Lock/Cloud Nine 2013-04-22 01:24:11 -07:00
Marty-D
24994745cc Fix Grip Claw. 2013-03-12 18:01:49 -04:00
Guangcong Luo
ce0ffe654e movedThisTurn overhaul:
- now named 'moveThisTurn' and contains the moveid
- this fixes the Outrage issue
2013-03-05 11:27:49 -08:00
Marty-D
eced3a09fb Revert Outrage fix for now. 2013-03-03 10:19:29 -05:00
Marty-D
6ba79b0d27 Make sure Outrage-type moves end correctly.
- Flinching, being fully paralyzed, or otherwise being unable to use the
locked move ends the effect.
2013-03-02 13:26:30 -05:00
Marty-D
f86b52689a Fix Choice locking and Magic Room.
- Choice items now lock into a new move properly after losing the
original locked move (due to Mimic/Sketch/Transform)
- Choice items now continue locking into the original locked move (if
there was one) after Embargo, Klutz, or Magic Room's effects end
- General fixes to the priority of ignoring items
- Magic Room is now usable again
2013-02-22 19:12:29 -05:00
Cathy J. Fitzpatrick
bd681a1193 Fix interaction between Safeguard and Confusion
Safeguard was failing to block Confusion because the Confusion
`onStart` function did not pass a `target` and `source` to `runEvent`
when invoking the `TryConfusion` event, and Safeguard's
`onTryConfusion` function requires that a `target` and `source` be
specified.
2013-02-04 17:25:05 -07:00
Marty-D
36dae6f2c2 Add messages for partial-trapping moves. 2013-01-27 20:19:56 -05:00