- Joined
- Jun 20, 2013
- Messages
- 769
Hello, i'm working on this autocast spell is a dual searing arrow for enemies, heal for allies. The Dummy skill is Parasite.
Here is the problem, the skill is being used non-stop instead of finding a wounded unit to heal, or activating with attacks like searing arrows.
Here is the problem, the skill is being used non-stop instead of finding a wounded unit to heal, or activating with attacks like searing arrows.
-
Healing Arrow
-
Acontecimientos
-
Unidad - A unit Comienza a lanzar una habilidad
-
-
Condiciones
-
(Ability being cast) Igual a Healing Arrow
-
-
Acciones
-
Set HArrow_Caster = (Triggering unit)
-
Set HArrow_Target = (Target unit of ability being cast)
-
-------- ----------------------------------------- --------
-
-------- Setting values for heal/damage --------
-
-------- ----------------------------------------- --------
-
Set HArrow_Damage = (1010.00 + ((Real((Level of Healing Arrow for HArrow_Target))) x 1.00))
-
Set HArrow_Heal = (1010.00 + ((Real((Level of Healing Arrow for HArrow_Target))) x 1.00))
-
-------- ----------------------------------------- --------
-
-------- Executing the Damage/Heal effect on the Target --------
-
-------- ----------------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si: Condiciones
-
(HArrow_Target belongs to an enemy of (Owner of HArrow_Caster)) Igual a True
-
-
Entonces: Acciones
-
Unidad - Cause HArrow_Caster to damage HArrow_Target, dealing HArrow_Damage damage of attack type Héroe and damage type Divino
-
-
Otros: Acciones
-
Unidad - Set life of HArrow_Target to ((Vida of HArrow_Target) + HArrow_Heal)
-
-
-
-------- ----------------------------------------- --------
-
-------- Removing unit leaks --------
-
-------- ----------------------------------------- --------
-
Custom script: set udg_HArrow_Caster = null
-
Custom script: set udg_HArrow_Target = null
-
-