2024-06-07The value of X is calculated only once, as Consuming Corruption resolves.
2024-06-07If the target creature or planeswalker is an illegal target as Consuming Corruption tries to resolve, it won't resolve and none of its effects will happen. You won't gain life.