I've been trying to implement the Corrosion ability in Pokémon Essentials V17.1 where I downloaded the pack with everything needed for it. Only 1 movement was incomplete because I could not find one of the sections in the scripts to modify. But the problem that is taking away my patience is with a ability, which is called Corrosion.
As most will know, it allows the attacker to poison any type of opponent, even if it is Poison or Steel. type.
The modified script is PokeBattle_BattleEffects, at line 127, where only one exception is added. "! attacker.hasWorkinAbility (: CORROSION)"
The skill works perfectly, the problem is when any other Pokémon of the type Steel or Poison uses attacks of physical contact with some other pokémon that has the Poison Point ability. The error is as follows:
As I included the 7th generation, the Pokemon that has this ability would lose its identity if I put another ability in the place, could someone explain to me what happens and why this error happens...
As most will know, it allows the attacker to poison any type of opponent, even if it is Poison or Steel. type.
The modified script is PokeBattle_BattleEffects, at line 127, where only one exception is added. "! attacker.hasWorkinAbility (: CORROSION)"
The skill works perfectly, the problem is when any other Pokémon of the type Steel or Poison uses attacks of physical contact with some other pokémon that has the Poison Point ability. The error is as follows:
![[PokeCommunity.com] Ability of Gen 7 Corrosion [PokeCommunity.com] Ability of Gen 7 Corrosion](https://i.imgur.com/BMNYoG8.jpg)
As I included the 7th generation, the Pokemon that has this ability would lose its identity if I put another ability in the place, could someone explain to me what happens and why this error happens...
Last edited: