hearthstone: Fix class and output logic.