Hey so i want to make a skill where when the hero does the skill he will gain another abiltiy but only when he is vanished. I can add the skill to the hero but i cant remove it. and im guessing theres a leak when its checking for the buff, but i dont know exactly whats wrong. any help would be appreciated!
-
Vanish
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Vanish
-
Actions
- -------- -----Setup----- --------
- Set V_Caster = (Triggering unit)
- Set V_Owner = (Owner of V_Caster)
- Set V_Dummy = VanishDummy
- Set V_Ability_Lvl = (Level of Vanish for V_Caster)
- Set V_Dummy_Skill = VanishDummy
- -------- -----Vanish----- --------
- Unit - Create 1 V_Dummy for V_Owner at (Position of V_Caster) facing Default building facing degrees
- Unit - Add V_Dummy_Skill to (Last created unit)
- Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
- Unit - Set level of V_Dummy_Skill for (Last created unit) to V_Ability_Lvl
- Unit - Order (Last created unit) to Human Sorceress - Invisibility V_Caster
- -------- ------SFX------ --------
- Special Effect - Create a special effect attached to the origin of V_Caster using Objects\Spawnmodels\Undead\ImpaleTargetDust\ImpaleTargetDust.mdl
- Special Effect - Destroy (Last created special effect)
- -------- ------VenomDust------- --------
- Unit - Add Venom Dust to V_Caster
- Unit - Set level of Venom Dust for V_Caster to V_Ability_Lvl
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (V_Caster has buff Vanish. ) Equal to False
-
Then - Actions
- Unit - Remove Venom Dust from V_Caster
-
Else - Actions
- Do nothing
-
If - Conditions
-
Events