An elderly woman fired at her female ex-partner with an air rifle then beat her with a walking stick after their relationship ended.
Harrow Crown Court heard Yvonne Newman, 73, told Helga Jancsy, 64, she was going to kill her at the house they shared in Pinner, north-west London.
Newman pleaded guilty to attempted grievous bodily harm with intent, and assault occasioning actual bodily harm.
She was given a 51-week prison sentence, suspended for two years.
'Going to kill you'
The pair had lived together for 20 years until their relationship broke down.
Howard Tobias, prosecuting, said: "One morning Ms Jancsy left her room and went downstairs to make breakfast.
"As she returned to her room she saw the defendant pointing an air rifle at her from 2ft away.
"She said, 'I'm going to kill you'."
Ms Jancsy is said to have grabbed the barrel, then the gun was fired but the shot missed.
A pellet was later recovered from the top of the stairs.
Newman, who now lives in Ringwood, Hampshire, then picked up a wooden walking stick and repeatedly hit Ms Jancsy on the head and shoulders.
Ms Jancsy managed to escape but when the police arrived they found Newman lying on her bed, surrounded by blood.
She was taken to the psychiatric ward Northwick Park Hospital.
Judge Barrington Black told her: "It is very rare that a judge has to deal with somebody at the age of 73 that is before a court for the first time for matters of such gravity, and inevitably there are circumstances that need to be inquired into, such as how you had the gun and used the violence that you did.
"One can only thank the good Lord that you did not hit the complainant."