- 465
- Posts
- 8
- Years
- Seen Jun 17, 2024
So for some reason i get stack layer too deep due to one of my forms "get form" 's.
NO idea why but this is the code;
Is specifically the bold italiced line, getting the ability in this reference breaks it.
(basically an ability like multi-type but its not the only ability the line has)
i also use this alot for other abilities for like aegislash or wishiwashi so their not useless/broken, so their probably broken too.
this worked in v16.2 but the Def Ability in PokeBattle_Pokemon is the same across both.
Code:
[Pokémon Essentials version 17.2]
Exception: SystemStackError
Message: stack level too deep
PokeBattle_Pokemon:239:in `ability'
Pokemon_Forms:799
Pokemon_Forms:798:in `call'
Pokemon_Forms:116:in `call'
Pokemon_Forms:7:in `form'
Pokemon_Forms:28:in `fSpecies'
PokeBattle_Pokemon:280:in `getAbilityList'
PokeBattle_Pokemon:240:in `ability'
Pokemon_Forms:799
Pokemon_Forms:798:in `call'
NO idea why but this is the code;
Code:
MultipleForms.register(:OMEGAPURRLOIN,{
"getForm"=>proc{|pokemon|
next 1 if [B][I]isConst?(pokemon.ability,PBAbilities,:THIEF) [/I][/B]&&
(isConst?(pokemon.item,PBItems,:FIGHTINGGEM) || isConst?(pokemon.item,PBItems,:FIGHTINGCRYSTAL) ||
isConst?(pokemon.item,PBItems,:FISTPLATE) || isConst?(pokemon.item,PBItems,:BLACKBELT) ||
isConst?(pokemon.item,PBItems,:ASSAULTVEST) || isConst?(pokemon.item,PBItems,:MUSCLEBAND))
(basically an ability like multi-type but its not the only ability the line has)
i also use this alot for other abilities for like aegislash or wishiwashi so their not useless/broken, so their probably broken too.
this worked in v16.2 but the Def Ability in PokeBattle_Pokemon is the same across both.