Use the power of the creature as the triggered ability resolves to determine the value of X. If the creature is no longer on the battlefield at that time, use its power from when it was last on the battlefield.