if( checkWpItem( source ) ) pSource = getWpItem( source ); else if( checkWpChar( source ) ) pSource = getWpChar( source );
if (source != Py_None) { PyConvertObject(source, &pSource); }
static PyObject* wpChar_damage( wpChar* self, PyObject* args ){	if( self->pChar->free )		return PyFalse;	int type, amount;	PyObject *source = 0;		if( !PyArg_ParseTuple( args, "ii|O:char.damage( type, amount, source )", &type, &amount, &source ) )		return 0;	cUObject *pSource = 0;	if( checkWpItem( source ) )		pSource = getWpItem( source );	else if( checkWpChar( source ) )		pSource = getWpChar( source );	return PyInt_FromLong( self->pChar->damage( (eDamageType)type, amount, pSource ) );}