- 288
- Posts
- 6
- Years
- Seen Feb 3, 2025
So I made code for Corrosive Gas earlier, but now I'm wondering if I made it work incorrectly. I made it so the effect of Corrosive Gas applies to a battler (which I believe means that it applies to an index instead of an actual Pokemon). I don't have SWSH, so I can't really test this on my own, but looking at the description on Bulbapedia, it says "Corrosive Gas renders the target's held item unusable for the rest of the battle (even if switched out)." Does this mean that the Pokemon at the index of the target is unable to use its held item for the rest of the battle or that the Pokemon itself cannot use its item?
If the effect remains on the Pokemon itself, does anyone know of any other effects that are similar to this (all other effects that I can think of apply to the index of a Pokemon instead of a Pokemon itself)? If there are no similar effects, does anyone have a suggestion of how I could go about making an effect that applies to a Pokemon instead of a battler? Would I be correct to go to Pokebattle_Pokemon to start making this effect?
EDIT: I did some testing on Pokemon Showdown, but I am inclined to believe that either the Bulbapedia description or the coding in Showdown is incorrect. Bulbapedia makes it seem as though a Pokemon cannot receive a new item at all, as it says "The Pokémon is still listed as holding the item on the status screen and cannot obtain another item, nor can it restore the item with Recycle or with the Ability Harvest." However, in Showdown, Pickup and Trick can both give the corroded Pokemon new items, and it seems as though the corroded item is just treated as gone because Knock Off doesn't work on it until the Pokemon is given a new item.
If the effect remains on the Pokemon itself, does anyone know of any other effects that are similar to this (all other effects that I can think of apply to the index of a Pokemon instead of a Pokemon itself)? If there are no similar effects, does anyone have a suggestion of how I could go about making an effect that applies to a Pokemon instead of a battler? Would I be correct to go to Pokebattle_Pokemon to start making this effect?
EDIT: I did some testing on Pokemon Showdown, but I am inclined to believe that either the Bulbapedia description or the coding in Showdown is incorrect. Bulbapedia makes it seem as though a Pokemon cannot receive a new item at all, as it says "The Pokémon is still listed as holding the item on the status screen and cannot obtain another item, nor can it restore the item with Recycle or with the Ability Harvest." However, in Showdown, Pickup and Trick can both give the corroded Pokemon new items, and it seems as though the corroded item is just treated as gone because Knock Off doesn't work on it until the Pokemon is given a new item.
Last edited: