• 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.

Healing Spell - Need Help

Status
Not open for further replies.
Level 4
Joined
Oct 24, 2009
Messages
62
I decided to begin spell making. I looked at a tutorial and made my first spell, Holy Orb. Now, what it does is heals everyone for 150 within 400 yard radius. I tested it, works great. My second test, noticed a problem. It also heals enemies! So how would I fix this... I made it so it had a condition with the unit group to only heal allies that belong to the casting unit. It didn't work.

Heres what I have.

  • Holy Orb
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Healing Orb
    • Actions
      • Unit Group - Pick every unit in (Units within 400.00 of (Position of (Casting unit))) and do (Actions)
        • Loop - Actions
          • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 100.00)
          • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Undead\ReplenishHealth\ReplenishHealthCasterOverhead.mdl
          • Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Undead\ReplenishHealth\ReplenishHealthCaster.mdl
What would I need to add to make it so it doesn't heal enemies?
 
Last edited:
Status
Not open for further replies.
Top