Hi, I been having this problems for months and I could not solve it.
First I had a glitch where the double battle does not end though I have already defeated all the opponents. I am using the latest version of essential and not using EBS. I also tested the combination of the old version v16 with and without EBS, I still had this glitch. There is no errorlog too. I also tested with the combinations of megas, non megas and my customized megas, this glitch still can occur.
After some time, I did not change any script as I was having exams and I got this error below, though the battle could end. But there was also a chance that the above glitch could also occur.
Exception: ArgumentError Message: wrong number of arguments(2 for 1) PokeBattle_Battle:2721:in `pbChooseTarget' PokeBattle_Battle:2721:in `pbCommandPhase' PokeBattle_Battle:2698:in `loop' PokeBattle_Battle:2799:in `pbCommandPhase' PokeBattle_Battle:2687:in `each' PokeBattle_Battle:2687:in `pbCommandPhase' PokeBattle_Battle:2628:in `pbStartBattleCore' PokeBattle_Battle:2627:in `logonerr' PokeBattle_Battle:2627:in `pbStartBattleCore' PokeBattle_Battle:2617:in `loop'
Please help. Greatly appreciated. Thank you