Protect (move): Difference between revisions

4,929 bytes removed ,  26 December 2022
→‎Effect: Ideally, you should only have to look two places: a generic summary, and a generation for specifics. Our current style of piled up changes through generations can be incredibly inconvenient (but that's a huge task) | Generally, removing some fine details better on protection
No edit summary
(→‎Effect: Ideally, you should only have to look two places: a generic summary, and a generation for specifics. Our current style of piled up changes through generations can be incredibly inconvenient (but that's a huge task) | Generally, removing some fine details better on protection)
Line 62: Line 62:


==Effect==
==Effect==
===Generation II===
Protect protects the user from all effects of moves that target it during the turn it is used, including damage. This does not include damage at the end of a turn such as from [[weather]] or a [[status condition]].
Protect [[protection|protects]] the user from all effects of moves that target it during the turn it is used, including damage.


This does not include damage inflicted by [[weather]] it is susceptible to, or damage from a [[status condition]] that it obtained on a previous turn (as these are not moves that targeted the user this turn). If the user [[priority|goes last]] this turn, the move will fail.
If the user [[priority|goes last]] in the turn, the move will fail. The chance that Protect will succeed also drops each time the user uses {{m|Endure}} or any [[protection]] move (except {{m|Mat Block}} and {{m|Crafty Shield}}) in succession.
{| class="roundy" style="margin:auto; background: #{{normal color}}; text-align: center"
|- style="background: #{{normal color light}}"
! colspan="2" |
! Gen II
! Gen III
! Gen IV
! Gen V
! Gen VI
! Gen VII
! Gen VIII
! Gen IX
|- style="background: #fff"
! rowspan="3" style="background: #{{normal color light}}" | [[Protection#Failure chances|Success rate]]
| Times ½ after each use<!--trivial limit-->
| {{yes}}
| ||
| {{yes}}
| || || ||
|- style="background: #fff"
| Times ½ after each use (lowest: 1/8)
|
| {{yes}}<sup>[[#Generation III|bug]]</sup> || {{yes}}
| || || || ||
|- style="background: #fff"
| Times <sup>1</sup>/<sub>3</sub> after each use<!--trivial limit-->
| || || ||
| {{yes}} || {{yes}} || {{yes}} || {{yes}}
|}


Protect will fail if the user is behind a {{m|substitute}}.
Some moves will {{cat|moves that do damage through protection|do damage through Protect}}. Most damaging [[Z-Move]]s and [[Max Move]]s will only do 25% of their original damage, except {{m|G-Max One Blow}} and {{m|G-Max Rapid Flow}} which do full damage. {{cat|Moves that break protection}}, like {{m|Feint}}, will do their full damage and remove the effects of Protect. The Ability {{a|Unseen Fist}} allows [[contact]] moves to bypass Protect.


Each time any of Protect, {{m|Detect}}, or {{m|Endure}} is successfully used without other moves used in between, the success rate will halve. In this generation, the success rate is implemented as a single byte over 255 which starts at the maximum of 255 and is floor-divided by 2<!-- more accessible term? int-divided? truncated? right-shifted by 1? --> each time. This causes the success rate to drop to 0 on its ninth consecutive successful use.<ref>https://github.com/pret/pokecrystal/blob/51bad5a/battle/effects/protect.asm#L54-L61</ref>
[[Status move]]s that are unaffected by Protect are [[#Moves that bypass Protect|listed below]].


{| style="background: #{{normal color light}}; {{roundy|1em}}; border: 3px solid #{{normal color}}"
===Generation II===
|-
In this generation only, Protect will fail if the user is behind a {{m|substitute}}.
! style="{{roundytl|5px}}" | Turn
! style="{{roundytr|5px}}" | Success Rate
|-style="background:#FFF"
| 1
| 255
|-style="background:#FFF"
| 2
| 127
|-style="background:#FFF"
| 3
| 63
|-style="background:#FFF"
| 4
| 31
|-style="background:#FFF"
| 5
| 15
|-style="background:#FFF"
| 6
| 7
|-style="background:#FFF"
| 7
| 3
|-style="background:#FFF"
| 8
| 1
|-style="background:#FFF"
| 9
| 0
|}{{left clear}}


===Generation III===
===Generation III===
Protect can now be used when the user is behind a {{m|substitute}}.
In this generation only, the success rate is meant to have a lower bound of 1/8, but [[Protection#Generation III-IV|a bug]] causes it to become erratic afterwards instead.
 
Like in Generation II, the success rates of Protect, {{m|Detect}}, and {{m|Endure}} halve each time any of the three are used successfully and consecutively. In this generation, the halving was intended to cap at a 12.5% success rate on the fourth consecutive successful use, but a bug{{fact}} causes the cap to not work, causing the game to read garbage values and causing Protect's success rate on the fifth and future turns to follow an erratic sequence.<ref>[http://no2.pic.bz/document/waza/each/6F.html ポケットモンスター情報センター 2号館] (Japanese)</ref><ref>[http://www.nicovideo.jp/sm19862416 【ポケモン】TASさんがまもるの限界に挑戦してみた【ルビー】] (Japanese)</ref>
 
The following success rates are accurate to Ruby and Sapphire; from the 53rd turn onward, FireRed and LeafGreen have a different sequence of values, as does Emerald<!-- meaning all three are different from each other, but members of a pair are the same -->.<ref>http://forums.glitchcity.info/index.php?topic=6603.0</ref> These numbers represent success rates out of 65536, which means that the move has a 1/65536 chance of failing on the first use.<ref>[http://www.nicovideo.jp/watch/sm19879961 TASさんがまもるの限界に挑戦(裏)] (Japanese)</ref>
 
{| style="background: #{{normal color light}}; {{roundy|1em}}; border: 3px solid #{{normal color}}"
|-
! style="{{roundytl|5px}}" | Turn
! style="{{roundytr|5px}}" | Success Rate
! style="{{roundytl|5px}}" | Turn
! style="{{roundytr|5px}}" | Success Rate
! style="{{roundytl|5px}}" | Turn
! style="{{roundytr|5px}}" | Success Rate
! style="{{roundytl|5px}}" | Turn
! style="{{roundytr|5px}}" | Success Rate
! style="{{roundytl|5px}}" | Turn
! style="{{roundytr|5px}}" | Success Rate
|-style="background:#FFF"
| 1
| 65535
| 17
| 168
| 33
| 89
| 49
| 2000
| 65
| 110
|-style="background:#FFF"
| 2
| 32767
| 18
| 266
| 34
| 56
| 50
| 100
| 66
| 90
|-style="background:#FFF"
| 3
| 16383
| 19
| 289
| 35
| 57
| 51
| 65535
| 67
| 64
|-style="background:#FFF"
| 4
| 8191
| 20
| 270
| 36
| 61
| 52
| 65535
| 68
| 95
|-style="background:#FFF"
| 5
| 118
| 21
| 343
| 37
| 157
| 53
| 22
| 69
| 69
|-style="background:#FFF"
| 6
| 165
| 22
| 271
| 38
| 247
| 54
| 30
| 70
| 99
|-style="background:#FFF"
| 7
| 166
| 23
| 264
| 39
| 129
| 55
| 23
| 71
| 187
|-style="background:#FFF"
| 8
| 102
| 24
| 65535
| 40
| 129
| 56
| 40
| 72
| 1
|-style="background:#FFF"
| 9
| 65534
| 25
| 51201
| 41
| 100
| 57
| 2
| 73
| 3084
|-style="background:#FFF"
| 10
| 68
| 26
| 38404
| 42
| 20
| 58
| 50
| 74
| 2820
|-style="background:#FFF"
| 11
| 243
| 27
| 25609
| 43
| 250
| 59
| 68
| 75
| 2827
|-style="background:#FFF"
| 12
| 182
| 28
| 20496
| 44
| 40
| 60
| 60
| 76
| 1285
|-style="background:#FFF"
| 13
| 197
| 29
| 10272
| 45
| 500
| 61
| 19
| 77
| 0
|-style="background:#FFF"
| 14
| 203
| 30
| 5168
| 46
| 60
| 62
| 70
|-style="background:#FFF"
| 15
| 194
| 31
| 78
| 47
| 1000
| 63
| 24
|-style="background:#FFF"
| style="background:#FFF; {{roundybl|5px}}" | 16
| 214
| 32
| 75
| 48
| 80
| 64
| style="background:#FFF; {{roundybr|5px}}" | 80
|}{{left clear}}


Protect can be used as the second move of a [[Contest combination|Pokémon Contest combination]], with the user gaining 1 bonus appeal point if {{m|Harden}} was used in the previous turn.
Protect can be used as the second move of a [[Contest combination|Pokémon Contest combination]], with the user gaining 1 bonus appeal point if {{m|Harden}} was used in the previous turn.


===Generation IV===
===Generation IV===
Protect now properly caps at a minimum success rate of 12.5% on the fourth and future consecutive turns.
In {{2v2|Diamond|Pearl}} only, due to a bug, if an attack is given perfect accuracy through the effect of a move ({{m|Lock-On}}/{{m|Mind Reader}}), the weather ({{m|Thunder}} in [[Rain]], or {{m|Blizzard}} in {{weather|Hail}}), or an Ability ({{a|No Guard}}), it has a chance to hit through Protect equal to <code>(100 - move {{stat|accuracy}})%</code>. [[One-hit knockout move|OHKO]] moves are unaffected, and will never hit through Protect. This bug was fixed in Platinum.
 
In {{2v2|Diamond|Pearl}} only, if an attack is given perfect accuracy through the effect of a move ({{m|Lock-On}}/{{m|Mind Reader}}), the weather ({{m|Thunder}} in [[Rain]], or {{m|Blizzard}} in {{weather|Hail}}), or an Ability ({{a|No Guard}}), it has a chance to hit through Protect equal to <code>(100 - move {{stat|accuracy}})%</code>. [[One-hit knockout move|OHKO]] moves are unaffected, and will never hit through Protect. This behavior was reverted in Platinum.
 
===Generation V===
Protect's success rate no longer has a lower bound of 12.5%. {{m|Quick Guard}} and {{m|Wide Guard}} now also count toward this halving.<ref>[http://www.smogon.com/forums/showpost.php?p=3715158&postcount=772 Smogon forums]</ref>
<!-- IN NEED OF MORE RESEARCH
 
The bit shifting in the Smogon link implies that should Protect work 33 times in a row (success rate 1 in 4 billion on the last one), overflow will cause the success rate to start doubling again, until the 65th consecutive use and all future uses are guaranteed to succeed. Is this correct? (Protect only has 16 max PP, but one can alternate between four different protection moves.)
 
UPokeCenter is normally pretty accurate about these kinds of things, but the site owner has made math mistakes before, albeit very rarely. That site says that after the eighth Protect (1/128), ninth and future Protects are automatically forced down to a 1 in 4 billion success rate, which would actually match Gen II very closely. It doesn't match Smogon though and I'm inclined to trust its bit shifting derivation more. But neither site includes the raw assembly like Gens I, II, and VI do.
-->
 
===Generation VI onwards===
Successfully using Protect, {{m|Detect}}, {{m|Endure}}, {{m|Wide Guard}}, {{m|Quick Guard}}, {{m|Spiky Shield}}, {{m|King's Shield}}, {{m|Baneful Bunker}}, {{m|Obstruct}}, or {{m|Max Guard}} consecutively now divides the chance of success of Protect, Detect, Endure, Spiky Shield, King's Shield, Baneful Bunker, Obstruct, and Max Guard by 3 for each consecutive use, with a minimum (1/3)^6 (1/729 or ~0.1%) chance.<ref>https://twitter.com/0x7bdf/status/591858756733931521</ref>
 
If a damaging [[Z-Move]] or a [[Max Move]] targets a Pokémon that used Protect, the move will bypass Protect but only do 25% of the original damage. The effects of Protect are not lifted.


===Generation V onwards===
If powered up by a [[Normalium Z]] into Z-Protect, all of the user's lowered stats are reset.
If powered up by a [[Normalium Z]] into Z-Protect, all of the user's lowered stats are reset.


===Moves that bypass Protect===
===Moves that bypass Protect===
In addition to damaging [[Z-Move]]s and [[Max Move]]s, the following moves marked with a ✔ bypass Protect:
The moves marked with a ✔ below bypass Protect. This list excludes damaging Z-Moves and Max Moves.


Generally, {{cat|moves that target the user}}, {{cat|moves that target the user and all allies}}, {{cat|moves that target all Pokémon}} (except {{m|Shadow Shed}} and {{m|Shadow Half}}), and [[entry hazard]] moves cannot be blocked by Protect.
{| class="roundy" style="background: #{{normal color light}}; border: 5px solid #{{normal color}}"
{| class="roundy" style="background: #{{normal color light}}; border: 5px solid #{{normal color}}"
|
|
Line 370: Line 165:
|}
|}
|}{{left clear}}
|}{{left clear}}
Additionally, Feint, Shadow Force, Phantom Force, Hyperspace Fury, and Hyperspace Hole lift Protect's protection for the rest of the turn.
{{cat|Moves that target the user}}, {{cat|moves that target the user and all allies}}, {{cat|moves that target all Pokémon}} (except {{m|Shadow Shed}} and {{m|Shadow Half}}), and [[entry hazard]] moves cannot be blocked by Protect.
===Abilities that bypass Protect===
{{a|Unseen Fist}} is an Ability that allows all moves that make [[contact]] to bypass protection moves.


==Description==
==Description==