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: Nightmare glitch and more  (Read 847 times)

0 Members and 1 Guest are viewing this topic.

SnorlaxMonster

  • Member+
  • *
  • Offline Offline
  • Gender: Male
  • Probably on Bulbapedia
    • View Profile
Nightmare glitch and more
« on: February 03, 2017, 11:35:14 am »
In the Generation II games, if an opponent's Pokémon is affected by Nightmare and they cure it with a Full Heal, the effect of Nightmare will remain. This is documented by Chickasaurus in this video (inspired by this video which accidentally encountered it). However, that video doesn't delve into the cause.

Nescientist pointed out that, according to the disassembly, when either player uses a Full Heal (or Full Restore?), the player's Pokémon is cured of Nightmare, the Toxic effect of poison, and confusion, regardless of who used it.

So, while this could mean that the Toxic counter would continue to increase even if an opponent cures itself of poison with a Full Heal/Full Restore and potentially fail to cure their own Pokémon of confusion, I think it would also be worth looking into what happens to the player's Pokémon. While I don't know how you would get an opponent with a Full Heal/Full Restore to use Nightmare on the player's Pokémon, you can certainly get Koga to badly poison your Pokémon; if your Pokémon is badly poisoned, but Koga uses a Full Heal/Full Restore, in theory your Pokémon should have its poison become regular poison. Likewise, it's possible that opponents using Full Heal/Full Restore can cure your Pokémon of confusion.

Háčky

  • Distinguished Member
  • *
  • Offline Offline
  • Pick which packet as an error?
    • View Profile
Re: Nightmare glitch and more
« Reply #1 on: February 03, 2017, 05:51:37 pm »
That code is only called when the player uses an item, not the AI. AI item usage is controlled by the code in battle/ai/items.asm. The equivalent function AI_HealStatus cures the AI’s active Pokémon of the effect of Toxic but not the effect of Nightmare. EnemyUsedFullRestore additionally cures the AI’s active Pokémon of confusion, but EnemyUsedFullHeal does not cure confusion. These bugs seem to be holdovers from Generation I, when Nightmare didn’t exist and neither Full Heal nor Full Restore cured confusion.

Yeniaul

  • Guest
Re: Nightmare glitch and more
« Reply #2 on: February 05, 2017, 06:23:51 pm »
That code is only called when the player uses an item, not the AI. AI item usage is controlled by the code in battle/ai/items.asm. The equivalent function AI_HealStatus cures the AI’s active Pokémon of the effect of Toxic but not the effect of Nightmare. EnemyUsedFullRestore additionally cures the AI’s active Pokémon of confusion, but EnemyUsedFullHeal does not cure confusion. These bugs seem to be holdovers from Generation I, when Nightmare didn’t exist and neither Full Heal nor Full Restore cured confusion.
Wait... the AI doesn't actually use any items? Wow...