Moderator
M
Moderator
13:21, 1st Jun 2011
Maker: The spell is too simple to be approved. Keep on practising
Maker: The spell is too simple to be approved. Keep on practising
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
(0 ratings)
Approved
Unit - A unit Begins casting an ability
Unit - A unit Starts the effect of an ability
Life Break

Events


Unit - A unit Starts the effect of an ability

Conditions


Life Break Equal to (Ability being cast)

Actions


Set TempUnit1 = (Target unit of ability being cast)


Set TempUnit2 = (Triggering unit)


Set TempLoc = Position of TempUnit2


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Life of TempUnit2) Greater than or equal to 50.00



Then - Actions




Unit - Set life of TempUnit1 to (Life of TempUnit1) x 0.50)




Unit - Set life of TempUnit2 to ((Life of TempUnit2) x (0.35 - (0.05 x (Real((Level of Life Break for TempUnit1))))))




Unit - Create 1 Life Break Dummy for (Owner of TempUnit1) at (TempLoc) facing Default building facing degrees




Set TempUnit2 = (Last created unit)




Unit - Add a 1.00 second Generic expiration timer to TempUnit2




Unit - Add Life Break Slow to TempUnit2




Unit - Order TempUnit2] to Human Sorceress - Slow TempUnit1




Special Effect - Create a special effect attached to the origin of TempUnit1 using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl




Special Effect - Destroy (Last created special effect)




Else - Actions



Custom script: call RemoveLocation(udg_TempLoc)
This spell can only be MUI if you use "A unit Starts the effect of an ability"
Trust me.