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).
You misunderstood me. Use that to provide power to the antenna which is outside the Faraday cage, and the battery is inside.
> What you're proposing would not work if the phaser could just keep firing
The phaser has a range though. So program the drone to fly up and away if it gets hit (no need for AI to do that). Then reactivate communication and stay away from the phaser area.
Source: I flew UAVs "drones" for the US Army for 482 combat flight hours in Iraq. Lookup the wikipedia for "Ground Control Station" for an old pic of an 18 year old me @ the UAV training center "black tower" in Ft Huachuca, AZ.
Then run a simple optical fiber cable for communication to an antenna that lies outside the cage.
If you are really good you have multiple antennas that are kept off (with the circuit physically disconnected from the antenna). If you get hit with a pulse activate the next antenna.
It's possible to make simple electronics that can survive such a pulse, with auto-reset fusible links, and you use those for activating the antenna.
Or even a small door and "push" the antenna out of the Faraday cage when needed.