Bill Meltsner
d18a3b03ec
Upgrade item use/eat messages.
2012-03-30 04:00:34 -05:00
Bill Meltsner
d67239d22f
Fix super effective, not very effective, and crit messages.
2012-03-30 02:51:03 -05:00
Bill Meltsner
4272f01b5d
Make damage messages use effect names instead of IDs.
2012-03-30 00:18:50 -05:00
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