#NEWLINE# def prepare_action( self , source , **_ ) : #NEWLINE# #INDENT# if self . guarded : #NEWLINE# #INDENT# guards = [ guard for guard in source . env . denizens if ( guard . affinity != source . affinity ) ] #NEWLINE# if guards : #NEWLINE# #INDENT# raise ActionError ( guards [ 0 ] . guard_msg . format ( source = guards [ 0 ] . name , exit = self . _dir . desc ) ) #NEWLINE# #UNINDENT# #UNINDENT# source . display_line ( 'You head {}.' . format ( self . _dir . desc ) )