Forum:Magical hats + geartown

If I activate magical hats and look for 2 geartowns, do they miss the timing when they're destroyed by an attack or when they're destroyed at the end phase like magical hats says? I don't think they do but just want to make sure as everyone I played today weren't to sure about this. Thanks