Guangcong Luo
c043e0b1a8
Trick Room glitch now applies after stat boosts
2012-03-09 13:27:53 -05:00
Guangcong Luo
26978b1f9d
Natural immunities take precedence over artificial immunities
2012-03-06 11:04:48 -05:00
Guangcong Luo
a1a1943201
Don't print debug messages for ModifyPokemon and ModifyStats - these run too often
2012-03-06 09:47:28 -05:00
Guangcong Luo
614023ef32
Cancel U-turn/etc on faint
2012-02-29 21:53:22 -05:00
Guangcong Luo
5e620eaeb6
Implement Mummy
2012-02-27 00:28:29 -05:00
Guangcong Luo
88fe0a4b62
Implement Unaware
2012-02-27 00:28:12 -05:00
Guangcong Luo
63d3cb1916
Implement Liquid Ooze
2012-02-25 21:07:25 -05:00
Guangcong Luo
28c1de4ac2
Fix Mean Look
2012-02-24 02:13:58 -05:00
Guangcong Luo
80eaa9b517
Add .ban() to users
...
- extends original ban functionality: also instantly bans other users with same IP
2012-02-15 17:03:29 -05:00
Guangcong Luo
719525b8b9
Don't undo a decision if it's not your turn
2012-02-14 23:15:15 -05:00
Guangcong Luo
9aab68cc50
Correctly fix Struggle recoil
2012-02-14 22:31:43 -05:00
Guangcong Luo
515f0ae8ff
Fix a crash in the new debug messages
2012-02-14 22:28:16 -05:00
Guangcong Luo
d7108e4c6b
Some more debug messages in simulator.js
2012-02-13 23:45:27 -05:00
Guangcong Luo
3c868ea949
Fix Doom Desire and Future Sight to work after the user has fainted
2012-02-13 20:14:51 -05:00
Guangcong Luo
e32bc56a72
Make Struggle recoil always take effect
...
(instead of being blocked by Magic Guard et al.)
2012-02-12 15:27:51 -05:00
Guangcong Luo
b82e02a288
Forfeit feature! Closing a room now confirms an immediate forfeit, instead of forcing the other player to wait 60 seconds for a timeout.
2012-02-12 06:44:51 -05:00
Guangcong Luo
4526a45c6f
Make Ingrain and Suction Cups prevent drag-out
2012-02-11 18:37:34 -05:00
Guangcong Luo
cd4c7f211f
Some changes for custom avatar support
2012-02-09 00:49:09 -05:00
Guangcong Luo
8206555032
Don't log events in the console
...
(should alleviate most of the console spam)
2012-02-08 17:53:59 -05:00
Guangcong Luo
a42f25c016
Add support for four new move flags:
...
- ignoreAccuracy, ignoreEvasion, ignoreOffensive, ignoreDefensive
These abstract out crit functionality, and also allow support for things like Sacred Sword
2012-02-05 05:48:00 -05:00
Guangcong Luo
b58c0ea3de
Support single-gender and genderless pokemon properly! Finally!
2012-02-05 03:08:43 -05:00
Guangcong Luo
c29516f833
Fix Red Card + U-turn bug
2012-02-02 16:03:32 -05:00
Guangcong Luo
ea750a1f77
Implement Spite
2012-02-02 00:15:47 -05:00
Guangcong Luo
8e88b268b7
Fix a crash on deallocation: Don't try to deallocate things that don't exist
2012-01-30 00:30:43 -05:00
Guangcong Luo
899cac42e0
Make rooms time out and deallocate after being empty for an hour
...
Should theoretically greatly increase the amount of time before PS runs out of memory
2012-01-27 19:19:33 -05:00
Guangcong Luo
6a4a0cf88a
Don't allow Multitype or Illusion to be copied, ever.
2012-01-25 20:58:43 -05:00
Guangcong Luo
b339c7453f
Make sure PP can't go negative.
2012-01-21 17:36:17 -05:00
Guangcong Luo
279bc76db1
Improve PS's implementation of priority
...
Priority and SubPriority are implemented properly - SubPriority is lower priority than Speed. Also introduces Order and SubOrder, which are shorthand notation for negative priority, generally useful for situations in which you want to order events from lowest to highest.
2012-01-11 13:08:10 -05:00
Guangcong Luo
cabd69eab7
Refactor: rename getRelevantStatuses() to getRelevantEffects
...
"Status" used to be the old word for "effect".
2012-01-10 14:05:06 -05:00
Guangcong Luo
2c087334ff
Make Battle.singleEvent support shorthand notation.
...
Allows `onImmunity: false` instead of `onImmunity: function() { return false; }`
2012-01-10 14:00:22 -05:00
Bill Meltsner
a479cf87ea
That's the last time I assume I know what "this" will refer to in JavaScript.
2012-01-07 15:55:42 -06:00
Bill Meltsner
27effef5c3
Accept array arguments to hasType.
...
hasType will return true if the Pokémon has at least one of the types in the array.
2012-01-04 18:06:50 -06:00
Bill Meltsner
1056df57a7
Check if hasType is being called with an undefined argument.
...
Previously, it would return true if the Pokémon only had one type.
2012-01-04 04:07:51 -06:00
Guangcong Luo
49b484e8a4
Ensure that moves always do at least 1 damage when they should
2012-01-02 20:13:29 -05:00
Guangcong Luo
4ce2d95037
Everything I did before moving to Git
2011-12-22 23:53:05 -05:00