Forum:Ancient fairy dragon brain research lab and prime

If I had Brain Research Lab with 4 counters + Prime Material Dragon + Ancient Fairy Dragon and I activated the effect of AFD to destroy BRL. Will I gain 5000 lp and be able to search out a field card, or will I have missed the timing?