Quote:
gotcha, yah what i think is better if i make the storm hit the player like you say by using targetUID
i think it will be better hitting the player every 20-30 sec prob like 200 dmg per atk,
i am just having a bit problem how to build the atk system instead of just the effect going on you.
and ty infamous for explaining
It all depends on how your source is written but the 'best' way to handle it would be to send the spell to local clients as a ground targeted X/Y skill. Then pass the skill to your attack handler or some other system which can process the spell ID/X/Y to calculate what targets have been hit and deal appropriate damage to them.
The concern there is that most sources will have an issue with this type of handling due to no attacker entity so you'll have to either re-write your attack handler or have a different one to handle server events dealing damage.
Just as an initial thought I feel the best way would be to write a base attack handler and then inherit from it for any spells that need special handling which can then call more generic targeting methods but I'd have to dig into it a bit more to see if that's actually the most efficient route.