Dorvast: use an instance variable of the player (for instance a boolean variable named Invincible).
+ If Player is Invincible
+ If player is overlapping monster (or on collission)
----> Do some stuff
Set the boolean variable to true if the player is invincible, and set it to false if it is not.