It has an ability with auto-cast range 3. If an enemy unit come within range 3, the ability is activated and launches a projectile at the enemy.
The ability ALSO has casting range 9. Which means that a player can take manual control of the trap-ability and launch a projectile vs a target further away.
Here comes the problem:
If an enemy unit with a ranged attack shoots at the trap from maybe range 5, the trap all of a sudden auto-launches its projectile at the attacking unit!
But it should not be able to do that since the auto-cast is only range 3!
t kinda is as if the trap has a built-in-super-defence-system that reacts in self defence... O_o
Any idea how to make the trap ONLY auto-launch at enemy units within range 3?
Edit: In case anyone wanna take a look, I attach my mod as a seperate file since it is over 10 MB.
The "trap" is called Null Ward. A unit called Sentinel can summon them. The ability who attacks enemy units is called Sphere and can be found on the Null ward.
I have a "trap" on the map.
It has an ability with auto-cast range 3. If an enemy unit come within range 3, the ability is activated and launches a projectile at the enemy.
The ability ALSO has casting range 9. Which means that a player can take manual control of the trap-ability and launch a projectile vs a target further away.
Here comes the problem:
If an enemy unit with a ranged attack shoots at the trap from maybe range 5, the trap all of a sudden auto-launches its projectile at the attacking unit! But it should not be able to do that since the auto-cast is only range 3! t kinda is as if the trap has a built-in-super-defence-system that reacts in self defence... O_o
Any idea how to make the trap ONLY auto-launch at enemy units within range 3?
Edit: In case anyone wanna take a look, I attach my mod as a seperate file since it is over 10 MB.
The "trap" is called Null Ward. A unit called Sentinel can summon them. The ability who attacks enemy units is called Sphere and can be found on the Null ward.
Add an autocast validator to the ability.
The validator you want is called "Location range".
Set location+ to "target unit", compare to "less than or equal to", and range to "3".
Are you sure that you are using "Null Ward" because that unit doesn't seem to be used (right click -> "used by" has only actors)?
The "Null Ward (Sphere)" unit has an ability that has an autocast range of 5. It would fit to your description.
@TyaStarcraft
Ah, thank you! This solved it!
@Ahli634
You are right. Bad information by me. It is indeed the Null Ward (Sphere) - unit who is the one. (I have another old unit called Null ward too.)