Honestly set.ability should probably be changed for every battleOnly forme but I didn't want to mess with too much of that code. I also "fixed" Ultra Necrozma, since it wasn't mapping the moves to IDs and also needs to change the ability on the set to properly validate (though no one would use it in the builder anyway because the learnset is bugged and only shows Moongeist Beam and Sunsteel Strike :D).
Honestly
set.ability
should probably be changed for everybattleOnly
forme but I didn't want to mess with too much of that code. I also "fixed" Ultra Necrozma, since it wasn't mapping the moves to IDs and also needs to change the ability on the set to properly validate (though no one would use it in the builder anyway because the learnset is bugged and only shows Moongeist Beam and Sunsteel Strike :D).