Lucky Shot makes its spell immunity check upon attack begin, instead of attack land. This means, currently:

1. If an attack triggers Lucky Shot, and your target turns spell immune during the animation, it will still get debuffed on attack land.
2. If an attack triggers Lucky Shot while the enemy is already spell immune, but loses the spell immunity before the attack lands, the attack does not debuff the target.