parameters: ()
return_statement: return 0
docstring: Determines if specialist requirements have been met.
  
  	Always returns true if the mage is not a specialist.
  	Returns true only if the specialists knows at least one spell from their
  	school.
docstring_summary: Determines if specialist requirements have been met.
docstring_tokens: Determines if specialist requirements have been met .
function: def HasSpecialistSpell ():
  	"""Determines if specialist requirements have been met.
  
  	Always returns true if the mage is not a specialist.
  	Returns true only if the specialists knows at least one spell from their
  	school."""
  
  	# always return true for non-kitted classed
  	if KitMask == 0x4000:
  		return 1
  
  	# return true if we've memorized a school spell of this level
  	for i in range (len (Spells[SpellLevel])):
  		if Spells[SpellLevel][i][1] == 2 and SpellBook[i]:
  			return 1
  
  	# return true if there are no specialist spells of this level
  	SpecialistSpellCount = 0
  	for i in range (len (Spells[SpellLevel])):
  		if Spells[SpellLevel][i][1] == 2:
  			SpecialistSpellCount = 1
  			break
  	if SpecialistSpellCount == 0:
  		return 1
  
  	# no luck
  	return 0
function_tokens: def HasSpecialistSpell ( ) : # always return true for non-kitted classed if KitMask == 0x4000 : return 1 # return true if we've memorized a school spell of this level for i in range ( len ( Spells [ SpellLevel ] ) ) : if Spells [ SpellLevel ] [ i ] [ 1 ] == 2 and SpellBook [ i ] : return 1 # return true if there are no specialist spells of this level SpecialistSpellCount = 0 for i in range ( len ( Spells [ SpellLevel ] ) ) : if Spells [ SpellLevel ] [ i ] [ 1 ] == 2 : SpecialistSpellCount = 1 break if SpecialistSpellCount == 0 : return 1 # no luck return 0