- Joined
- Jun 26, 2016
- Messages
- 60
I tried to do that by doing dmg only to units that has a buff but the ability isn't fast, and I'm trying to make a cone with travel time that deals dmg based on stats not instant.
Help plss ^^
Help plss ^^
-
Shear Activation
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Shear
-
-
Actions
-
Set VariableSet Shear_Caster = (Triggering unit)
-
Set VariableSet Shear_Owner = (Owner of Shear_Caster)
-
Set VariableSet Shear_Caster_Loc = (Position of Shear_Caster)
-
Unit - Create 1Dummy Shear for Shear_Owner at Shear_Caster_Loc facing (Facing of Shear_Caster) degrees
-
Unit - Set level of Breath of Frost Shear Dummy for (Last created unit) to (Level of Shear for Shear_Caster)
-
Unit - Order (Last created unit) to Neutral - Breath Of Frost((Position of (Last created unit)) offset by 0.00 towards (Facing of (Last created unit)) degrees.)
-
Unit - Add a 0.20 second Generic expiration timer to (Last created unit)
-
Hashtable - Save (Real((Agility of (Triggering unit) (Include bonuses)))) as 0 of 0 in Hashtable_Shear.
-
Hashtable - Save (Real((Level of Shear for (Triggering unit)))) as 1 of 0 in Hashtable_Shear.
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Shear_Hero_Caster is empty) Equal to True
-
-
Then - Actions
-
Trigger - Turn on Shear Activation Damage Copy 2 <gen>
-
-
Else - Actions
-
-
-
-
[/code]
-
[code]Shear Activation Damage Copy 2
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Breath of Frost Shear Dummy
-
-
Actions
-
Set VariableSet Betrayer_Agi = (Load 0 of 0 from Hashtable_Shear.)
-
Set VariableSet Betrayer_Shear_Lvl = (Load 1 of 0 from Hashtable_Shear.)
-
Set VariableSet Shear_Damage_Group = (Units in (Playable map area) matching ((((Matching unit) has buff Shear) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit)).) Equal to True)))
-
Unit Group - Pick every unit in Shear_Damage_Group and do (Actions)
-
Loop - Actions
-
Unit - Cause Shear_Caster to damage (Picked unit), dealing ((Betrayer_Shear_Lvl x (Betrayer_Agi / 2.00)) + (5.00 x ((Life of (Picked unit)) / 100.00))) damage of attack type Spells and damage type Unknown
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Shear_Hero_Caster is empty) Equal to True
-
-
Then - Actions
-
Hashtable - Clear all child hashtables of child (Key (Picked unit).) in Hashtable_Shear.
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
-
-
Last edited: