I was wondering how to make a effect dissapear when a mob dies. Im making a ability that summons a cat, and you get invisibility to you and your armour until the cat is killed or someone attacks you. I have made this code and I think it should work, but then I kill the cat and it doesn´t clear me the effect.