B doesn't have standing because they are indirectly harmed? So if I sell a home in an HOA without the HOA covenant on the deed, can the HOA sue? It seems they are also only indirectly harmed.
You would then have violated your contract with the HOA.
I also expect that the city violated their contract with A('s heirs). B still has no standing.