Well, here I am one more time. Now with an AI related problem of some possible move of the Tapu Bulu. The following code appears when trying to choose the opponent's movement:
[Pokémon Essentials version 17.1]
Exception: NoMethodError
Message: undefined method `&' for #<PokeBattle_Battler:0xe355048>
PokeBattle_Battler:1525:in `pbIsOpposing?'
PokeBattle_AI:2540:in `pbGetMoveScore'
PokeBattle_AI:2535:in `each'
PokeBattle_AI:2535:in `pbGetMoveScore'
PokeBattle_AI:5440:in `pbChooseMoves'
PokeBattle_AI:5438:in `each'
PokeBattle_AI:5438:in `pbChooseMoves'
PokeBattle_AI:5884:in `pbDefaultChooseEnemyCommand'
PokeBattle_Scene:3008:in `pbChooseEnemyCommand'
PokeBattle_Battle:3166:in `pbCommandPhase'
I made several modifications to the Grassy Surge skill code, but I tested the original and the same error occurred. The other Surge works perfectly. I suspect it is something related to Tapu Bulu's move list. I checked every move of it on PBS and all are properly configured. I have no idea what's causing this problem with AI.
Spoiler:
[Pokémon Essentials version 17.1]
Exception: NoMethodError
Message: undefined method `&' for #<PokeBattle_Battler:0xe355048>
PokeBattle_Battler:1525:in `pbIsOpposing?'
PokeBattle_AI:2540:in `pbGetMoveScore'
PokeBattle_AI:2535:in `each'
PokeBattle_AI:2535:in `pbGetMoveScore'
PokeBattle_AI:5440:in `pbChooseMoves'
PokeBattle_AI:5438:in `each'
PokeBattle_AI:5438:in `pbChooseMoves'
PokeBattle_AI:5884:in `pbDefaultChooseEnemyCommand'
PokeBattle_Scene:3008:in `pbChooseEnemyCommand'
PokeBattle_Battle:3166:in `pbCommandPhase'
I made several modifications to the Grassy Surge skill code, but I tested the original and the same error occurred. The other Surge works perfectly. I suspect it is something related to Tapu Bulu's move list. I checked every move of it on PBS and all are properly configured. I have no idea what's causing this problem with AI.