I try to make a spell, which grants the abilty to "go through" units like Wind Walk. There is a similiar spell in DotA, I think, but the problem is that everytime the person, who has the abilty activated, casts a spell or uses a item, the ability would vanish like WW.
And it would take to much effort to create an completely new spell now.
Therefore I tried to make it with triggers, but I failed..
Is it possible to code a spell with a dynamic duration? Upon activation a buff with the effect should be placed on the hero and a dummy unit should be summoned. This dummy unit check every 0,15s, whether the hero still has the buff or not. If not, the dummy unit cast a new buff with the rest duration on it.
And it would take to much effort to create an completely new spell now.
Therefore I tried to make it with triggers, but I failed..
Is it possible to code a spell with a dynamic duration? Upon activation a buff with the effect should be placed on the hero and a dummy unit should be summoned. This dummy unit check every 0,15s, whether the hero still has the buff or not. If not, the dummy unit cast a new buff with the rest duration on it.