An ability that triggers when a creature becomes the target of an ability resolves before the ability that caused it to trigger. It resolves even if that ability is countered or if the creature is no longer a legal target.