Hello. I'm living a problem with an ability. If i shoot the ability more than one other arrows stops moving. Here is my the triggers. And yea i know they leak. I'm gonna take care of them later.
Any help is appreciated. Regards.
Code:
shot
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Shot
Actions
Set Shot_Damage = 100.00
Set Shot_Caster = (Casting unit)
Set Shot_Caster_Point = (Position of Shot_Caster)
Set Shot_Target_Point = (Target point of ability being cast)
Set Shot_Angle = (Angle from Shot_Caster_Point to Shot_Target_Point)
Set Shot_Array = 1.00
Unit - Create 1 dummyarrow for Neutral Passive at Shot_Caster_Point facing Shot_Angle degrees
Set Shot_Arrow = (Last created unit)
Unit - Add a 6.00 second Generic expiration timer to Shot_Arrow
Countdown Timer - Start Shot_Timer as a One-shot timer that will expire in 0.01 seconds
Trigger - Add to shotdmg <gen> the event (Unit - A unit comes within 32.00 of Shot_Arrow)
Code:
shotmove
Events
Time - Shot_Timer expires
Time - Every 0.01 seconds of game time
Conditions
Actions
Set Shot_Loc = (Shot_Caster_Point offset by Shot_Array towards Shot_Angle degrees)
Unit - Move Shot_Arrow instantly to Shot_Loc
Set Shot_Array = (Shot_Array + 15.00)
Any help is appreciated. Regards.