class SelfHitPrereqCondition extends BaseHitPrereqCondition
{

	public override function SetData( recordID : TweakDBID )
	{
		super.SetData( recordID );
		m_invert = TweakDBInterface.GetBool( recordID + T".invert", false );
	}

	public override function Evaluate( hitEvent : gameHitEvent ) : Bool
	{
		if( m_invert )
		{
			return hitEvent.attackData.GetInstigator() != hitEvent.target;
		}
		return hitEvent.attackData.GetInstigator() == hitEvent.target;
	}

}

