Gold Cloaks killed -> discard pile anyway?

By Laconda, in Rules Questions

Hi,

if I get Gold Cloaks into game by ambush and they get killed before the end of the phase, are they transferred from the deadpile to the discard pile? Or not, because already out of the play area?

Greetings,

Laconda

"When a phase ends during which Gold Cloaks entered play using ambush, discard it from play."

According to the Rule Reference, the dead pile is not "in play", so Gold Cloaks may not be discarded.

Also, when a card leaves play, all lasting effects on it end.