• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Make a spell casted by every one

Status
Not open for further replies.
Level 6
Joined
Jan 12, 2014
Messages
59
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 !
 
Level 29
Joined
Sep 26, 2009
Messages
2,596
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.
 
Level 6
Joined
Jan 12, 2014
Messages
59
Just remember that Berserk is an Instant ability, meaning that it skips cast animations and everything related to Cast Point / Cast Backswing.

But if that's fine with you then who cares. The alternative is just as easy though.

And there is no way to change if a spell is instant or not i guess ?
You just "need to know"
 
Status
Not open for further replies.
Top