Trepidation Wight Ability (Last Stand) not triggering

the text of the trait is “before this creature dies, it attacks random enemies 5 times.”

currently the ability is not triggering