Cody Thompson
5edd404cff
Fixed bug in damage calculation
...
- Bug removed randomness from damage dealt
2012-05-09 13:41:41 -04:00
Guangcong Luo
10df844fd8
New Baton Pass implementation:
...
- now works properly when called by Copycat, Metronome, etc
2012-05-07 22:35:29 -04:00
Guangcong Luo
c751e3f843
Show the correct Hidden Power type when Transforming.
2012-05-05 03:42:49 -04:00
TheImmortal
bfab555b9f
Undo lastItem fix
2012-04-26 01:37:54 +04:00
Bill Meltsner
40d2c22346
Check for immunity when adding new volatiles.
2012-04-25 00:15:02 -04:00
Guangcong Luo
da67b7e32a
Add a Battle.tie() function
...
- does exactly what you think
2012-04-19 12:13:21 -04:00
TheImmortal
f1b7ed74f5
lastItem Fix
2012-04-18 23:41:40 +04:00
小太
e7f5c157ab
Merge remote-tracking branch 'upstream/master' into fixes3
...
Conflicts:
abilities.js
simulator.js
2012-04-17 15:23:17 +10:00
Guangcong Luo
6cefa1955a
Fix the battle freeze bug once and for all
...
curCallback should no longer ever be empty before the end of a battle
2012-04-17 01:17:11 -04:00
小太
f03d2f516f
Proper four spaces -> single tab
2012-04-16 14:22:08 +10:00
小太
33162d2501
Revert "Four spaces -> Single tab"
...
This reverts commit 8f8d387f56 .
2012-04-16 14:09:07 +10:00
小太
aee9a0b41a
Remove a bit of whitespace from the previous commit
2012-04-16 13:39:54 +10:00
小太
f9a9d5543b
Fix a few bad replaces
2012-04-16 13:37:47 +10:00
小太
8f8d387f56
Four spaces -> Single tab
2012-04-16 12:55:40 +10:00
小太
dfca43114d
Move braces to the same line as their control statements
2012-04-16 12:54:03 +10:00
小太
64d876f1ca
Begone, trailing whitespace!
...
Also converted all line endings to UNIX format
2012-04-16 12:03:15 +10:00
Bill Meltsner
5e1620a0f9
Implement Hidden Power properly.
...
When a Pokemon is created (i.e. when a battle begins), its Hidden Power type and base power are calculated from its IVs. The base "Hidden Power" move will use those.
"Hidden Power [Type]", however, still bypasses the system entirely.
2012-04-14 17:37:09 -04:00
Guangcong Luo
3c89873627
Order now works differently: Instead of being a negative priority, it trumps priority, and no order always goes last
2012-04-12 19:57:03 -04:00
Guangcong Luo
e8caf3fac4
Parts of the new Pokecheck damage formula
2012-04-12 00:09:01 -04:00
Bill Meltsner
6b64047fca
Use move IDs for disabledMoves, always. (Fixes Imprison not blocking moves on the turn it's used.)
2012-04-11 21:53:07 -04:00
Guangcong Luo
7df7a70ede
Fix gem messages
2012-04-11 21:04:13 -04:00
Guangcong Luo
3a2b7cfadf
Transmit that a pokemon is fainted
2012-04-11 19:47:28 -04:00
Guangcong Luo
4bcb0af26a
Shiny support
2012-04-10 01:02:45 -04:00
Guangcong Luo
44fe547e10
One of those 'allySide's should still be allySide
2012-04-09 18:48:47 -04:00
Guangcong Luo
1acea3caa5
More renames: allySide -> p1, foeSide -> p2
2012-04-09 18:46:13 -04:00
Guangcong Luo
794fb77b4b
Fix Wish's message, and make sure it's affected by Heal Block
2012-04-09 00:27:46 -04:00
Guangcong Luo
246b060872
Some more crash fixes
2012-04-08 23:51:53 -04:00
Bill Meltsner
dd33014c13
Make sure to use move.id for disabledMoves, not move.move
2012-04-08 22:51:19 -04:00
Bill Meltsner
2acf3de23d
Fix crash in simulator.js
2012-04-08 22:50:59 -04:00
Guangcong Luo
6cbe530b49
Update names for alias names, too
2012-04-08 22:41:31 -04:00
Guangcong Luo
b4eaf0154d
Allow alias names when generating pokemon from sets
2012-04-08 22:38:21 -04:00
Guangcong Luo
b2a18f5ca0
Illusion should still show Zoroark's health, not the copied pokemon's health
2012-04-06 03:08:50 -04:00
Guangcong Luo
71b8afba9b
Fix Leech Seed messages
2012-04-06 01:11:22 -04:00
Guangcong Luo
bd33c6269e
Fix Illusion
2012-04-05 22:42:45 -04:00
Guangcong Luo
746e2110ad
Fix Leech Seed and Pain Split animationis
2012-04-05 22:41:31 -04:00
Guangcong Luo
45b75d729d
Update toId everywhere to the new IDs
2012-04-05 22:00:49 -04:00
Guangcong Luo
acadd007f1
More ally/foe -> p1/p2 changes
2012-04-05 02:02:07 -04:00
Guangcong Luo
d6395b30d1
Fix the drain crash
2012-04-05 02:02:07 -04:00
Guangcong Luo
39a77abd37
More Team Preview fixes
2012-04-05 02:02:07 -04:00
Guangcong Luo
7734f0bead
Implement forme changes correctly
2012-04-04 18:47:05 -04:00
Guangcong Luo
084060bd9a
Fix healing/damage messages (introduces a new directDamage function)
2012-04-04 17:44:41 -04:00
Guangcong Luo
b2af0e4a07
Update the team report to the new setup
2012-03-30 22:11:47 -04:00
Guangcong Luo
4692166690
Illusion support in the engine
2012-03-30 13:49:36 -04:00
Guangcong Luo
f038734416
Fix crash with moveid
2012-03-30 12:38:03 -04:00
Guangcong Luo
cc8f32b4cb
moveset[].move is now a name, not an ID
2012-03-30 11:09:26 -04:00
Guangcong Luo
468c457177
Rely on toString more, for nicer add() calls
2012-03-30 11:03:27 -04:00
Guangcong Luo
e51dade299
really really fix Substitute
2012-03-30 10:15:08 -04:00
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
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