GhosTHunteR
New Member
- Reaction score
- 2
Hello to TheHelper community!
I've been working with WE for a couple of months and I am in an "intermediate" level of triggering, if I can say so. Well, It may seem really simple but I've been working on a trigger enhanced spell that is supposed to SET the mana percentage of the affected units to 40% ( I will be glad if someone explain how to DECREASE the manapoints by 40%) and damage them. The problem is that when I Pick The Unit group within 600 range that are not enemies of the triggering unit it sets everybody's mana to 40% which doesn't satisfy me. I will try to code the trigger and in case I made a mistake somewhere, I will be thankful to the one who corrects my mistake or helps me make this stubborn trigger leakless!
P.S. At this rate I am not working with JASS so please don't advise me using it!
I've been working with WE for a couple of months and I am in an "intermediate" level of triggering, if I can say so. Well, It may seem really simple but I've been working on a trigger enhanced spell that is supposed to SET the mana percentage of the affected units to 40% ( I will be glad if someone explain how to DECREASE the manapoints by 40%) and damage them. The problem is that when I Pick The Unit group within 600 range that are not enemies of the triggering unit it sets everybody's mana to 40% which doesn't satisfy me. I will try to code the trigger and in case I made a mistake somewhere, I will be thankful to the one who corrects my mistake or helps me make this stubborn trigger leakless!
Code:
Arcane Explosion
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Arcane Explosion
Actions
Unit - Create 1 explosion dummy for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Position of (Triggering unit))
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Unit Group - Pick every unit in (Units within 600.00 of (Position of (Triggering unit)) matching (((Picked unit) belongs to an ally of (Owner of (Triggering unit))) Not equal to True)) and do (Actions)
Loop - Actions
Unit - Set mana of (Picked unit) to 40.00%