Main Menu
Main Page
Forums
New pages
Recent changes
Random page
Help

Glitches
Arbitrary code execution
Pokémon cloning
Pomeg glitch and Glitzer Popping
Tweaking and voiding
Glitches by generation
Glitch categories

References/Resources
Databases
Disassembly projects
The Big HEX List
Pokémon cheat codes
Pokémon glitch terminology
Useful tools
More

Affiliates
Legendary Star Blob 2 (Hakuda) (日本語/Japanese)
Pokémon Speedruns wiki (English)
PRAMA Initiative (Français/French)
MissingNo. Glitch City (Italiano/Italian)
Become an affiliate!

Technical
Site source code

Search Wiki

 

Search Forums

 

Author Topic: Why does Fire Fang bypass Wonder Guard ?  (Read 702 times)

0 Members and 1 Guest are viewing this topic.

Tabbender

  • Knight of Space
  • Member+
  • *
  • Offline Offline
  • Gender: Male
  • Read Homestuck btw
    • View Profile
Why does Fire Fang bypass Wonder Guard ?
« on: August 05, 2018, 08:18:03 am »
So there's this glitch in gen 4 that allows the move Fire Fang to hit any pokemon with Wonder Guard, even if they're not weak to fire. This affect any pokemon that eventually gets Wonder Guard via Trace (or via hacking) without being weak to fire.

I noticed it as a kid when i had hacked a Wondertomb into my game and was using it in the Battle Tower.  Then 9 years later i got curious and searched to see if anyone else had noticed it. As it turns out, people did.
https://gamefaqs.gamespot.com/boards/960099-pokemon-heartgold-version/54819376
https://pokemondb.net/pokebase/9859/so-fire-fang-always-hit-wonder-guard-even-its-not-effective
https://bulbapedia.bulbagarden.net/wiki/List_of_glitches_in_Generation_IV#Fire_Fang_Wonder_Guard_glitch

However, i can't find an explanation to how this glitch works. The closest i got is this https://projectpokemon.org/home/forums/topic/35405-glitchgen-iv-fire-fang-bypasses-wonder-guard/ , which explains how to patch the game to fix the glitch (apparently the first two bytes of the move's data are 11 01 and should be 16 01), but it doesn't explain what is causing this glitch to occur or why the data is wrong in the first place.

Does anyone here have an idea of what causes this glitch to occur ?
« Last Edit: August 05, 2018, 08:19:27 am by Tabbender »
Issou la chancla

Bert

  • Local Shitposter
  • Member+
  • *
  • Offline Offline
  • Gender: Male
  • Enemy FERALIGATR can't receive the gift!
    • View Profile
Re: Why does Fire Fang bypass Wonder Guard ?
« Reply #1 on: August 05, 2018, 04:16:28 pm »
It probably went unnoticed during development since Shedinja is the only Pokemon to naturally have the ability. Note that Thunder Fang and Ice Fang don't have the same affect. Might be trolling on Game Freak's part since no other fire-type move does this.

Tabbender

  • Knight of Space
  • Member+
  • *
  • Offline Offline
  • Gender: Male
  • Read Homestuck btw
    • View Profile
Re: Why does Fire Fang bypass Wonder Guard ?
« Reply #2 on: August 06, 2018, 08:43:34 am »
Well it IS possible to legitimately obtain a non-weak to fire Wonder Guard pokemon, via Trace. So i don't think it was intentional.
Issou la chancla

Sherkel

  • Ringsome on the aquaface
  • Administrator
  • *****
  • Offline Offline
  • Gender: Male
    • View Profile
Re: Why does Fire Fang bypass Wonder Guard ?
« Reply #3 on: August 06, 2018, 03:41:49 pm »
The answer probably requires knowledge of ARM9 assembly to understand. As Bert said, though, I'm betting there isn't one. Strangely, the move behavior table only seems to have 276 entries, so the guide's direction to point Fire Fang to the 278th entry just makes me more lost. Maybe you could ask on Project Pokémon?

Sticking to quality control and moderation until I sort some IRL matters out. I check in here almost daily and will answer questions, but not all of them.
I don't have a habit of keeping Discord open, so direct inquiries are preferred through here.

Princess Torchic Owl Lover ☽ ❤

  • Head Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • Aspiring mother. 🦋 ✿
    • View Profile
Re: Why does Fire Fang bypass Wonder Guard ?
« Reply #4 on: August 07, 2018, 01:14:16 pm »
Maybe it was some kind of weird curiosity Game Freak added regarding Fire Fang to secure it works properly (maybe there's something in the code of the move that unintentionally made it not work against Wonder Guard even if super-effective) because all Shedinja are meant to be weak to Fire-type moves (type Bug/Ghost).

But like Tabbender said, if Trace can copy Wonder Guard it introduces unintended behaviour.
« Last Edit: August 07, 2018, 01:15:03 pm by Evie Torchic the Glitch Scientist »

✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿
Here have some free flowers on every post ^^
✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿✿



(Images © Sanrio, Nintendo, Pokémon, HAL Laboratory)

✿ Hi, I'm Evie. Sex male, and spiritually doesn't believe 'male'/'female' needs to be defined; lives more stereotypically like a woman. Call me whichever pronouns you like. :)

Feel free to contact me here about anything regarding the site.

Forgiveness. I feel that the more people pray to our greatest source/God/mathematical equality for world peace, the more and more it manifests into reality (until our next spiritual death).

Thank you Nyapon for this lovely artwork. :3

Tabbender

  • Knight of Space
  • Member+
  • *
  • Offline Offline
  • Gender: Male
  • Read Homestuck btw
    • View Profile
Re: Why does Fire Fang bypass Wonder Guard ?
« Reply #5 on: August 08, 2018, 04:51:03 am »
The answer probably requires knowledge of ARM9 assembly to understand. As Bert said, though, I'm betting there isn't one. Strangely, the move behavior table only seems to have 276 entries, so the guide's direction to point Fire Fang to the 278th entry just makes me more lost. Maybe you could ask on Project Pokémon?

Well i'd say there have to be an answer, but if the move behavior pointer points to an out of bound value, it probably interprets garbage data as behavior data, which could explain that... though i'm not sure which part of a move exactly is modified by the behavior.
I'll try to ask on Project Pokémon if i have time.

Maybe it was some kind of weird curiosity Game Freak added regarding Fire Fang to secure it works properly (maybe there's something in the code of the move that unintentionally made it not work against Wonder Guard even if super-effective) because all Shedinja are meant to be weak to Fire-type moves (type Bug/Ghost).

But like Tabbender said, if Trace can copy Wonder Guard it introduces unintended behaviour.

I don't think so, since the tutorial on the post i linked apparently solved the issue entirely and made it so Fire Fang works normally (so it should still work on Shedinja). And i don't get why Fire Fang specifically would have this problem when other Fang moves don't...
Issou la chancla