zaqer50
TH.net Regular
- Reaction score
- 3
I have a trigger to create an invisible Dummy unit on the ground and then have another unit, created high in the air, to cast chainlightning on it, thus creating the effect of lightning striking from the sky. For some reason though, the trigger is running itself an infinite amount of times (until it uses all your ram and crashes wc3)
I was hoping someone could look at the code and hopefully explain what I've done wrong.
Any help is much appreciated.
I was hoping someone could look at the code and hopefully explain what I've done wrong.
Code:
Ion Strike
Events
Unit - A unit Starts the effect of an ability
Conditions
Actions
Set ION_Caster = (Triggering unit)
Set ION_Target_Loc = (Target point of ability being cast)
-------- LIGHTNING TARGET --------
Unit - Create 1 Dummy2 for (Owner of ION_Caster) at ION_Target_Loc facing Default building facing degrees
Set ION_Target = (Last created unit)
Unit - Pause ION_Target
-------- LIGHTNING SOURCE --------
Unit - Create 1 Dummy for (Owner of ION_Caster) at ION_Target_Loc facing Default building facing degrees
Set ION_Source = (Last created unit)
Unit - Add Crow Form to ION_Source
Animation - Change ION_Source flying height to 1000.00 at 1000000000.00
Unit - Add LightningFX to ION_Source
Unit - Order ION_Source to Orc Far Seer - Chain Lightning ION_Target
Unit - Add a 2.00 second Generic expiration timer to ION_Source
Unit - Add a 2.00 second Generic expiration timer to ION_Target
Any help is much appreciated.