If the attacking creature or creature that entered the battlefield attacking isn't on the battlefield as the triggered ability resolves, use its mana value from when it was last on the battlefield. (If it's on the battlefield but is no longer attacking, use its current mana value.)