• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Units in the target area heal

Status
Not open for further replies.
Level 6
Joined
Oct 1, 2012
Messages
166
The easiest way:

Let's say your spell does 200 dmg at first level, 300 at second, 400 at third and so on and it has an area of 300.

  • AOE Heal
    • Events
      • Unit - A unit finishes casting a spell
    • Conditions
      • (Ability being cast) equals <<Your AOE spell>>
    • Actions
      • Unit Group - Pick every unit in (Units within 300.00 of (Target point of ability being cast) matching ((Owner of (Matching unit)) equals (Owner of (Casting unit)))) and do (Actions)
        • Loop - Actions
          • Unit - Set life of (Picked unit) to (Life of (Picked unit)) + ((50.00 x (Real((Level of (Ability being cast) for (Casting unit))))) + 100.00))
I know it's better to make udg_TempGroup and the null it, but I'm too lazy with GUI ^^

Hope it helps.
 
Status
Not open for further replies.
Top