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!
Let's say I have a dummy cast carrion swarm simultaneously for two different players. Do both deal damage to both players' enemies, or just the latest owner's?
Let's say I have a dummy cast carrion swarm simultaneously for two different players. Do both deal damage to both players' enemies, or just the latest owner's?
They will attack units that are enemies of them. So if you create a carrion swarm for player 1 (player 3 is an enemy) it will attack player 3. Then player 2 (player 4 is an enemy) that carrion swarm will attack player 4.
This is normal for all spells I know of.
Also WC3 does not do anything simultaneously. It actually runs one thread at a time. It does this so fast that you think they run at the same time.
The reason it does this is to make coding with globals easier. (or because they were to lazy to multithread WC3)
By running one thread at a time you can continually reuse globals without having to worry about them overwriting each other. ( temp variables)
I'm on mobile right now so I'll try to describe. I will be using a global dummy (that never dies) for casting a carrionswarm when a hero uses an ability. If two heroes cast nearly at the same time, will the damage be applied correctly for each hero's dummy cast?
As long as the dummy cast the first one before the second then yes. This can be tricky as you will be moving the unit and facing the unit in a new direction. If the unit casts the first one then yes it will work fine but if the unit has to turn (units don't turn instantly) then it will switch owners before it has a chance to cast the first instance.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.