CYBER_Aeon
New Member
- Reaction score
- 11
This is going to drive me insane, guys. I know there's a simple solution to this. I've created a dummy version of Inner Fire, and a Channel spell to target this AOE spell. Below is the trigger to operate it. I've rewritten it a dozen ways, I just cannot figure out why it will only cast the spell on the first unit.
+Rep to whoever can help me sort that mess out. It looks fine to me, but obviously it's not.
Code:
Divine Protection
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Divine Protection (Custom, Cleric)
Actions
Set tmpPoint = (Target point of ability being cast)
Set tmpUnits = (Units within 400.00 of tmpPoint)
Unit Group - Pick every unit in tmpUnits and do (Actions)
Loop - Actions
Set tmpPoint2 = (Position of (Picked unit))
Unit - Create 1 Dummy for (Owner of (Casting unit)) at tmpPoint2 facing Default building facing degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add Divine Protection (Dummy Spell) to (Last created unit)
Unit - Set level of Divine Protection (Dummy Spell) for (Last created unit) to (Level of Divine Protection (Custom, Cleric) for (Casting unit))
Unit - Order (Last created unit) to Human Priest - Inner Fire (Picked unit)
Custom script: call RemoveLocation(udg_tmpPoint2)
Custom script: call DestroyGroup(udg_tmpUnits)
Custom script: call RemoveLocation(udg_tmpPoint)
+Rep to whoever can help me sort that mess out. It looks fine to me, but obviously it's not.