Drones carry their own power source - usually a LiPo battery.
What you're proposing would not work if the phaser could just keep firing (which seems likely). Onboard AI seems the solution (assuming the Faraday cage is effective enough, which remains to be seen).