P'tarix reads:
Action: Corrupt this unit to reveal a Spell or Epic Spell from your hand and put it on top of your deck.
Xirat'p reads:
Action: Corrupt this unit to reveal the top card of your deck. If you reveal a Spell or Epic Spell tactic, you may play it by spending resources equal to its loyalty. Otherwise, discard it.
Beastman Shaman says:
Action: When a Chaos unit you control is corrupted draw a card.
If I corrupt P'tarix to place a card, when do I activate and carry out Beastman Shaman's effect of drawing a card when a unit is corrupted? Do I draw the top card before or after I place a card on top?
Similarly, what if I corrupt Xirat'p, and activate Beastman Shaman's effect? Can I draw a card before or after I reveal the top card?