[Solved] Make a spell casted by every one

Status
Not open for further replies.
Level 7
Joined
Jan 12, 2014
Messages
67
Hello !
I made a spell which boost the movespeed of the caster based on the rune of speed. But when i have multiple casters with the spell, when i press the button only one cast it.
I want it to work like defend or burrow : everyone who has it cast it !
Is it hardcoded within the spell or can i change it ?

Thanks !
 
I don't think you can change that. I think the only spell that can set this is the Channel spell by (un)checking the 'Unique Cast' flag.
What you could do is use the Channel spell as base and when someone casts that Channel spell, then create dummy and let the dummy cast spell like Bloodlust, etc. that increases movement speed.

Other option could be to detect when unit casts the spell, get player's current selection and order each selected unit to cast the spell as well.
I am not sure how save it is to use player's current selection for this in multiplayer games, though.
 
Status
Not open for further replies.
Back
Top