- Joined
- Mar 5, 2008
- Messages
- 3,887
Hello =)
So I've made this spell, everything works just fine, but spell doesn't go in cooldown, why?
I use Carrion Swarm as a base spell, and it has 10 seconds cooldown.
But the problem of the wait is that it ruins the MUI thing.
Thanks!
~Berz
So I've made this spell, everything works just fine, but spell doesn't go in cooldown, why?
I use Carrion Swarm as a base spell, and it has 10 seconds cooldown.
-
Aqua Burst
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Aqua Burst
-
-
Actions
-
-------- ------------------------------------------------------------------------------------------------- --------
-
-------- Getting the Spell constants --------
-
-------- ------------------------------------------------------------------------------------------------- --------
-
Set Aqua_Burst_Caster = (Triggering unit)
-
Set Aqua_Burst_Location = (Target point of ability being cast)
-
Set Aqua_Burst_Ability_Level = (Level of (Ability being cast) for Aqua_Burst_Caster)
-
-------- ------------------------------------------------------------------------------------------------- --------
-
-------- Setting the Spell values --------
-
-------- ------------------------------------------------------------------------------------------------- --------
-
Set Aqua_Burst_Area_of_Effect = 175.00
-
Set Aqua_Burst_Base_Damage = 70.00
-
Set Aqua_Burst_Total_Damage = (Aqua_Burst_Base_Damage x (Real(Aqua_Burst_Ability_Level)))
-
Set Aqua_Burst_Damage_Group = (Units within Aqua_Burst_Area_of_Effect of Aqua_Burst_Location matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Owner of (Matching unit)) is an enemy of (Owner of Aqua_Burst_Caster)) Equal to T
-
-------- ------------------------------------------------------------------------------------------------- --------
-
Unit Group - Pick every unit in Aqua_Burst_Damage_Group and do (Actions)
-
Loop - Actions
-
-------- ------------------------------------------------------------------------------------------------- --------
-
-------- Damaging the units from unit group and creating nice special effects --------
-
-------- ------------------------------------------------------------------------------------------------- --------
-
Unit - Cause Aqua_Burst_Caster to damage (Picked unit), dealing Aqua_Burst_Total_Damage damage of attack type Spells and damage type Unknown
-
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
-
Special Effect - Destroy (Last created special effect)
-
-------- ------------------------------------------------------------------------------------------------- --------
-
-
-
-------- ------------------------------------------------------------------------------------------------- --------
-
-------- Moving the unit --------
-
-------- ------------------------------------------------------------------------------------------------- --------
-
Unit - Move Aqua_Burst_Caster instantly to Aqua_Burst_Location
-
-------- ------------------------------------------------------------------------------------------------- --------
-
-------- Playing a nice unit animation --------
-
-------- ------------------------------------------------------------------------------------------------- --------
-
Animation - Play Aqua_Burst_Caster's birth animation
-
-------- ------------------------------------------------------------------------------------------------- --------
-
-------- Creating nice special effect --------
-
-------- ------------------------------------------------------------------------------------------------- --------
-
Special Effect - Create a special effect attached to the origin of Aqua_Burst_Caster using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
-
Special Effect - Destroy (Last created special effect)
-
-------- ------------------------------------------------------------------------------------------------- --------
-
-------- Clearing Leaks --------
-
-------- ------------------------------------------------------------------------------------------------- --------
-
Custom script: call RemoveLocation(udg_Aqua_Burst_Location)
-
Custom script: call DestroyGroup(udg_Aqua_Burst_Damage_Group)
-
-
But the problem of the wait is that it ruins the MUI thing.
Thanks!
~Berz