List of glitches (Generation IV): Difference between revisions

Line 7: Line 7:


===Fire Fang Wonder Guard glitch===
===Fire Fang Wonder Guard glitch===
{{m|Fire Fang}} is able to hit through {{a|Wonder Guard}}, even if the target does not have a weakness to {{type|Fire}} moves. This does not apply to {{m|Ice Fang}}, {{m|Thunder Fang}}, or any other Fire-type moves. This is possible if the opponent copies Wonder Guard by {{a|Trace}}.
{{m|Fire Fang}} is able to hit through {{a|Wonder Guard}}, even if the target does not have a weakness to {{type|Fire}} moves. This does not apply to {{m|Ice Fang}}, {{m|Thunder Fang}}, or any other Fire-type moves. This is possible if the opponent copies Wonder Guard by {{a|Trace}}. This happens due to a typo within the [[Wikipedia:Switch statement|switch statement]] for a function for Wonder Guard in relation to [[:Category:Moves with a charging turn|moves with a charging turn]] and {{m|Bide}}. The function is intended to compare move effect codes to a list in the function to prevent specific moves' charging turn(s) from being affected by Wonder Guard. {{m|Shadow Force}}, which its move effect code is 272, is intended to be a part of the switch statement, but Fire Fang, which is 273, is instead in the statement. Since Fire Fang doesn't have a charging turn, this allows it to always bypass Wonder Guard. Notably, despite not being a part of this function, Shadow Force behaves normally against a foe with Wonder Guard.<ref>https://www.smogon.com/forums/threads/prototype-development-diamond-pearl-assets-leak.3664842/#post-8480222</ref>


{{YouTubeEmbed|Wq-ch9TSckY|Wooggle|diamond}}
{{YouTubeEmbed|Wq-ch9TSckY|Wooggle|diamond}}
883

edits