• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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