Main Menu
Main Page
Forums
Recent changes
Random page
Help

Databases
GlitchDex
AttackDex
ItemDex
TrainerDex
TypeDex
UnownDex
More

Major Glitches
Trainer escape glitch
Old man trick
Celebi trick
Select glitches (Japan)
SRAM glitch
CoolTrainer♀ corruption
LOL glitch
Rival LOL glitch
Super Glitch
ZZAZZ glitch
Pomeg corruption glitch (Glitzer Popping)
Tweaking
Elite Four door glitch (Japan)
Pokémon merge glitch
Pokémon cloning
Time Capsule exploit
Arbitrary code execution
Coin Case glitch
More

Other Glitch Categories
Glitches by generation
Glitches between two generations
Japan-only/language specific glitches
Music glitches
Natural glitches
Non-core series glitches
Non-Pokémon glitches
Officially acknowledged glitches
Recurring glitches
Dead glitches

References
Pokémon GameShark codes
The Big HEX List
Glitch Pokémon cries
GB programming
Curiosities
Debugging features
Easter eggs
Error traps
Glitch areas
Glitch myths
Non-glitch exploits
Placeholder texts
Pokémon glitch terminology
Unused content and prerelease information

Useful Tools
8F Helper
GBz80 to Items
Old man trick name generator
PATH (Prama's Advanced Tweaking Heaven)
Save file editors
Special stat/Pokémon converter
Trainer escape Trainer Pokémon finder

Affiliates
Legendary Star Blob 2 (Hakuda)
Pokémon Speedruns wiki
PRAMA Initiative
Become an affiliate!

Technical
Site Source Code

Search Wiki

 

Search Forums

 

Author Topic: Nightmare glitch and more  (Read 440 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...