Flagged the type of custom_obj.invincible as an int, rather than a bool - it stores the duration for which the object will be invincible, rather than a lookup of whether it currently is.