Code:
[B]Code:[/B]
Blink Strike
Events
Unit - A unit Ability starts work
Conditions
(Ability being cast) = Blink Strike
Actions
Set BSCaster[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
Set BSTarget[(Player number of (Owner of (Triggering unit)))] = (Target unit of ability being cast)
Set BSCastLoc[(Player number of (Owner of (Triggering unit)))] = (Position of BSCaster[(Player number of (Triggering player))])
Set BSTargLoc[(Player number of (Owner of (Triggering unit)))] = (Position of BSTarget[(Player number of (Owner of (Triggering unit)))])
Set BSDamageReal[(Player number of (Owner of (Triggering unit)))] = (75.00 x (Real((Level of Blink Strike for BSCaster[(Player number of (Owner of (Triggering unit)))]))))
Wait 0.27 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(BSTarget[(Player number of (Owner of (Triggering unit)))] belongs to an enemy of (Owner of BSCaster[(Player number of (Owner of (Triggering unit)))])) = se TRUE
Then - action
Unit - Cause BSCaster[(Player number of (Owner of (Triggering unit)))] to damage BSTarget[(Player number of (Owner of (Triggering unit)))], dealing BSDamageReal[(Player number of (Owner of (Triggering unit)))] damage of attack type Hero and damage type Normal
Else - action
Do nothing
Special efekt - Create a special effect at BSCastLoc[(Player number of (Owner of (Triggering unit)))] using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
Special efekt - Destroy (Last created special effect)
Unit - Move BSCaster[(Player number of (Owner of (Triggering unit)))] instantly to BSTargLoc[(Player number of (Owner of (Triggering unit)))]
Set BSCastLoc[(Player number of (Owner of (Triggering unit)))] = (Position of BSCaster[(Player number of (Triggering player))])
Special efekt - Create a special effect at BSCastLoc[(Player number of (Owner of (Triggering unit)))] using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
Special efekt - Destroy (Last created special effect)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(BSTarget[(Player number of (Owner of (Triggering unit)))] belongs to an enemy of (Owner of BSCaster[(Player number of (Owner of (Triggering unit)))])) = se TRUE
Then - Action
Unit - Order BSCaster[(Player number of (Owner of (Triggering unit)))] to Attack BSTarget[(Player number of (Owner of (Triggering unit)))]
Then - Action
Do nothing
Custom script: call RemoveLocation(udg_BSCastLoc[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
Custom script: call RemoveLocation(udg_BSTargLoc[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
Spell is created from cripple...
I don't know why it is still summoning avatar (wardens ultimate). I am reading it about half hour, but I don't see what is bad.
Some parts are translated from my language.