RulingRules Reference 1.7
Can Pepper Potts generate the resources of a card that is currently being spent?
Question
Can Pepper Potts generate the resources of a card that is currently being spent?
Answer
No. Resources are generated simultaneously, meaning the spent card will not be on top of the discard pile at the time Pepper Potts uses her ability.
— Rules Reference 1.7