Commit Graph

23714 Commits

Author SHA1 Message Date
Cathy J. Fitzpatrick
03e8ecc0ed Add missing semi-colon 2013-04-10 17:22:15 -06:00
Cathy J. Fitzpatrick
8f94ad6b2d Correct check for finished battle in /savereplay 2013-04-09 22:39:18 -06:00
Marty-D
0ec35543e6 Spiky-eared Pichu is female. 2013-04-09 23:24:21 -04:00
Cathy J. Fitzpatrick
3ae4193652 Write exact health information to the battle file logs 2013-04-09 21:19:47 -06:00
Marty-D
fd6d21e004 Move Spiky-Eared Pichu out of LC.
- It's not usable outside of HGSS, anyway.
2013-04-09 23:05:18 -04:00
Marty-D
30b850b439 Correct Missingno.'s learnset. 2013-04-09 22:46:56 -04:00
Cathy J. Fitzpatrick
d14a8e5675 Replays saved of finished battles now include exact HP 2013-04-09 16:48:01 -06:00
Marty-D
1a6248f44b Missingno. now ???/Normal.
- The ???-type is functionally identical to Bird-type.
2013-04-09 18:29:46 -04:00
Antar1011
e0bbbf2775 Updated LC UU
FWIW
2013-04-09 18:43:38 -03:00
Cathy J. Fitzpatrick
cbfc3e5e16 Working implementation of sending exact damage for own pokemon
This isn't as elegant as I might like, but it does appear to work.
2013-04-09 03:46:45 -06:00
Cathy J. Fitzpatrick
d297e1a283 Include side data in wait requests
This should fix a number of bugs.
2013-04-08 20:03:51 -06:00
Guangcong Luo
60d69e9d42 Send exact health for own pokemon in battle log 2013-04-08 18:02:49 -07:00
Guangcong Luo
63b2f1d950 Protect gives message when failing on switch 2013-04-08 11:57:51 -07:00
Guangcong Luo
7bf68b9cca Fix crash in battles 2013-04-08 08:28:43 -07:00
Guangcong Luo
1a15b28db4 Smogon Doubles is no longer a debug format 2013-04-07 21:53:33 -07:00
Guangcong Luo
00a449473a Show real HP in debug mode 2013-04-07 21:39:59 -07:00
Guangcong Luo
8bbf7962c0 Taunt is now viable on Froslass 2013-04-07 17:15:23 -07:00
Guangcong Luo
5698204a73 Gems activate for static damage moves 2013-04-07 15:02:53 -07:00
Guangcong Luo
34b2b937c9 Learnset checker support breeding DW with past gens
The learnset checker now allows DW mons to be bred with a mon of the
same species moved from a past generation.

Specifically, this supports DW Sableye with Sucker Punch and Recover
is now supported.
2013-04-07 14:46:19 -07:00
Guangcong Luo
a456898537 Proper gem activation conditions 2013-04-07 14:28:08 -07:00
Guangcong Luo
ee35aeae35 Fix learnset validator for Baton Pass Durant 2013-04-07 13:31:20 -07:00
Guangcong Luo
92d50d32a6 Minor Natural Gift refactor
I'm calling it a refactor because I'm pretty sure it doesn't actually
change anything. But right now gems require a new code guarantee:
basePowerCallback shouldn't return false under normal circumstances.

(Some of them still do return false, but only under error conditions)
2013-04-07 11:47:15 -07:00
Guangcong Luo
374043c1ca Fix Gems with Hidden Power 2013-04-07 11:11:50 -07:00
Guangcong Luo
462a387831 Fix Outrage+Substitute 2013-04-07 10:46:33 -07:00
Guangcong Luo
5039bcea6f Fix Heal Bell 2013-04-07 10:41:52 -07:00
Guangcong Luo
266f9eed17 Fix gem activation conditions
Now only moves that have a base power should activate gems.
2013-04-06 21:27:32 -07:00
Guangcong Luo
df7b3d785e Move results passed up to useMove
Move results are now passed all the way up to the useMove script.

It's now possible to tell from within useMove whether or not the move
succeeded.

This fixes a bug where successful Memento and Healing Wish were
considered to have failed and so didn't cause the user to faint.
2013-04-06 19:03:59 -07:00
Guangcong Luo
c663b5eaa5 Fix Substitute for new hit system 2013-04-06 18:27:20 -07:00
Guangcong Luo
3ef4b5c785 Ugly hack to fix burn+Explosion damage
Currently, if a burned Pokemon explodes in doubles, all targets except
the first will take full damage, because it's fainted (and no longer
burned) by the time those damage calculations are done.

The correct solution is to do all damage calculations before dealing
any damage, which I will do someday. Today is not that day.

Today, we move fainting the Explosion user to after damage is dealt.
Which, aside from making the faint order wrong, doesn't really have
any other consequences, and is better than the current buggy
damage calculation.
2013-04-06 16:11:15 -07:00
Guangcong Luo
d888a75bbe Fix Forewarn message 2013-04-06 15:49:24 -07:00
Guangcong Luo
b7500a375a Make sure ability immunities go last
Specifically, abilities like Lightningrod should activate their
absorption effects after Protect, Magic Bounce, or anything like
that.
2013-04-06 15:22:32 -07:00
Guangcong Luo
2b1a5540ac Fix SR for new move hit system
Specifically, the TryFieldHit event no longer exists.

Instead, Magic Bounce has separate event handlers for TryHit and
TryHitSide.

This also fixes it so Magic Coat/Bounce happen before ability
absoption (like Water Absorb).
2013-04-06 14:35:31 -07:00
Guangcong Luo
7aa1ed7ae3 Order the TryHit event correctly
(This isn't perfect yet; Magic Coat/Bounce uses a different event,
which we'll need to correct later.)
2013-04-06 12:57:16 -07:00
Guangcong Luo
fe2da359e9 Refactor when accuracy is calculated
Accuracy is now checked after immunities and certain other effects,
rather than before.
2013-04-06 12:55:38 -07:00
Guangcong Luo
f71976d7f6 Fix multiplier debug message 2013-04-06 12:40:22 -07:00
Guangcong Luo
55362a8f81 Gem activation conditions fix 2013-04-06 08:47:21 -07:00
Marty-D
5370068ed7 Make sure Gems don't activate with Status moves. 2013-04-06 10:47:00 -04:00
Guangcong Luo
64354a847c VGC 2013 out of dev (finally) 2013-04-05 23:13:27 -07:00
Guangcong Luo
b0cfddcede Fix Gems and spread moves
Gems now boost all hits of a spread move.

This introduces a new event BasePowerMultiplier, so that gems actually
activate at the right time now.

The name is similar to basePowerModifier but they do the same thing
anyway. We should probably figure something out for their naming,
though.
2013-04-05 23:13:26 -07:00
Cathy J. Fitzpatrick
b290447bb7 Remove localsysop setting
The `localsysop` setting is dangerous and allows an attack where an
attacker constructs a malicious webpage that makes a connection to
`localhost` on the appropriate port and then takes over the server.
Since the dev console can be used from `localhost` by default, this
would include the ability to run arbitrary code on the server computer.

Any server operator who browses the internet on the same computer
where she or he hosts the server (such as some small-time server
operators) would be vulnerable to having their computer taken
over merely by visiting any webpage on the internet under the
control of the attacker.
2013-04-05 23:27:12 -06:00
Guangcong Luo
ee6d329280 Room IDs now have dash before battle number
Specifically, room ID format has been changed from 'battle-ou1' to
'battle-ou-1'.
2013-04-05 16:54:30 -07:00
Guangcong Luo
d91896a106 Fix Rebound
It previously was using an outdated algorithm to determine whether
a move is bounceable.
2013-04-05 16:04:29 -07:00
Marty-D
f786cbe640 Rowap Berry is now released. 2013-04-05 14:33:02 -04:00
Guangcong Luo
d196e1f826 Fix Sky Drop bug
It caused weird errors when the target was fainted.
2013-04-03 16:51:53 -07:00
Guangcong Luo
5ae7f0b145 Implement Monotype format 2013-04-03 13:22:43 -07:00
Guangcong Luo
2fe9180b15 Fix clause inheritance
Clauses weren't inherited into modded formats properly. This fixes
that. Also fixed: newline at the end of tier shift's scripts.js.
2013-04-03 13:00:13 -07:00
Guangcong Luo
ddeae3d5dc Ubers is having a suspect test 2013-04-03 07:40:05 -07:00
Guangcong Luo
015d0071a6 Format list arranged by sections
Technically, they were before, but rather than having sections by
mod or gametype, I've split them into the following sections:
- Singles
- Doubles
- Other Metagames
- Past Generations

(Technically OM of the Month is its own section, to make it stand
out)

Anyway, format list sections should be fairly standardized from
now on.
2013-04-03 07:39:19 -07:00
The Immortal
b8d27473a9 Add April Fools Taunt quotes to Fools Festival 2013-04-03 13:54:30 +04:00
The Immortal
a14b34864a Randbats script update
- Add Hustle counter
- Prevent a few move combinations
- Prevent Simple without a boosting move
- Prevent Swift Swim/Chlorophyll without Rain Dance/Sunny Day
- Set Combee's ability to always be Honey Gather
- Set Deoxys-D and Deoxys-S to level 74
2013-04-02 22:35:07 +04:00