- Joined
- Nov 3, 2013
- Messages
- 989
When the hero attacks with a custom searing arrow a "shadow clone" (basically a copy of the hero) spawns and attacks the same target once as well and is then removed.
It's working but the clone is also meant to be black and transparent which isn't working with wand of illusion because of hard coded wc3 stuff.
I could do it by creating hero clones each time but AFAIK heroes leak so that's no good.
I also thought of having look alike units but the ability is meant for a custom hero map so I'd have to make a unit copy of every hero which isn't that great either.
Is there some way I could either change color and transparity even though it's an illusion or use hero without making it leak?
p.s. no need to mention that it's not going to work with auto cast as it is 
It's working but the clone is also meant to be black and transparent which isn't working with wand of illusion because of hard coded wc3 stuff.
I could do it by creating hero clones each time but AFAIK heroes leak so that's no good.
I also thought of having look alike units but the ability is meant for a custom hero map so I'd have to make a unit copy of every hero which isn't that great either.
Is there some way I could either change color and transparity even though it's an illusion or use hero without making it leak?
-
Abil Shadow Clone Attack 1
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Shadow Clone Attack (Neutral Hostile)
-
-
Actions
-
Custom script: local unit u = GetTriggerUnit()
-
Game - Display to (All players) the text: asdfdgd
-
Set Abil_ShClAt_unit_target = (Target unit of ability being cast)
-
Custom script: set udg_Abil_ShClAt_unit_source = CreateUnit( GetTriggerPlayer(), 'h002', GetUnitX(u), GetUnitY(u), GetUnitFacing(u) )
-
Custom script: call UnitAddAbility( udg_Abil_ShClAt_unit_source, 'A00A' )
-
Custom script: call UnitApplyTimedLifeBJ( 2.00, 'BTLF', udg_Abil_ShClAt_unit_source )
-
Trigger - Turn on Abil Shadow Clone Attack 2 <gen>
-
Custom script: call IssueTargetOrderById( udg_Abil_ShClAt_unit_source, 852274, u )
-
-
-
Abil Shadow Clone Attack 2
-
Events
-
Unit - A unit Spawns a summoned unit
-
-
Conditions
-
(Summoning unit) Equal to Abil_ShClAt_unit_source
-
-
Actions
-
Custom script: local unit u = GetSummonedUnit()
-
Custom script: call IssueTargetOrderBJ( GetSummonedUnit(), "attackonce", udg_Abil_ShClAt_unit_target )
-
Custom script: call UnitAddAbility( u, 'Aloc' )
-
Custom script: call SetUnitVertexColorBJ( u, 0.10, 0.10, 0.10, 0.40 )
-
Trigger - Turn off (This trigger)
-
-