Great, thank you!

I'm going to look into that in the next days. It's an interesting idea to add a custom spell-casted-state to the game and use that.

But I still think it's strange that there is no implemented way to detect if the skill is weapon-based or cast-based. checked the API's after you told me that story scripting is the way to do it and found nothing.