A* pathfinding, Re checking nodes

At the moment, I am using the A* Pathing found here

Now, perhaps I am going about this the wrong way, but I set up a new function for closed nodes. Maybe Invalid nodes are the same? I didn’t think they were, but my question is. When choosing closed nodes, and an object moves making one node from open to closed how would I go about updating a single node?

For Example: If a building collapses, I now want to be able to walk over it, instead of around it.

Hi,
Just thinking out loud, maybe the building could have inactive nodes in it (at the crumbled point), and are active when the building is destroyed, or a few seconds after?

Hope that helps!