class DamageTypeHitPrereqCondition extends BaseHitPrereqCondition
{
	var m_damageType : gamedataDamageType;

	public override function SetData( recordID : TweakDBID )
	{
		var str : String;
		str = TweakDBInterface.GetString( recordID + T".damageType", "" );
		m_damageType = ( ( gamedataDamageType )( ( ( Int32 )( EnumValueFromString( "gamedataDamageType", str ) ) ) ) );
		super.SetData( recordID );
	}

	public override function Evaluate( hitEvent : gameHitEvent ) : Bool
	{
		var result : Bool;
		result = hitEvent.attackComputed.GetAttackValue( m_damageType ) > 0.0;
		if( result )
		{
			result = CheckOnlyOncePerShot( hitEvent );
		}
		return ( ( m_invert ) ? ( !( result ) ) : ( result ) );
	}

}

