class TriggerModeHitPrereqCondition extends BaseHitPrereqCondition
{
	var m_triggerMode : gamedataTriggerMode;

	public override function SetData( recordID : TweakDBID )
	{
		m_triggerMode = TweakDBInterface.GetTriggerModeRecord( TweakDBInterface.GetForeignKeyDefault( recordID + T".triggerMode" ) ).Type();
		super.SetData( recordID );
	}

	public override function Evaluate( hitEvent : gameHitEvent ) : Bool
	{
		var result : Bool;
		result = true;
		result = hitEvent.attackData.GetTriggerMode() == m_triggerMode;
		return result != m_invert;
	}

}

