I made a spell which works when there is only only one of them being cast at a time and need help making it MUI
The spell uses two triggers
1st trigger
Shoot
Events
Unit - A unit Starts the effect of an ability
Conditions
Or - Any (Conditions) are true
Conditions
(Ability being cast) Equal to Shoot
(Ability being cast) Equal to Lightning Shot
(Ability being cast) Equal to Flaming Shot
(Ability being cast) Equal to Earth Shot
(Ability being cast) Equal to Icy Shot
Actions
Animation - Play (Triggering unit)'s attack animation
Set Shoot_Caster = (Triggering unit)
Set ShootCaster_Loc = (Position of Shoot_Caster)
Set ShootTarget_Loc = (Target point of ability being cast)
Set ShootAngle = (Angle from ShootCaster_Loc to ShootTarget_Loc)
Unit - Create 1 Arrow for (Owner of Shoot_Caster) at ((Position of Shoot_Caster) offset by 0.00 towards ShootAngle degrees) facing ShootAngle degrees
Set Arrow = (Last created unit)
Trigger - Turn on Arrow Move <gen>
If ((Ability being cast) Equal to Earth Shot ) then do (Trigger - Turn on Earth Shot <gen>) else do (Do nothing)
If ((Ability being cast) Equal to Icy Shot ) then do (Trigger - Turn on Icy Shot <gen>) else do (Do nothing)
If ((Ability being cast) Equal to Icy Shot ) then do (Trigger - Turn on Lightning Shot <gen>) else do (Do nothing)
2nd trigger
Arrow Move
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Unit - Move Arrow instantly to ((Position of Arrow) offset by 10.00 towards ShootAngle degrees), facing ShootAngle degrees
Unit - Turn collision for Arrow Off
Wait 0.90 game-time seconds
Unit - Remove Arrow from the game
Trigger - Turn off (This trigger)
+rep for those that help
The spell uses two triggers
1st trigger
Shoot
Events
Unit - A unit Starts the effect of an ability
Conditions
Or - Any (Conditions) are true
Conditions
(Ability being cast) Equal to Shoot
(Ability being cast) Equal to Lightning Shot
(Ability being cast) Equal to Flaming Shot
(Ability being cast) Equal to Earth Shot
(Ability being cast) Equal to Icy Shot
Actions
Animation - Play (Triggering unit)'s attack animation
Set Shoot_Caster = (Triggering unit)
Set ShootCaster_Loc = (Position of Shoot_Caster)
Set ShootTarget_Loc = (Target point of ability being cast)
Set ShootAngle = (Angle from ShootCaster_Loc to ShootTarget_Loc)
Unit - Create 1 Arrow for (Owner of Shoot_Caster) at ((Position of Shoot_Caster) offset by 0.00 towards ShootAngle degrees) facing ShootAngle degrees
Set Arrow = (Last created unit)
Trigger - Turn on Arrow Move <gen>
If ((Ability being cast) Equal to Earth Shot ) then do (Trigger - Turn on Earth Shot <gen>) else do (Do nothing)
If ((Ability being cast) Equal to Icy Shot ) then do (Trigger - Turn on Icy Shot <gen>) else do (Do nothing)
If ((Ability being cast) Equal to Icy Shot ) then do (Trigger - Turn on Lightning Shot <gen>) else do (Do nothing)
2nd trigger
Arrow Move
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Unit - Move Arrow instantly to ((Position of Arrow) offset by 10.00 towards ShootAngle degrees), facing ShootAngle degrees
Unit - Turn collision for Arrow Off
Wait 0.90 game-time seconds
Unit - Remove Arrow from the game
Trigger - Turn off (This trigger)
+rep for those that help