Hey im making a new map and i need some help with a spell. It's a spell like Multicast in dota.... I've got everything to work except that when ANY unit dies on the map the spell stops casting and i have no idea why.... Here is the code:
-
Actions
-
Set MultiFart = (Random integer number between 1 and 100)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
MultiFart Less than or equal to 10
-
-
Then - Actions
-
Floating Text - Create floating text that reads Multi fart! above (Triggering unit) with Z offset 0.00, using font size 12.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
-
Floating Text - Change (Last created floating text): Disable permanence
-
Floating Text - Change the lifespan of (Last created floating text) to 4.00 seconds
-
Floating Text - Set the velocity of (Last created floating text) to 30.00 towards 90.00 degrees
-
For each (Integer A) from 1 to 4, do (Actions)
-
Loop - Actions
-
Unit - Make (Triggering unit) Invulnerable
-
Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 200.00 at (Position of (Triggering unit)), dealing 150.00 damage of attack type Spells and damage type Death
-
Unit - Make (Triggering unit) Vulnerable
-
Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by ((Random real number between 0.00 and 4.00), (Random real number between 0.00 and 4.00))) using Abilities\Spells\Undead\PlagueCloud\PlagueCloudCaster.mdl
-
Sound - Play Fart <gen> at 100.00% volume, attached to (Triggering unit)
-
Wait for Fart <gen> to be 0.00 seconds from finished playing
-
Sound - Destroy (Last played sound)
-
Special Effect - Destroy (Last created special effect)
-
-
-
-
Else - Actions
-
Sound - Play Fart <gen> at 100.00% volume, attached to (Triggering unit)
-
-
-