It used to happen randomly after some battles or, if an enemy miraculously touched you and engaged combat while the heroin animation was happening