Raider from Pyke says: Each Weapon card in your hand gains ambush (X). X is that card's printed cost.
Pinch of Powder is a Weapon attachment with -- cost, but it has Shadow(1).
From rules on Shadow cards with -- cost: "Such a card cannot be marshaled or played from a player’s hand, and may only be played by being brought out of shadows. Such a card has no printed cost. If an ability references the printed cost of that card, a null value is returned."
Questions:
1) Is a null value equivalent to 0, when X targets it? So does Pinch of Powder gain Ambush (0)?
2) If so, assuming I have a Raider from Pyke in play, Can I ambush in Pinch of Powder for 0 Gold? Or does 'such a card cannot be ... played from a player's hand, and may only be played by being brought out of Shadows', prevent Pinch of Powder from being ambushed in?