Before I thought it was something related to the move in specific, but later I identified that the error is only if it is replaced by some pokémon with the Illusion ability.
The move works normally if the substitute does not have this ability (illusion), so I discarded the possibility of being something related to it.
Anyone can help about that bug?
Code:
[Pokémon Essentials version 17.1]
Exception: NoMethodError
Message: undefined method `pbGetLastPokeInTeam' for #<PokeBattle_Battler:0xd04bc78>
PokeBattle_Battler:5410:in `pbUseMove'
PokeBattle_Battler:5550:in `pbProcessTurn'
PokeBattle_Battler:5549:in `logonerr'
PokeBattle_Battler:5549:in `pbProcessTurn'
PokeBattle_Battle:3614:in `pbAttackPhase'
PokeBattle_Battle:3611:in `each'
PokeBattle_Battle:3611:in `pbAttackPhase'
PokeBattle_Battle:3599:in `times'
PokeBattle_Battle:3599:in `pbAttackPhase'
PokeBattle_Battle:3193:in `pbStartBattleCore'
The move works normally if the substitute does not have this ability (illusion), so I discarded the possibility of being something related to it.
Anyone can help about that bug?