class EffectExecutor_ApplyEffector extends EffectExecutor_Scripted
{
	[ customEditor = "TweakDBGroupInheritance;Effector" ]
	editable var m_effector : TweakDBID;

	public export function Process( ctx : EffectScriptContext, applierCtx : EffectExecutionScriptContext ) : Bool
	{
		var target : weak< GameObject >;
		target = ( ( GameObject )( EffectExecutionScriptContext.GetTarget( applierCtx ) ) );
		if( !( target ) || !( TDBID.IsValid( m_effector ) ) )
		{
			return false;
		}
		GameInstance.GetEffectorSystem( target.GetGame() ).ApplyEffector( target.GetEntityID(), target, m_effector );
		return true;
	}

}

