hey,
I made a morph ability based on chemical rage that makes the morphed unit have "flying type" movement for the duration of the morph. I already made a trigger to deal with the morph expiring while over water so instead of just getting stuck in the water the unit dies
but it still can expire while the unit is over a building and then the unit is stuck in the building. haven't figured out how to fix this... thanks!
I made a morph ability based on chemical rage that makes the morphed unit have "flying type" movement for the duration of the morph. I already made a trigger to deal with the morph expiring while over water so instead of just getting stuck in the water the unit dies
-
fall and drown
-
Events
- Time - Every 0.50 seconds of game time
- Conditions
-
Actions
- Set Landing_Tactician = (Units of type Slippery Tactician)
- Unit Group - Pick every unit in Landing_Tactician and do (If ((Terrain pathing at (Position of (Picked unit)) of type Walkability is off) Equal to True) then do (Unit - Explode (Picked unit)) else do (Do nothing))
- Custom script: call DestroyGroup(udg_Landing_Tactician)
-
Events
but it still can expire while the unit is over a building and then the unit is stuck in the building. haven't figured out how to fix this... thanks!