I suspect that it’s legal to shoot when someone is rushing your house with weapons or with fire.
If it isn’t, it should be.
If it isn’t, it doesn’t matter. Life or death situation, so in that county you’ll probably do just fine with any jury.
I’d rather be stuck in a prison cell than stuck in a pine box. Antifa shitheads and ferals may want to consider that they’d be leaving me no option.
If a bad guy is coming at you with a knife, bat, firearm, or other lethal weapon, you have justification to shoot the individual to STOP the threat. NOT to murder him. FORENSICS WILL DETERMINE IF YOU CAPPED THE GUY FIVE MORE TIMES AFTER HEs down and disabled.