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.
What would I need to add to make it so it doesn't heal enemies.
Heres what I have.
Trigger:
- 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
- Loop - Actions
- Unit Group - Pick every unit in (Units within 400.00 of (Position of (Casting unit))) and do (Actions)
- Events
What would I need to add to make it so it doesn't heal enemies.