I'm making a map where units can walk on water. Added the amphibious movement type, no problem. Problem is that i have a spell that works on land only and not on water, and i want it to work on both, land and water. So here is the spell:
Spell made from Wind Walk ability that makes you invisible for 5 seconds. Also has a trigger:
1. From land to land
(Remember that my spell moves the caster a bit in front of him so, we's on land and after he casts the spell he will also be on land)
- Spell works fine, no problems
2. From land to water
- The caster is trapped above the water and cannot move, but can cast spells and attack. After the 5 seconds of invisibility have passed he becomes visible and can move normaly.. i mean stepping on water.
3. From water to land
- no proble, works fine
4. From water to water
- the caster is moved to the nearest tile of land. He is not placed where he is supposed to be after casting the spell.
More, when a unit has Wind Walk ability it cannot step on water, even if it Amphibious.
So..if anyone can help i want just one way to solve this, either one from below:
a) fix it so that the unit can still move on water even with the Wind Walk buff and still be invisible
b) make somehow that when the unit is on water it should become visible right away after casting the spell (i tryed this, it didn't work though)
Spell made from Wind Walk ability that makes you invisible for 5 seconds. Also has a trigger:
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Condition
-
(Ability being cast) Equal to Substitution
-
-
Actions
-
Unit - Create 1 Log for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
-
Unit - Add a 5.00 seconds Generic expiration timer to (last created unit)
-
Special Effect - Create a special effect at (Position of (Casting unit)) using Abilities\Spells\Orc\MirrorImage\MirrorImageDeathCaster.mdl
-
Unit - Move (Casting unit) instantly to (Position of (Casting unit) offset by 600.00 towards (Facing of (Casting unit) degrees)
-
1. From land to land
(Remember that my spell moves the caster a bit in front of him so, we's on land and after he casts the spell he will also be on land)
- Spell works fine, no problems
2. From land to water
- The caster is trapped above the water and cannot move, but can cast spells and attack. After the 5 seconds of invisibility have passed he becomes visible and can move normaly.. i mean stepping on water.
3. From water to land
- no proble, works fine
4. From water to water
- the caster is moved to the nearest tile of land. He is not placed where he is supposed to be after casting the spell.
More, when a unit has Wind Walk ability it cannot step on water, even if it Amphibious.
So..if anyone can help i want just one way to solve this, either one from below:
a) fix it so that the unit can still move on water even with the Wind Walk buff and still be invisible
b) make somehow that when the unit is on water it should become visible right away after casting the spell (i tryed this, it didn't work though)