Hello, I've been working with warcraft 3 editor for a few years now, slowly gotten better, learned how to create some new abilities using triggers ect. But now i've run into a problem with an autocasting-Arrow ability not triggering the AOE implemented using triggers. If the ability auto-casts the trigger will not occur, although if I target a unit the trigger will occur. I know why this is happening (Because auto-cast selects the nearest most dangerous target without actually "Player manipulated targetting" per say.
Here is the code for the ability, if anyone knows a way to help please do.
Here is the code for the ability, if anyone knows a way to help please do.
Code:
Actions
Set AbilitiesPointOriginExplodArro[(Player number of (Owner of (Casting unit)))] = ((Target point of ability being cast) offset by (0.00, 0.00))
Set AbilitiesExplodeArrowUnits[(Player number of (Owner of (Casting unit)))] = (Units within 250.00 of AbilitiesPointOriginExplodArro[(Player number of (Owner of (Casting unit)))])
Special Effect - Create a special effect at AbilitiesPointOriginExplodArro[(Player number of (Owner of (Casting unit)))] using Abilities\Spells\Other\Doom\DoomDeath.mdl
Unit Group - Pick every unit in AbilitiesExplodeArrowUnits[(Player number of (Owner of (Casting unit)))] and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Not equal to (Owner of (Casting unit))
Then - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 42.00)
Unit - Wake up (Triggering unit)
Else - Actions