Forerunner of the Coalition

Oracle Text
When Forerunner of the Coalition enters the battlefield, you may search your library for a Pirate card, reveal it, then shuffle your library and put that card on top of it.
Whenever another Pirate enters the battlefield under your control, each opponent loses 1 life.
Card Rulings
1/19/2018 In a Two-Headed Giant game, the last ability of Forerunner of the Coalition causes the opposing team to lose 2 life.
1/19/2018 If an effect refers to a “[subtype] spell” or “[subtype] card,” it refers only to a spell or card that has that subtype. For example, March of the Drowned is a card that benefits Pirates and features Pirates in its illustration, but it isn’t a Pirate card.
If you search for a raid card and draw it next turn, do you cast if before attacking with the forerunner (getting the trigger but not raid) or after attacking with (and likely losing) the forerunner (getting raid but not the trigger).