class DamageTypePrereqState extends GenericHitPrereqState
{

	public override function Evaluate( hitEvent : gameHitEvent ) : Bool
	{
		const var prereq : DamageTypePrereq;
		prereq = ( ( DamageTypePrereq )( GetPrereq() ) );
		return hitEvent.attackComputed.GetAttackValue( prereq.m_damageType ) > 0.0;
	}

}

class DamageTypePrereq extends GenericHitPrereq
{
	var m_damageType : gamedataDamageType;

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

}

