SmartAI - How to cast a spell with no target?

Hello everyone,

i have recently downloaded, compiled and setup a personal 3.3.5 Trinity server. I’m trying to create a little Boss for fun but i’m now facing a problem. How can I start a casting of a spell without having the Boss to turn towards a target? (In my case the cast is a mortal Dragon Breath that everyone need to avoid) I’m using SMART_ACTION_CAST as action_type but if i use SMART_TARGET_NONE as the target the spell won’t start casting. If I use SMART_TARGET_SELF on Dragon it works but if I move the Boss also moves towards me. Both tries were with SMARTCAST_COMBAT_MOVE Flag.

I don’t know if I can do it from DB maybe I need a C++ script for this but anyway Im asking before :slight_smile:

Thanks everyone for your help