[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...!
 
Are you suggesting that it heals both allied and enemy units? Post the entire trigger please :)
 
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...?
 
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.
Back
Top