If your tree gets hit, keep your fingers crossed. Install lightning protection to prevent future damage. There are two kinds of lightning damage. When the lightning travels along the outside of the tree in the rainwater, bark is knocked off but damage is usually minimal. If the lightning goes through the center of the tree, the bark is blown off all round the trunk and the tree is a goner. Treatment for damaged trees is the Sick Tree Treatment.
This photo retrieved from Facebook, photo credit Debbie Carter, posted on WINK Weather out of Florida. Tree hit in a West Virginia storm on June 22, 2022.