Me and my friends were having an argument so heres the scenario...

I'm at a bar drinking and a fight breaks out and proceeds to go outside Someone pulls out a knife and another person has a broken beer bottle ready to swing while another person is threating to shoot me with a gun

Well the 2 people with knife and bottle start charging.....I have a legal issued gun in my car which i grabbed beforehand and start firing shots.

I hit both of them in the legs and one of them dies from blood loss in the hospital....

Do i still get a murder charge? will i do jail time?