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

[Trigger] Spell Targets

Status
Not open for further replies.
Level 3
Joined
Dec 16, 2008
Messages
24
I'm having a problem with a trigger enhanced spell, Area Heal.
When I activate it it heals all units within effect range...!
No matter how I try I just can't figure out how to set the targets of my Area Heal spell, what should/must do...?
Need help...!
 
Level 11
Joined
Feb 14, 2009
Messages
884
Are you suggesting that it heals both allied and enemy units? Post the entire trigger please :)
 
Level 3
Joined
Dec 16, 2008
Messages
24
Sorry for posting my thread without enough info, actually I'm trying to create Purification of Omniknight of DotA, but after finishing my trigger I found out that my trigger damages both my allied and enemy units. what should I do to fix it only damaging enemy units...?
 
Level 11
Joined
Feb 14, 2009
Messages
884
The trigger's Actions. I hope it works ^^

  • Actions
    • Set CasterLoc = (Position of (Triggering unit))
    • Set EnemyUnits = (Units within 512.00 of (Center of (Playable map area)) matching (((Owner of (Picked unit)) is an enemy of (Owner of (Triggering unit))) Equal to True))
    • Unit Group - Pick every unit in EnemyUnits and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing 100.00 damage of attack type Spells and damage type Normal)
    • Custom script: call DestroyForce(udg_EnemyPlayers)
    • Custom script: call RemoveLocation(udg_CasterLoc)
 
Status
Not open for further replies.
Top