Commit Graph

16 Commits

Author SHA1 Message Date
小太
f2f973fe29 Obliterate trailing whitespace 2013-08-18 21:33:15 +10:00
Joimer
b9421651eb Gen 1: Implement partial trapping 0 pp bug
When a partial trapping move is executing its 0 pp sequence, if
the opponent switches the pps get rolled back to max.
2013-08-08 21:30:42 +02:00
Guangcong Luo
4c60f96269 Fix crash when partialtrapping a Substitute 2013-06-16 21:48:57 -07:00
Marty-D
794fc16a20 Gen I: Correct secondary effect chances.
- 10% is actually ~9.8%, etc.
2013-06-11 12:18:04 -04:00
Joim
1555d879fb Gen 1: Limit learnsets to not to use tradebacks
Gen 1 learnsets now include all Gen 1 and Gen 2 moves. Limit the moves since pure RBY format does not allow tradeback Pokémon.
2013-05-25 11:36:29 +03:00
Guangcong Luo
df8c66d937 Optimize banning things from newer gens 2013-04-27 11:21:25 -07:00
Guangcong Luo
68fd57131c Memory optimisation in Tools data
During initialisation of Tools, each new mod no longer makes a copy
of every data object from the parent mod. Instead, a new object is
created when and only when the mod actually makes changes to a
particular object. In other words, this is a "copy-on-write" system.
2013-04-27 04:50:37 -07:00
Cathy J. Fitzpatrick
cbfc3e5e16 Working implementation of sending exact damage for own pokemon
This isn't as elegant as I might like, but it does appear to work.
2013-04-09 03:46:45 -06:00
Cathy J. Fitzpatrick
e45652180b Remove use of some obsolete functions 2013-03-29 01:27:49 -06:00
Joim
600f98f9b7 Gen 1: Add speed and attack drop cancel to Boost
The speed and attack drops from paralysis and burn should be dealt 
with entirely in the boost function.
2013-03-17 20:15:43 +01:00
Marty-D
674e3174ab Gen I: Less confusing accuracy checking.
- Also, removal of many useless sections in moves.
2013-03-09 22:25:48 -05:00
Marty-D
4e99705b89 Gen I: More correct accuracy checking.
- Also several other move changes to prepare for additional fixes.
2013-03-09 15:53:45 -05:00
Joim
9ffddb07d4 Fix explosion, tidy up scripts.js
Explosion should only not faint the user in case a Substitue 
fainted. If there's a Substitute but the target is Ghost-
type, the user will faint.
Attack category is dealt with in moves.js, no need to hardcode 
it in the getDamage function.
2013-03-09 10:01:47 +01:00
Guangcong Luo
9bea44a939 Fix crash in gen 1
(It wasn't updated for the stats refactor.)
2013-03-08 09:01:16 -08:00
Joimer
e700169f06 Substitute breaking stops multihit moves. 2013-03-06 21:51:30 +01:00
Joimer
2548bef89d Add all gen 1 files 2013-03-06 12:53:53 +01:00