Pyrewild Shaman's last ability triggers only if it's in your graveyard when the creatures deal combat damage to a player. Notably, if Pyrewild Shaman is dealt lethal damage at the same time that a creature you control deals combat damage to a player, Pyrewild Shaman's ability won't trigger.