- Joined
- Aug 8, 2011
- Messages
- 297
What can be wrong with this Trigger ? Monlight Shadow Mirana Spell from Dota. Sometimes the heroes dont Debuff the Invis spell that Mirana Spell grants for 7-12 seconds. "Heroes Running around constant invisible if they dont shoot on units, when they stop shooting, invisible will come back again"...
Here is the triggers:
Here is the triggers:
-
Moonlight Shadow
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Moonlight Shadow
-
Actions
- Set MoonlightShadow_Counts = (MoonlightShadow_Counts + 1)
- Set MoonlightShadow_Caster[MoonlightShadow_Counts] = (Casting unit)
- Set MoonlightShadow_Duration[1] = 7.00
- Set MoonlightShadow_Duration[2] = 9.00
- Set MoonlightShadow_Duration[3] = 11.00
- Set MoonlightShadow_Point[3] = (Position of MoonlightShadow_Caster[MoonlightShadow_Counts])
- Unit - Create 1 Dummy for (Owner of MoonlightShadow_Caster[MoonlightShadow_Counts]) at MoonlightShadow_Point[3] facing Default building facing degrees
- Unit - Set the custom value of (Last created unit) to MoonlightShadow_Counts
- Unit - Add a MoonlightShadow_Duration[(Level of Moonlight Shadow for MoonlightShadow_Caster[MoonlightShadow_Counts])] second Generic expiration timer to (Last created unit)
- Unit Group - Add (Last created unit) to MoonlightShadow_TimeGroup
- Set MoonlightShadow_UnitGroup = (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an ally of (Owner of MoonlightShadow_Caster[MoonlightShadow_Counts])) Equal to True))))
-
Unit Group - Pick every unit in MoonlightShadow_UnitGroup and do (Actions)
-
Loop - Actions
- Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Human\Invisibility\InvisibilityTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Unit Group - Add (Picked unit) to MoonlightShadow_InvisibleGroup
- Set MoonlightShadow_Point[1] = (Position of (Picked unit))
- Unit - Create 1 Dummy for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
- Unit - Add Moonlight Shadow Dummy to (Last created unit)
- Unit - Set level of Moonlight Shadow Dummy for (Last created unit) to (Level of Moonlight Shadow for MoonlightShadow_Caster[MoonlightShadow_Counts])
- Unit - Order (Last created unit) to Human Sorceress - Invisibility (Picked unit)
- Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_MoonlightShadow_Point[1])
-
Loop - Actions
- Custom script: call DestroyGroup (udg_MoonlightShadow_UnitGroup)
- Custom script: call RemoveLocation (udg_MoonlightShadow_Point[3])
- Trigger - Turn on Moonlight Shadow Effects <gen>
-
Events
-
Moonlight Shadow Effects
-
Events
- Time - Every 0.10 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in MoonlightShadow_InvisibleGroup and do (Actions)
-
Loop - Actions
- Set MoonlightShadow_PickedUnit = (Picked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Moonlight Shadow ) Not equal to True
-
Then - Actions
- Set MoonlightShadow_Point[2] = (Position of MoonlightShadow_PickedUnit)
- Unit - Create 1 Dummy for (Owner of MoonlightShadow_Caster[MoonlightShadow_CustomValue]) at MoonlightShadow_Point[2] facing Default building facing degrees
- Unit - Add Moonlight Shadow Dummy to (Last created unit)
- Unit - Set level of Moonlight Shadow Dummy for (Last created unit) to (Level of Moonlight Shadow for MoonlightShadow_Caster[MoonlightShadow_CustomValue])
- Unit - Order (Last created unit) to Human Sorceress - Invisibility (Picked unit)
- Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_MoonlightShadow_Point[2])
- Else - Actions
-
If - Conditions
-
Unit Group - Pick every unit in MoonlightShadow_TimeGroup and do (Actions)
-
Loop - Actions
- Set MoonlightShadow_CustomValue = (Custom value of (Picked unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) is dead) Equal to True
-
Then - Actions
- Unit - Remove Moonlight Shadow buff from MoonlightShadow_PickedUnit
- Unit Group - Remove MoonlightShadow_PickedUnit from MoonlightShadow_InvisibleGroup
- Unit Group - Remove (Picked unit) from MoonlightShadow_TimeGroup
- Else - Actions
-
If - Conditions
-
Loop - Actions
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in MoonlightShadow_InvisibleGroup) Equal to 0
-
Then - Actions
- Trigger - Turn off (This trigger)
- Else - Actions
-
If - Conditions
-
Unit Group - Pick every unit in MoonlightShadow_InvisibleGroup and do (Actions)
-
Events