When a move lands a critical hit, the user's level will be doubled during damage calculation, which ends up approximately (but not quite) doubling the damage dealt. A more accurate formula for the multiplier is (2L+5)/(L+5) where L is the user's level; as a result, lower-leveled Pokémon have a smaller critical hit boost than higher-leveled Pokémon. For example, a level 5 Pokémon will inflict 1.5× the damage on a critical hit, while a level 20 Pokémon will inflict 1.8× and a level 95 Pokémon will inflict 1.95×.
If a Critical hit happens, double the value of A.Here's the formula:
((2A/5+2)*B*C)/D)/50)+2)*X)*Y/10)*Z)/255
A = attacker's Level
B = attacker's Attack or Special
C = attack Power
D = defender's Defense or Special
X = same-Type attack bonus (1 or 1.5)
Y = Type modifiers (40, 20, 10, 5, 2.5, or 0)
Z = a random number between 217 and 255
The formula Test2017 gave is in fact correct. His formula gives the ratio between crit and non-crit damage; (2(2L)/5+2)/(2L/5+2) = (2L+5)/(L+5).Critical hits indeed don't do 2x damage, but the damage formula given is wrong.
If a Critical hit happens, double the value of A.
https://www.math.miami.edu/~jam/azure/compendium/battdam.htm
Rollover occurs when the target switches out of a trapping move, the Clamp (Wrap etc.) user automatically uses the move again on the incoming mon costing 1 PP. If you're at 0 PP when that happens, it rolls back over to 63 PP.Found another bug when casually battling with praj.pran on smogtours, turns out that the roll-over doesn't work properly. He rolled over with clamp and it went back to (I think) 24 (he said some time after the rollover he was at 16).. it should always roll over to 63 (also it rolled over because something of mine was KOed I think - is that the proper mechanic?) - also he didn't miss a single clamp iirc; before, I've seen wrap virtually always hit too whilst switching, given that you'd expect 6/24 clamps to miss, could someone maybe do some testing with me (and if someone could look into the code and make sure that at least clamp has 75% accuracy in RBY) to see if there is something buggy about this? ^-^
Guess we gotta do some testingRollover occurs when the target switches out of a trapping move, the Clamp (Wrap etc.) user automatically uses the move again on the incoming mon costing 1 PP. I wasn't sure about this, but I figured after that that it was probably the case. If you're at 0 PP when that happens, it rolls back over to 63 PP. However, with Clamp, Pokemon Showdown rolled over to some other number (probably 23 or 24?)
I wouldn't be surprised if the reason you don't see any misses while switch spamming is because it isn't checking for accuracy after the initial hit, thinking "oh Clamp automagically continues to hit after the initial use" without considering that you switched out and are forcing a new initial hit on a different mon. I think it might be something like that but I swear blind I've seen wrap miss like that once o.o
Fixed:Gengar used Explosion!
It's not very effective... The opposing Jirachi lost 33% of its health!
Gengar fainted!
The opposing Jirachi used Wish!
this is wrong in adv, the pkmn exploded on doesnt move
I'm not a programmer, and I haven't looked at the whole code, but:-Critical hits do not ignore screens
https://github.com/Zarel/Pokemon-Showdown/commit/caab2923e14ac49d6e0e1f665ed358b103c4ff1a
What does this mean for my gimmick reflect harden snorlax? o.oYour code looks like it turns >1024 Def/Spc from Reflect/Light Screen in RBY into 1024 - ie, a cap. It's not a cap, it's a rollover; if you have 514 Def and use Reflect, your Def is now 4. See here, second point under "damage calculation".
It's a minor issue in RBY, because to hit that bug you'd need to have both a +Def move and Reflect on your set. But still.
Is this a joke?What does this mean for my gimmick reflect harden snorlax? o.o
Yeah, screen Starmie is a decent idea. Both on the same set is problematic, though, since you end up getting walled by a long list of things.yea I knew it was terrible I was just testing it out for laughs.
I wanna theorise about starmie with screens a little more tho