My first spell, and its in GUI.
Not sure if its leakless.
DeathNova[D]:
Releases 8 death bolts around the hero which deal massive damage to nearby units, units that are effected will get overwhelmed by darkness and take damage over time.
Hope you like it, please post if you like it or dont like it.
Not sure if its leakless.
DeathNova[D]:
Releases 8 death bolts around the hero which deal massive damage to nearby units, units that are effected will get overwhelmed by darkness and take damage over time.
Code:
FireNova Cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to DeathNova
Actions
Set DeathNova_Caster = (Casting unit)
Set DeathNova_Lvl = (Real((Level of DeathNova for DeathNova_Caster)))
Set DeathNova_CasterLoc = (Position of DeathNova_Caster)
For each (Integer A) from 1 to 8, do (Actions)
Loop - Actions
Set DeathNova_MoveLoc[(Integer A)] = (DeathNova_CasterLoc offset by 500.00 towards (45.00 x (Real((Integer A)))) degrees)
Unit - Create 1 DeathBolt Dummy for (Owner of DeathNova_Caster) at DeathNova_CasterLoc facing Default building facing degrees
Set DeathNova_Bolt[(Integer A)] = (Last created unit)
Unit - Order DeathNova_Bolt[(Integer A)] to Move To DeathNova_MoveLoc[(Integer A)]
Trigger - Add to FireNova Damage <gen> the event (Unit - A unit comes within 200.00 of (Last created unit))
Custom script: call RemoveLocation(udg_DeathNova_MoveLoc[bj_forLoopAIndex])
Custom script: call RemoveLocation(udg_DeathNova_CasterLoc)
Wait 2.00 seconds
Trigger - Run DeathNova Remove <gen> (ignoring conditions)
Code:
FireNova Damage
Events
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) belongs to an enemy of (Owner of DeathNova_Caster)) Equal to True
Then - Actions
Set DeathNova_EnemyLoc = (Position of (Triggering unit))
Unit - Cause DeathNova_Caster to damage (Triggering unit), dealing (100.00 x DeathNova_Lvl) damage of attack type Spells and damage type Normal
Unit - Create 1 Dummy Caster for (Owner of DeathNova_Caster) at DeathNova_EnemyLoc facing Default building facing degrees
Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike (Triggering unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_DeathNova_EnemyLoc)
Else - Actions
Do nothing
Code:
DeathNova Remove
Events
Conditions
Actions
For each (Integer A) from 1 to 8, do (Actions)
Loop - Actions
Unit - Kill DeathNova_Bolt[(Integer A)]
Hope you like it, please post if you like it or dont like it.