I don't think its possible....
What I would do is like set a variable to true (turn it to true when the ability is used) and then after say 30 sec (whenever the invis or invul would go away) i would set it to false. However the invis part wouldn't really work if its like wind walk where you can go uninvis when attacking. That thar wood mays ye up fur gude!