Commit Graph

156 Commits

Author SHA1 Message Date
The Immortal
3efeae3a92 Add new ability Grass Pelt 2013-10-18 17:14:12 +04:00
Joimer
ba1bfdedb5 Implement Flower Veil 2013-10-18 10:19:57 +02:00
The Immortal
e3017dbe17 Implement Competitive 2013-10-18 00:17:14 +04:00
The Immortal
c1a3f9a614 Correct name is Pixilate 2013-10-18 00:09:41 +04:00
Guangcong Luo
b2826cab56 Revert Intimidate change, it was wrong 2013-10-17 12:52:15 -07:00
Guangcong Luo
0c9ce5055d Implement gen 6 Keen Eye 2013-10-17 12:44:19 -07:00
Guangcong Luo
f6e330791e Implement gen 6 Intimidate 2013-10-17 12:44:04 -07:00
The Immortal
4064776c7f Fix mistakes 2013-10-17 20:10:39 +04:00
Joimer
e67383064b Implement Gooey 2013-10-17 15:45:41 +02:00
Guangcong Luo
0c2bc56618 Fix Stance Change
Stance Change only changes to Shield Forme for King's Shield
2013-10-16 13:15:31 -07:00
Guangcong Luo
4235ecfb17 Fix ES4-compatibility 2013-10-16 15:04:42 -05:00
Joimer
4a5846efc9 Implement Sweet Veil 2013-10-16 18:29:49 +02:00
Joimer
29b7709506 Implement Aura Break 2013-10-16 17:28:11 +02:00
Joimer
225aefd0d1 Gen 6: Overcoat now protects from powder moves 2013-10-16 10:42:59 +02:00
Joimer
be36ed748c Gen 6: Oblivious now makes Pokémon immune to Taunt 2013-10-16 10:38:46 +02:00
Joimer
8a13baec34 Update Gale Wings short desc.
Updated the short description so it fits with latest Smogon research.
2013-10-16 10:36:12 +02:00
Juanma Serrano
ca55cc1515 Add comma to previous commit
Pressed backspace and enter at the same time.
2013-10-16 10:21:51 +02:00
Juanma Serrano
2105f29b3e Gen 6: Implement Gale Wings 2013-10-16 10:21:09 +02:00
The Immortal
3b3f317832 Protean changes type before the move is used 2013-10-14 23:06:03 +04:00
The Immortal
0ea428201f Implement Protean 2013-10-12 11:33:23 +04:00
Guangcong Luo
e81071d213 Fix crash due to typo in Pixelite 2013-10-11 20:07:37 -07:00
Guangcong Luo
7d4ec59950 Properly remove perm-weather from gen 6 2013-10-11 18:47:49 -07:00
Guangcong Luo
cf259c776a Implement Stance Change 2013-10-11 14:18:08 -07:00
V4Victini
4e663da55e Use this.chainModify for base power modifiers
This also fixes Technician
2013-10-11 15:09:47 -04:00
V4Victini
224a0f10e2 Merge remote-tracking branch 'upstream/master' into modifiers 2013-10-11 14:17:25 -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
Guangcong Luo
c33abee343 Fix Fairy Aura description 2013-10-11 10:43:42 -07:00
V4Victini
d5c84dc134 Use this.chainModify for final modifiers 2013-10-11 13:25:14 -04:00
The Immortal
d23bb245ac Add new Gen 6 Abilities 2013-10-11 20:07:33 +04:00
V4Victini
5aa2458847 Fix Technician 2013-10-06 16:08:23 -04:00
V4Victini
7f880e1170 Chain Heatproof 2013-10-06 14:42:08 -04:00
V4Victini
5353430e43 Chain Analytic and Sand Force 2013-10-06 14:38:50 -04:00
V4Victini
01201d9a70 Fix typo in Sheer Force 2013-10-06 14:15:03 -04:00
V4Victini
9635ea7d56 Chain base power modifiers in proper order
8: User Ability
7: Target Ability
6:  User Item
5: Target Item
4: Move Modifers
3: Other User Modifiers (Helping Hand, Charge)
2: Other Target Modifiers
1: Field Modifiers (Water Sport, Mud Sport)
2013-10-05 19:12:10 -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
fb4dd5e385 Merge remote-tracking branch 'upstream/master' into damage 2013-10-05 15:55:26 -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
c89670e9e6 Fix Trace Message
Say that Trace has copied the ability before having the copied ability
take effect
2013-10-04 18:45:37 -04:00
V4Victini
1c2a9a76c0 Chain Final Modifiers 2013-09-27 23:30:55 -04:00
Guangcong Luo
0dba0d50cb Workaround fix for Mold Breaker Unaware 2013-09-14 16:50:42 -07:00
V4Victini
d64d7bfdb7 Fix Thick Fat 2013-09-12 23:01:46 -04:00
V4Victini
78edf360f2 Re-add getStat function 2013-09-11 19:50:00 -04:00
V4Victini
0ef4a02b0c Run ModifyDef/SpD events properly
and remove Chlorophyll's debug message
2013-09-11 04:10:14 -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
V4Victini
5751090870 Use proper modifiers for Sheer Force, Sand Force, and Analytic
0x14CD instead of 0x14CC (1.3)
2013-09-08 15:18:14 -04:00
Joimer
be2d3686f7 Fix Storm Drain accuracy check for Water-type moves
Water-type moves should not fail against Storm Draim Pokémon.

Test, Gastrodon + Qwilfish, turn 2 switching the first to Escavalier:
Storm drain is making Hydro Pump accuracy true
Storm drain is making Hydro Pump accuracy true
Storm drain is making Hydro Pump accuracy true
Storm drain is making Hydro Pump accuracy true
Accuracy for Recover: true
Accuracy for Recover: true
Accuracy for Hydro Pump: 80
Accuracy for Hydro Pump: 80
2013-08-09 11:07:12 +02:00
Joimer
fe0e94fd87 Fix Flash Fire accuracy check with Fire-type moves
No Fire-type move should fail against Flash Fire Pokémon.

Test on two turns:
Flash fire is making Will-O-Wisp accuracy to true.
Flash fire is making Will-O-Wisp accuracy to true.
Accuracy for Earth Power: 100
Accuracy for Earth Power: 100
Accuracy for Will-O-Wisp: 75
Accuracy for Will-O-Wisp: 75
Accuracy for Substitute: true
Accuracy for Substitute: true
2013-08-09 11:00:55 +02:00
V4Victini
90694f4e8b Use proper event for several effects
These effects should take place last in damage calculation during the
ModifyDamage event.
2013-07-09 22:51:15 -04:00
Marty-D
5e0acfb56b Correct previous commit. 2013-06-19 21:28:50 -04:00
Marty-D
78b4cffc02 Make sure Shed Skin doesn't try curing 'fnt'. 2013-06-17 14:49:43 -04:00