Galdiuz
Creator of Photon Command
- Reaction score
- 98
I have a unit with an ability based of barrage. I want each attack of that unit have a chance to cast a frost nova, but how can i make this trigger run? I have made a trigger, but it doesn't work. So what event should i use?
I'm just using firebolt for now, haven't made the frostnova yet.
Code:
Rapid Tower
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacking unit)) Equal to Rapid Tower
Actions
Set Atemp_loc = (Position of (Attacked unit))
Unit - Create 1 Caster Dummy for (Owner of (Attacking unit)) at Atemp_loc facing Default building facing (270.0) degrees
Custom script: call RemoveLocation (udg_Atemp_loc)
Unit - Order (Last created unit) to Neutral - Firebolt (Attacked unit)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)