def robTileFrom(self, tile): """used for robbing the kong from this player""" PlayingPlayer.robTileFrom(self, tile) tile = tile.exposed hbTiles = self.handBoard.uiTiles lastDiscard = [x for x in hbTiles if x.tile == tile][-1] lastDiscard.tile = lastDiscard.tile.concealed Internal.scene.discardBoard.lastDiscarded = lastDiscard # remove from board of robbed player, otherwise syncHandBoard would # not fix display for the robbed player lastDiscard.setBoard(None) assert lastDiscard.tile.isConcealed self.syncHandBoard()