Yanfly Lunatic States - How to get attacker?

Hi all!

I was wondering if it was possible to determine the user of an attack in YEA - Lunatic States. I stumbled upon this when I tried to create a Thorn Aura state. I know there are scripts out there concerning that but actually that's not the point. I think that it would be useful to know how to get the attacker regarding future alterations.

Right now user. and self. both refer to the entity with the state instead of the attacker.

Any ideas? Thanks in advance.

Edit:
 

YEA - Lunatic States

YEA - Lunatic States: Protection
Nevermind. I found the solution yesterday. If anyone's interested I can post it here later.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-lunatic-states-how-to-get-attacker.37615/