From my understanding, they would gain the resistance after taking that damage for the first time. A free action is not an interrupt, and the trigger is taking the damage, which I would interpret as taking it fully without resistance.
This way, the first attack will be at full power, but the...