class DamageOverTimeTypeHitPrereqCondition extends BaseHitPrereqCondition
{
	var m_dotType : gamedataStatusEffectType;

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

	public override function Evaluate( hitEvent : gameHitEvent ) : Bool
	{
		var result : Bool;
		var attackRecord : Attack_GameEffect_Record;
		var attackTag : CName;
		if( hitEvent.attackData.GetAttackType() == gamedataAttackType.Effect )
		{
			attackRecord = ( ( Attack_GameEffect_Record )( hitEvent.attackData.GetAttackDefinition().GetRecord() ) );
			if( attackRecord )
			{
				attackTag = attackRecord.AttackTag();
			}
			result = ( ( gamedataStatusEffectType )( ( ( Int32 )( EnumValueFromName( 'gamedataStatusEffectType', attackTag ) ) ) ) ) == m_dotType;
			if( result )
			{
				result = CheckOnlyOncePerShot( hitEvent );
			}
			return ( ( m_invert ) ? ( !( result ) ) : ( result ) );
		}
		return false;
	}

}

