welp, here's a fun bug when using Covet with Vaporeon against Roxanne's Relicanth while it's poisoned with Toxic
[Pokémon Essentials version 19.1]
[Generation 8 Project v1.1.2]
Exception: NameError
Message: undefined local variable or method `target' for #<PokeBattle_AI>
Backtrace:
190:AI_Move_Utilities:86:in `pbCalcTypeModPokemon'
187:AI_Switch:120:in `block in pbEnemyShouldWithdrawEx?'
187:AI_Switch:94:in `each'
187:AI_Switch:94:in `each_with_index'
187:AI_Switch:94:in `pbEnemyShouldWithdrawEx?'
187:AI_Switch:6:in `pbEnemyShouldWithdraw?'
208
okeBattle_BattlePalace:191:in `pbEnemyShouldWithdraw?'
209
okeBattle_BattleArena:215:in `pbEnemyShouldWithdraw?'
185
okeBattle_AI:64:in `pbDefaultChooseEnemyCommand'
180:Battle_Phase_Command:200:in `block in pbCommandPhaseLoop'
[Pokémon Essentials version 19.1]
[Generation 8 Project v1.1.2]
Exception: NameError
Message: undefined local variable or method `target' for #<PokeBattle_AI>
Backtrace:
190:AI_Move_Utilities:86:in `pbCalcTypeModPokemon'
187:AI_Switch:120:in `block in pbEnemyShouldWithdrawEx?'
187:AI_Switch:94:in `each'
187:AI_Switch:94:in `each_with_index'
187:AI_Switch:94:in `pbEnemyShouldWithdrawEx?'
187:AI_Switch:6:in `pbEnemyShouldWithdraw?'
208
209
185
180:Battle_Phase_Command:200:in `block in pbCommandPhaseLoop'