Bill Meltsner
16e6907aad
Upgrade boost/unboost messages.
2012-03-30 00:10:23 -05:00
Bill Meltsner
1f085eb0dd
Upgrade move immunity messages.
2012-03-29 23:49:21 -05:00
Bill Meltsner
a8b95ed3cb
Upgrade cureStatus() message.
2012-03-29 23:49:19 -05:00
Bill Meltsner
b7f0f88d9b
Upgrade several more move-related messages
2012-03-29 21:58:17 -05:00
Guangcong Luo
0aa1a2fb98
Implement the faint message
2012-03-29 17:48:12 -04:00
Guangcong Luo
233498a8b2
-heal messages
2012-03-29 17:42:03 -04:00
Guangcong Luo
3f2107a9ae
Simplify the damage message code a bit
2012-03-29 17:38:27 -04:00
Bill Meltsner
c13f1a8fd5
Go back to a switch statement for -damage messages, to keep the client from getting any information it shouldn't have.
2012-03-29 16:11:15 -05:00
Bill Meltsner
a7eaa14f2c
Upgrade -damage messages from non-move sources.
2012-03-29 15:51:42 -05:00
Guangcong Luo
7dc1dff5dc
-damage
2012-03-29 13:18:05 -04:00
Bill Meltsner
391ed6efbd
Modify selfB.add to generate the proper log message format from the passed arguments.
2012-03-29 04:04:48 -05:00
Guangcong Luo
8e54290457
New toId function to match new IDs
2012-03-29 03:07:16 -04:00
Bill Meltsner
db65bd3450
Upgrade debug messages.
2012-03-29 01:43:41 -05:00
Bill Meltsner
83442affed
Upgrade turn message.
2012-03-29 01:40:21 -05:00
Bill Meltsner
a85fb6cfc6
Revert "remove hardcoded side IDs"
...
This reverts commit 15b275659f .
2012-03-29 01:25:05 -05:00
Bill Meltsner
5792406bda
Upgrade tier and rated messages.
2012-03-29 01:22:37 -05:00
Bill Meltsner
15b275659f
remove hardcoded side IDs
2012-03-29 01:22:37 -05:00
Guangcong Luo
f47e07a593
Convert callbacks to the new format
2012-03-29 02:12:25 -04:00
Guangcong Luo
512c6c1814
Side IDs
2012-03-29 02:05:24 -04:00
Guangcong Luo
66ba7c5469
New pokemon description protocol
2012-03-29 02:03:41 -04:00
Bill Meltsner
858c9dae91
Upgrade the start and player messages.
2012-03-29 00:46:00 -05:00
Bill Meltsner
48ef7d44cb
Implement Soundproof.
2012-03-28 16:46:32 -05:00
Bill Meltsner
c564bdd7c6
Properly implement Defiant.
2012-03-28 16:25:18 -05:00
Bill Meltsner
626a975029
Nomenclature change: "ranked" -> "rated"
2012-03-28 03:43:02 -05:00
Bill Meltsner
783f70f83f
OHKO moves gain accuracy when the user's level is higher than the target's.
...
Also, OHKO failure due to the user's level being lower than the target's is now reported to the client.
2012-03-25 15:37:01 -05:00
Bill Meltsner
825af32581
Add a source argument to BattlePokemon.takeItem, representing the Pokemon causing the item to be removed.
...
Also, updated the relevant takeItem() calls to now pass the source.
2012-03-25 13:42:46 -05:00
Bill Meltsner
7daab42b98
Each Pokemon now has a usedItemThisTurn flag, which represents exactly what it sounds like.
...
BattlePokemon.setItem will also set that flag if the Pokemon had an item previously - this handles cases like Fling, where the games mark the item as "consumed" but the item is never technically "used".
2012-03-25 13:31:24 -05:00
Bill Meltsner
9b82cddc05
Add a noPPBoosts flag to moves that should not have their PP maximized.
...
Really only applies to Trump Card, and also Sketch/Struggle so that they don't end up with 1.6 PP.
2012-03-25 11:34:47 -05:00
Guangcong Luo
98684689df
Make sure nothing's immune to ???-type
2012-03-25 01:03:51 -04:00
Guangcong Luo
98f78a025a
Make sure Mold Breaker negates Magic Bounce-like events
2012-03-25 01:02:54 -04:00
Guangcong Luo
0f039ac9e7
Mold Breaker now negates Wonder Guard + Sub
2012-03-24 20:18:50 -04:00
Guangcong Luo
771bbf3c77
Fix a crash from checking immunities during a Substitute
2012-03-24 20:17:30 -04:00
Bill Meltsner
829d4d7af2
Get rid of typeCallback - any type modification should be done in onModifyMove instead.
...
Also, fixed the singleEvent('ModifyMove') call to have the move as its first argument, like its runEvent counterpart.
2012-03-24 01:27:12 -04:00
Guangcong Luo
fe6a4a2722
Add Hit and TryHit to the list of Mold Breaker events
2012-03-24 00:34:34 -04:00
Guangcong Luo
ac06a8e3be
Make it harder for the pokemonLeft counter to get out of sync
2012-03-19 16:10:17 -04:00
Guangcong Luo
0c6e423de9
Fix bmelts' crash ;)
...
- Move .used = true to simulator.js, and check to see if the move exists first
2012-03-18 00:29:33 -04:00
Guangcong Luo
0073b5f4b5
Merge branch 'master' of github.com:Zarel/Pokemon-Showdown
2012-03-16 22:40:52 -04:00
Guangcong Luo
7265e69999
Refactor: lastHitBy is now lastDamagedBy
...
- now tracks total damage of multi-hit moves, not just last hit
- the rename is meant to reflect this
2012-03-16 22:40:37 -04:00
Cody Thompson
cb8f53a827
Magic Room implemented
2012-03-16 15:29:58 -04:00
Cody Thompson
bbed2495a4
Fixed Baton Pass + Pursuit Interaction
...
Pursuit event handler no longer runs against Baton Pass
2012-03-16 01:58:54 -04:00
Bill Meltsner
b97597a8b5
For Last Resort to work, each move in a Pokemon's moveset needs a "used" flag.
2012-03-14 19:46:13 -04:00
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