Hi, i was tried to make DotA's old reflection skill that
but my triggers i've made, only 1 illusions is untargetable, others arent. I searched some forums and cant find a way to fix it, please help me
Frostmourne Illusion
Events
Unit - A unit enters (Playable map area)
Conditions
Actions
-------- Raise Soul --------
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(((Entering unit) is an illusion) Equal to (==) True) and (((Entering unit) is owned by (Owner of RS_Caster)) Equal to (==) True)
(Unit-type of (Entering unit)) Equal to (==) (Unit-type of RS_Target[RS_customvalue])
Then - Actions
Unit - Add Locust to (Entering unit)
Unit - Add Item MS Bonus (522) to (Entering unit)
Unit - Order (Entering unit) to Attack RS_Target[RS_customvalue]
Else - Actions
[/trigger]
Target the area, creates illusions of picked unit, also illusions are untargetable
but my triggers i've made, only 1 illusions is untargetable, others arent. I searched some forums and cant find a way to fix it, please help me
-
Raise Soul
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to (==) Raise Soul
-
-
Actions
-
Set RS_Caster = (Triggering unit)
-
Set RS_Loc[1] = (Target point of ability being cast)
-
Set RS_Group = (Units within 300.00 of RS_Loc[1] matching ((((Matching unit) is A structure) Not equal to (!=) True) and ((((Matching unit) is alive) Equal to (==) True) and (((Matching unit) belongs to an enemy of (Owner of RS_Caster)) Equal to (==) True))))
-
Unit Group - Pick every unit in RS_Group and do (Actions)
-
Loop - Actions
-
Set RS_customvalue = (Custom value of (Picked unit))
-
Set RS_Target[RS_customvalue] = (Picked unit)
-
Set RS_Loc[2] = (Position of RS_Target[RS_customvalue])
-
Unit - Create 1 Craggy Exterior Dummy for (Owner of RS_Caster) at RS_Loc[2] facing Default building facing (270.0) degrees
-
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
-
Item - Create Raise Soul Item at RS_Loc[2]
-
Hero - Give (Last created item) to (Last created unit)
-
Item - Set charges remaining in (Last created item) to 1
-
Unit - Set level of Raise Soul Illusion for (Last created unit) to (Level of Raise Soul for RS_Caster)
-
Hero - Order (Last created unit) to use (Last created item) on (Picked unit)
-
Custom script: call RemoveLocation(udg_RS_Loc[2])
-
-
-
Custom script: call DestroyGroup(udg_RS_Group)
-
Custom script: call RemoveLocation(udg_RS_Loc[1])
-
-
Frostmourne Illusion
Events
Unit - A unit enters (Playable map area)
Conditions
Actions
-------- Raise Soul --------
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(((Entering unit) is an illusion) Equal to (==) True) and (((Entering unit) is owned by (Owner of RS_Caster)) Equal to (==) True)
(Unit-type of (Entering unit)) Equal to (==) (Unit-type of RS_Target[RS_customvalue])
Then - Actions
Unit - Add Locust to (Entering unit)
Unit - Add Item MS Bonus (522) to (Entering unit)
Unit - Order (Entering unit) to Attack RS_Target[RS_customvalue]
Else - Actions
[/trigger]