So, here's the preface—I'm making a tech that grants the player invulnerability (via status.addEphemeralEffect("invulnerable", args.dt [this is subject to change])), but I want it to take energy away when the player gets hit. Obviously, recording the amount of health from tick to tick to see if the player has taken damage can be thrown out of the picture, since the player will not be taking damage. I've been looking through the documentation to try and see what I can use, but I just can't find a solution. Is there a separate effect that I should use, or is there some way to do it? I'm open to suggestions.