Implement the “Any damage” event for the character and add a branch based on a boolean that will control the immunity. If the immune bool is set to true it should not carry out any of the damage, if false then do damage.
You can set the bool to change after some time with a timer event.