- Joined
- Jun 27, 2010
- Messages
- 2,707
if a spell is cast on a unit, make that unit invulnerable?
else if ability effect fades make vulnerable?
else if ability effect fades make vulnerable?
You could add the Invulnerable ability to the unit, there's also a GUI action that makes a unit invulnerable.
btw, for buffs there is a simple boolean comparrison, if unit has buff = true
Looks like someone already posted the complex method and you didn't want it stan so I will post exactly what you seem to want. The way your doing it now is bad and uses up un-required RAM. Try to use a way that you don't need so many triggers like the way that is shown in the attachment below. Fyi my other method did work unless you wanted to use purge in your map. Then I am not sure still it was a good method too.