Commit Graph

23714 Commits

Author SHA1 Message Date
Guangcong Luo
77fc159b03 Fix an earlier change that accidentally nullified all status moves 2012-03-24 21:26:33 -04:00
Guangcong Luo
66c50f7f73 Some more fixes to make sure Substitute behaves properly 2012-03-24 21:14:31 -04:00
Bill Meltsner
e7345643b9 Correctly detect damaging moves in Color Change 2012-03-24 20:03:19 -05:00
Bill Meltsner
56bf92a055 Correctly detect damaging moves in Red Card 2012-03-24 19:44:00 -05: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
Guangcong Luo
4a6c726c48 Two more move event changes:
- Immunity checking happens after TryHit events now
- Only moves that target all adjacents will selfdestruct on failure
2012-03-24 19:51:14 -04:00
Guangcong Luo
3dad213e95 Don't run TryHit if the move fails. 2012-03-24 19:45:23 -04:00
Guangcong Luo
418a88e1eb Correctly detect damaging moves in Eject Button 2012-03-24 17:33:55 -04:00
Guangcong Luo
6b5c50eade Revert bmelts' fixes to Rapid Spin, Magikarp's Revenge, and Struggle recoil
These were workarounds for an engine bug, which has since been fixed.
2012-03-24 17:32:00 -04:00
Guangcong Luo
3bc7effb61 Revert bmelts' Copycat fix.
I don't know exactly what it was supposed to do, but as far as I can tell it's an event bug that should be fixed in the engine, not here.
2012-03-24 17:30:41 -04:00
Guangcong Luo
7a5e1f589a Make Brick Break remove screens before it hits 2012-03-24 17:18:34 -04:00
Guangcong Luo
46642c9b86 Fix Doom Desire and Future Sight 2012-03-24 17:16:19 -04:00
Guangcong Luo
2ef6be25dc Update movedex.js for the HitField/HitSide events 2012-03-24 17:14:50 -04:00
Guangcong Luo
0be246f39f Revise TryHitField/HitField and update comments accordingly 2012-03-24 17:14:16 -04:00
Guangcong Luo
42a66e3bd1 Redo the hit events entirely
(also add a ton of documentation so bmelts doesn't get them wrong again. :P )
2012-03-24 16:58:56 -04:00
Bill Meltsner
afd9253017 Fix Magic Bounce and Magic Coat (and Rebound). 2012-03-24 12:17:57 -04:00
Bill Meltsner
f392351848 Snore should only be usable when asleep. 2012-03-24 12:02:53 -04:00
Bill Meltsner
0b3e9f2f01 Improve Sleep Talk.
Its description was wrong for Gen 5, there were some unchooseable moves that weren't flagged as such, and it now rejects moves with charge-up turns automatically instead of needing to specify each one manually.
2012-03-24 12:02:20 -04:00
Bill Meltsner
0520cf4bef Implement Mud Sport and Water Sport. 2012-03-24 12:00:02 -04:00
Bill Meltsner
9608c2e34d Fix Haze, Magic Room, Perish Song, Teeter Dance, Trick Room, and Wonder Room. 2012-03-24 11:29:20 -04:00
Bill Meltsner
11fb841ae8 Call FieldHit on moves which target all. 2012-03-24 11:28:32 -04:00
Bill Meltsner
78e8fcfe40 Fix Magikarp's Revenge. 2012-03-24 11:27:03 -04:00
Bill Meltsner
086199fcdf Fix Struggle recoil. 2012-03-24 11:26:41 -04:00
Bill Meltsner
38866bda26 Fix Rapid Spin. 2012-03-24 11:26:11 -04:00
Bill Meltsner
afb0a5bae3 Fix Future Sight and Doom Desire. 2012-03-24 11:25:41 -04:00
Bill Meltsner
429d2f5937 Fix Copycat. 2012-03-24 11:24:44 -04:00
Bill Meltsner
65dbfa1b2c Fix Brick Break. 2012-03-24 11:24:23 -04:00
Bill Meltsner
ada417fa57 Red Card does activate on non-contact moves, but only when damage is dealt. 2012-03-24 03:09:32 -04:00
Bill Meltsner
0ac1ebed7b Only trigger Eject Button on damaging moves. 2012-03-24 03:08:27 -04:00
Bill Meltsner
99564cf756 Re-implement Present with the new ModifyMove handler. 2012-03-24 02:59:21 -04:00
Bill Meltsner
f88b8571dc Some minor move cleanup. 2012-03-24 02:58:45 -04:00
Bill Meltsner
1f9d82d194 Better separation of onTryHit and onHit events.
onTryHit should be reserved for "is this move going to hit?", whereas actions should only be taken in onHit.
2012-03-24 02:57:57 -04:00
Bill Meltsner
6e1bb9e1db Change over lots of onHits to onTryHits, and restructure those events slightly for the new system.
This should all work. I think.
2012-03-24 02:25:09 -04:00
Bill Meltsner
d8be5e3ca1 Implement Growth more intelligently. 2012-03-24 02:17:44 -04:00
Bill Meltsner
5c64c82a55 Fix Chatter to work with the new events. 2012-03-24 02:15:32 -04:00
Bill Meltsner
e192e6eb28 Properly fix singleEvent('ModifyMove'). 2012-03-24 01:44:28 -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
5eeb6341f0 Lots of event changes:
- Remove the SecondaryHit, SecondarySelfHit, and SelfHit events: these were most
ly useless
- ModifyMove is now also a move event: it replaces the aforementioned events
- Rename Hit and FieldHit to TryHit and TryFieldHit
- Introduce a new Hit event that occurs after everything else
2012-03-23 23:53:56 -04:00
Bill Meltsner
1ffdabcce3 A first attempt at an implementation of Fling.
Kind of hacked together - definite room for improvement. But it (mostly) works as it's supposed to, at least.
2012-03-22 01:00:42 -04:00
Guangcong Luo
e213993439 Merge pull request #9 from RisingDusk/master
Did some necessary legwork on chat commands
2012-03-21 17:32:33 -07:00
Bill Meltsner
3a34032925 Implement Recycle.
Also, fix a few incorrect descriptions (Bug Bite and Pluck prevent a Berry from being Recycled) and some minor cleanup.
2012-03-21 20:14:25 -04:00
Bill Meltsner
81c8957b05 Update the noCopycat list with information from UPC. 2012-03-21 19:32:55 -04:00
Cody Thompson
c31e50a9b3 Updated /help, muted users only able to PM &,%,@ 2012-03-21 18:31:13 -04:00
Cody Thompson
01ecf8efa4 Added reason arguments to commands
/mute, /m
/ban, /b
/forcerename, /fr
Split /fr into /fr and /frt for different arguments
2012-03-21 18:24:17 -04:00
Guangcong Luo
95fa44c183 Make Copycat fail when copying Mirror Move, Dragon Tail, or Circle Throw 2012-03-21 16:23:22 -04:00
Guangcong Luo
df4ef62c5c Implement Zoom Lens 2012-03-21 16:22:58 -04:00
Guangcong Luo
e3a974b163 Mods can only see IPs of users they outrank 2012-03-21 16:22:45 -04:00
Guangcong Luo
c3bae8b437 Show your rejected message if it was too long in lobby, too 2012-03-21 00:57:45 -04:00