- Joined
- Apr 23, 2013
- Messages
- 12
Hello everyone, I'm making a custom map, with custom heroes and abilities, and today I came across a problem with a trigger:
I'm creating a spell that damages an enemy unit, and also heals every friendly units in 500 AoE from the target of the spell for the same amount of damage dealt.
For the single target damage I used chain lightning, removing bounces and animations, then I was thinking for the trigger something like this:
Event : A unit cast a spell
Cond : Spell equal to "myspell"
Actions : Pick every unit |in range X| from |target unit of ability being cast| matching |conditions| and do actions
For the conditions I can't understand how to set: "units that belong to an ally of owner of casting unit"
Can someone explain me how to do a similar thing?
And also, after I set this condition, what is the action I should trigger to heal the picked units for the equal damage dealt to the enemy?
Thank you.
I'm creating a spell that damages an enemy unit, and also heals every friendly units in 500 AoE from the target of the spell for the same amount of damage dealt.
For the single target damage I used chain lightning, removing bounces and animations, then I was thinking for the trigger something like this:
Event : A unit cast a spell
Cond : Spell equal to "myspell"
Actions : Pick every unit |in range X| from |target unit of ability being cast| matching |conditions| and do actions
For the conditions I can't understand how to set: "units that belong to an ally of owner of casting unit"
Can someone explain me how to do a similar thing?
And also, after I set this condition, what is the action I should trigger to heal the picked units for the equal damage dealt to the enemy?
Thank you.