So my problem is i wanna add ability ( aura ) to unit if he kill his target with casted ability but i wanna hide this ability like in dota attribute bonus is hidden for some characters here is my triggers
Shadow Dance
Shadow Dance
Events
Unit - A unit Begins channeling an ability
Conditions
(Ability being cast) Equal to Shadow Dance
Actions
Set shadowdance_caster = (Triggering unit)
Set shadowdance_target = (Target unit of ability being cast)
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Unit - Create 1 ShadowDancer_Dummy for (Owner of shadowdance_caster) at (Position of shadowdance_target) facing (Position of shadowdance_target)
Set shadowdance_dummy = (Last created unit)
Animation - Change shadowdance_dummy's vertex coloring to (0.00%, 0.00%, 0.00%) with 0.00% transparency
Animation - Play shadowdance_dummy's attack animation
Unit - Cause shadowdance_caster to damage shadowdance_target, dealing 35.00 damage of attack type Spells and damage type Normal
Wait 0.35 seconds
Custom script: call RemoveUnit(udg_shadowdance_dummy)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Life of shadowdance_target) Less than or equal to 0.00
Then - Actions
Trigger - Run Shadow Dance Bonus <gen> (checking conditions)
Skip remaining actions
Else - Actions
Do nothing