Hi all,
I really dont know why this trigger dont work - I tried to find some tips here but couldnt find some. Please help me, maybe its just a little thing that i don know
What do I want:
If someone cast the spell monsun, then specific units should not get damage from that spell. Others should get attacked.
Now the problem is, that the spell monsun is AOE spell and it has a duration. It makes flashes for amount of time on the castet area if a unit is inside.
And because of that I cant use "Unit-type of (Target unit of ability being cast)) because it cant find a target unit....Im gettin crazy
With this trigger its working indeed, but only one time. It means, when the first flash comes out the specific units dont get damage. But when the 0.2sec are over and the next flash comes, the units get of course damaged:
Event
Unit - A unit start to cast ability
Condition
(Ability being cast) equal monsun
Action
Unitgroup - Pick every unit in (Units of type soldier) and do (Unit - Make(Picked unit) Invulnerable)
Wait 0.20 seconds
Unitgroup - Pick every unit in (Units of type soldier) and do (Unit - Make(Picked unit) Vulnerable)
Thanks really for every help!!!!
Edit:
Ok now I tried another way. With this trigger the specific units get not damage, but the problem is that they stay all the time invulnerable... please can someone tell me how to fix this? They only should get for 0.2 sec invulnerable when the flash wants to hit them:
Unit - A unit start to cast ability
Condition
(Ability being cast) equal monsun
Action
Set TargetPoint = (Target point of ability being cast)
Set UnitGroup = (Units within 300.00 of TargetPoint)
Unitgroup - Pick every unit in (UnitGroup) and do (Actions)
Loop
IF (Unit type of(Picked Unit) equal soldier
Then
Unitgroup - Pick every unit in (UnitGroup) and do (Unit - Make(Picked unit) Invulnerable)
Wait 0.20 sec
Unitgroup - Pick every unit in (UnitGroup) and do (Unit - Make(Picked unit) Vulnerable)
Else
Do nothing
Custom script: call RemoveLocation(udg_TargetPoint)
Custom script: call DestroyGroup(udg_UnitGroup)
I really dont know why this trigger dont work - I tried to find some tips here but couldnt find some. Please help me, maybe its just a little thing that i don know
What do I want:
If someone cast the spell monsun, then specific units should not get damage from that spell. Others should get attacked.
Now the problem is, that the spell monsun is AOE spell and it has a duration. It makes flashes for amount of time on the castet area if a unit is inside.
And because of that I cant use "Unit-type of (Target unit of ability being cast)) because it cant find a target unit....Im gettin crazy
With this trigger its working indeed, but only one time. It means, when the first flash comes out the specific units dont get damage. But when the 0.2sec are over and the next flash comes, the units get of course damaged:
Event
Unit - A unit start to cast ability
Condition
(Ability being cast) equal monsun
Action
Unitgroup - Pick every unit in (Units of type soldier) and do (Unit - Make(Picked unit) Invulnerable)
Wait 0.20 seconds
Unitgroup - Pick every unit in (Units of type soldier) and do (Unit - Make(Picked unit) Vulnerable)
Thanks really for every help!!!!
Edit:
Ok now I tried another way. With this trigger the specific units get not damage, but the problem is that they stay all the time invulnerable... please can someone tell me how to fix this? They only should get for 0.2 sec invulnerable when the flash wants to hit them:
Unit - A unit start to cast ability
Condition
(Ability being cast) equal monsun
Action
Set TargetPoint = (Target point of ability being cast)
Set UnitGroup = (Units within 300.00 of TargetPoint)
Unitgroup - Pick every unit in (UnitGroup) and do (Actions)
Loop
IF (Unit type of(Picked Unit) equal soldier
Then
Unitgroup - Pick every unit in (UnitGroup) and do (Unit - Make(Picked unit) Invulnerable)
Wait 0.20 sec
Unitgroup - Pick every unit in (UnitGroup) and do (Unit - Make(Picked unit) Vulnerable)
Else
Do nothing
Custom script: call RemoveLocation(udg_TargetPoint)
Custom script: call DestroyGroup(udg_UnitGroup)
Last edited: