- Joined
- Apr 23, 2013
- Messages
- 12
Hello everyone, I'm working on a custom map these days and I'm trying to create a sort of Priest, that has some spells that heal allies and damage enemies at the same time.
His first spell it's called Darklight Blast, it's supposed to single target an enemy, doing 70/90/110/130 damage and healing friendly units within 350 from the damaged target for the same amount.
So, what I've done: I took lightning bolt, took off bounces and animation, and made it a single target damaging spell, then I triggered this:
Event: A unit starts casting a spell
Cond: Spell is Darklight Blast
Act: Pick every unit (within 350 from target of ability being cast) matching (picked unit belongs to an ally of owner of caster) and do action
Set life of picked unit at ((life of picked unit + ((level of spell x 20)+50))
Now, to me it looks simple, but it does not work, I tried to change the condition when picking units, and I've put to pick units within 350 from target of spell, matching (picked unit belongs to enemy of owner of casting unit = false) But nothing..
The spell deals his damage normally, to a single target, but my units that are close to this target don't get the heals.
Can someone help me?
His first spell it's called Darklight Blast, it's supposed to single target an enemy, doing 70/90/110/130 damage and healing friendly units within 350 from the damaged target for the same amount.
So, what I've done: I took lightning bolt, took off bounces and animation, and made it a single target damaging spell, then I triggered this:
Event: A unit starts casting a spell
Cond: Spell is Darklight Blast
Act: Pick every unit (within 350 from target of ability being cast) matching (picked unit belongs to an ally of owner of caster) and do action
Set life of picked unit at ((life of picked unit + ((level of spell x 20)+50))
Now, to me it looks simple, but it does not work, I tried to change the condition when picking units, and I've put to pick units within 350 from target of spell, matching (picked unit belongs to enemy of owner of casting unit = false) But nothing..
The spell deals his damage normally, to a single target, but my units that are close to this target don't get the heals.
Can someone help me?