AoE heal trigger not working

Ashcat

Hellooo
Reaction score
68
Okay, so I made this simple healing spell, just target an area and heal all friendlies in it. I took a rain of fire with most everything set to 0 for the spell, then made a healing wave that doesn't bounce for the dummy unit to cast on each unit in the area.

Now when I cast it, all it does is heal one unit in the target area and ignores all the rest

this is the trigger

Code:
Circle of Healing Heal
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Circle of Healing (Holy Priest)
    Actions
        Unit Group - Pick every unit in (Units within (175.00 + (25.00 x (Real((Level of Circle of Healing (Holy Priest) for (Casting unit)))))) of (Target point of ability being cast) matching ((((Matching unit) is alive) Equal to True) and (((Owner of (Matching unit)) is an ally of (Owner of (Cas and do (Actions)
            Loop - Actions
                Unit - Create 1 Dummy Caster for (Owner of (Casting unit)) at (Position of (Picked unit)) facing 0.00 degrees
                Unit - Add Dummy Cast (Circle of Healing Heal) to (Last created unit)
                Unit - Set level of Dummy Cast (Circle of Healing Heal) for (Last created unit) to (Level of Circle of Healing (Holy Priest) for (Casting unit))
                Unit - Order (Last created unit) to Orc Shadow Hunter - Healing Wave (Picked unit)
                Unit - Add a 2.00 second Generic expiration timer to (Last created unit)

If anyone could tell me how to make it work correctly I'd be very appreciative, thanks.
 

the_ideal

user title
Reaction score
61
Well, 175 is a pretty small range, so you might want to test it again with a bigger one.

Also, try "unit starts the effect of an ability," instead of begins casting. (though I don't know why this would help, it's always the event shown in spellmaking tutorials)

I can't see any errors with the code however. The only other help I can offer is to try removing one condition at a time, and seeing if you can get it to work like this... sometimes a small technicality in a condition can mess up the trigger.

Another suggestion: in all my AoE triggers that work, I use "create 1 dummy caster for (owner of (triggering unit)), not casting... but again, I don't see why this would effect the trigger in any way, and it should still work.

In addition, the code leaks (this won't be the cause of your problem, but it will cause a slight lag buildup)... here's a page you should read about memory leaks: http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=27242.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
"Casting unit" tends to disappear in triggers that do their own casting.
Put it in a variable as first action, and replace all of them with that variable.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top