Hi Hive! can someone help me with my spell, it crashes the game when an illusion is made
-
Juxtapose
-

Events
-


Unit - A unit Is attacked
-
-

Conditions
-


(Attacking unit) Equal to Phantom_Lancer
-


((Attacking unit) is an illusion) Equal to False
-
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Level of Juxtapose for Phantom_Lancer) Equal to 1
-
-



Then - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Custom value of Phantom_Lancer) Less than or equal to 1
-
-





Then - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Random integer number between 1 and 100) Equal to 12
-
-







Then - Actions
-








Set Temp_point[2] = (Position of (Attacking unit))
-








Unit - Create 1 Juxtapose for (Owner of (Attacking unit)) at Temp_point[2] facing Default building facing degrees
-








Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-








Unit - Add Juxtapose illusion to (Last created unit)
-








Unit - Set level of Juxtapose illusion for (Last created unit) to (Level of Juxtapose for Phantom_Lancer)
-








Custom script: call IssueTargetOrderById(bj_lastCreatedUnit, 852274, GetAttacker())
-








Custom script: call RemoveLocation(udg_Temp_point[2])
-








Unit - Set the custom value of Phantom_Lancer to ((Custom value of Phantom_Lancer) + 1)
-
-







Else - Actions
-
-
-





Else - Actions
-
-
-



Else - Actions
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Level of Juxtapose for Phantom_Lancer) Equal to 2
-
-



Then - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Custom value of Phantom_Lancer) Less than or equal to 3
-
-





Then - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Random integer number between 1 and 100) Equal to 12
-
-







Then - Actions
-








Set Temp_point[2] = (Position of (Attacking unit))
-








Unit - Create 1 Juxtapose for (Owner of (Attacking unit)) at Temp_point[2] facing Default building facing degrees
-








Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-








Unit - Add Juxtapose illusion to (Last created unit)
-








Unit - Set level of Juxtapose illusion for (Last created unit) to (Level of Juxtapose for Phantom_Lancer)
-








Custom script: call IssueTargetOrderById(bj_lastCreatedUnit, 852274, GetAttacker())
-








Custom script: call RemoveLocation(udg_Temp_point[2])
-








Unit - Set the custom value of Phantom_Lancer to ((Custom value of Phantom_Lancer) + 1)
-
-







Else - Actions
-
-
-





Else - Actions
-
-
-



Else - Actions
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Level of Juxtapose for Phantom_Lancer) Equal to 3
-
-



Then - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Custom value of Phantom_Lancer) Less than or equal to 5
-
-





Then - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Random integer number between 1 and 100) Equal to 12
-
-







Then - Actions
-








Set Temp_point[2] = (Position of (Attacking unit))
-








Unit - Create 1 Juxtapose for (Owner of (Attacking unit)) at Temp_point[2] facing Default building facing degrees
-








Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-








Unit - Add Juxtapose illusion to (Last created unit)
-








Unit - Set level of Juxtapose illusion for (Last created unit) to (Level of Juxtapose for Phantom_Lancer)
-








Custom script: call IssueTargetOrderById(bj_lastCreatedUnit, 852274, GetAttacker())
-








Custom script: call RemoveLocation(udg_Temp_point[2])
-








Unit - Set the custom value of Phantom_Lancer to ((Custom value of Phantom_Lancer) + 1)
-
-







Else - Actions
-
-
-





Else - Actions
-
-
-



Else - Actions
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Level of Juxtapose for Phantom_Lancer) Equal to 4
-
-



Then - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Custom value of Phantom_Lancer) Less than or equal to 7
-
-





Then - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Random integer number between 1 and 100) Equal to 12
-
-







Then - Actions
-








Set Temp_point[2] = (Position of (Attacking unit))
-








Unit - Create 1 Juxtapose for (Owner of (Attacking unit)) at Temp_point[2] facing Default building facing degrees
-








Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-








Unit - Add Juxtapose illusion to (Last created unit)
-








Unit - Set level of Juxtapose illusion for (Last created unit) to (Level of Juxtapose for Phantom_Lancer)
-








Custom script: call IssueTargetOrderById(bj_lastCreatedUnit, 852274, GetAttacker())
-








Custom script: call RemoveLocation(udg_Temp_point[2])
-








Unit - Set the custom value of Phantom_Lancer to ((Custom value of Phantom_Lancer) + 1)
-
-







Else - Actions
-
-
-





Else - Actions
-
-
-



Else - Actions
-
-
-





