#NEWLINE# def choose_target_inner( self , targets ) : #NEWLINE# #INDENT# if ( len ( targets ) == 0 ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if self . should_target_self ( targets ) : #NEWLINE# #INDENT# return self . choose_target_friendly ( targets ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . choose_target_enemy ( self )