Morgan,
When your opponent activates a card or effect, while you control a "Noble Knight" monster and a "Noble Arms" Equip Spell (Quick Effect): You can send this card from your hand to the GY; destroy 1 "Noble Arms" Equip Spell you control, and if you do, negate the activation. You can only use this effect of "Morgan, the Enchantress of Avalon" once per turn.
local SETCARD_ID_0 = 0x207a --Noble
local SETCARD_ID_1 = 0x107a --Noble

local SETCARD_ID_0 = 0x207a --Noble
local SETCARD_ID_1 = 0x107a --Noble
local s, id, o = GetID()
function s.initial_effect(c)
	local e1 = Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(id, 0))
	e1:SetCategory(CATEGORY_NEGATE + CATEGORY_DESTROY)
	e1:SetType(EFFECT_TYPE_QUICK_O)
	e1:SetCode(EVENT_CHAINING)
	e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP + EFFECT_FLAG_DAMAGE_CAL)
	e1:SetRange(LOCATION_HAND)
	e1:SetCountLimit(1, id)
	e1:SetCondition(s.condition)
	e1:SetCost(s.cost)
	e1:SetTarget(s.target)
	e1:SetOperation(s.operation)
	c:RegisterEffect(e1)
end
function s.filter1(c)
	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_1)
end
function s.filter2(c)
	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_1) and c:IsType(TYPE_EQUIP)
end
function s.condition(e, tp, eg, ep, ev, re, r, rp)
	return ep ~= tp and Duel.IsChainNegatable(ev) and Duel.IsExistingMatchingCard(s.filter1, tp, LOCATION_MZONE, 0, 1, nil) and Duel.IsExistingMatchingCard(s.filter2, tp, LOCATION_ONFIELD, 0, 1, nil)
end
function s.cost(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return e:GetHandler():IsAbleToGraveAsCost()
	end
	Duel.SendtoGrave(e:GetHandler(), REASON_COST)
end
function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return true
	end
	local g = Duel.GetMatchingGroup(s.filter2, tp, LOCATION_ONFIELD, 0, nil)
	Duel.SetOperationInfo(0, CATEGORY_NEGATE, eg, 1, 0, 0)
	Duel.SetOperationInfo(0, CATEGORY_DESTROY, g, 1, 0, 0)
end
function s.operation(e, tp, eg, ep, ev, re, r, rp)
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
	local g = Duel.SelectMatchingCard(tp, s.filter2, tp, LOCATION_ONFIELD, 0, 1, 1, nil)
	if #g > 0 and Duel.Destroy(g, REASON_EFFECT) ~= 0 then
		Duel.NegateActivation(ev)
	end
end


Morgan,
When your opponent activates a card or effect, while you control a "Noble Knight" monster and a "Noble Arms" Equip Spell (Quick Effect): You can send this card from your hand to the GY; destroy 1 "Noble Arms" Equip Spell you control, and if you do, negate the activation. You can only use this effect of "Morgan, the Enchantress of Avalon" once per turn.
-- Morgan,
local SETCARD_ID_0 = 0x207a --Noble
local SETCARD_ID_1 = 0x107a --Noble
local s, id, o = GetID()
function s.initial_effect(c)
	local e1 = Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(id, 0))
	e1:SetCategory(CATEGORY_NEGATE + CATEGORY_DESTROY)
	e1:SetType(EFFECT_TYPE_QUICK_O)
	e1:SetCode(EVENT_CHAINING)
	e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP + EFFECT_FLAG_DAMAGE_CAL)
	e1:SetRange(LOCATION_HAND)
	e1:SetCountLimit(1, id)
	e1:SetCondition(s.condition)
	e1:SetCost(s.cost)
	e1:SetTarget(s.target)
	e1:SetOperation(s.operation)
	c:RegisterEffect(e1)
end
function s.filter1(c)
	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_1)
end
function s.filter2(c)
	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_1) and c:IsType(TYPE_EQUIP)
end
function s.condition(e, tp, eg, ep, ev, re, r, rp)
	return ep ~= tp and Duel.IsChainNegatable(ev) and Duel.IsExistingMatchingCard(s.filter1, tp, LOCATION_MZONE, 0, 1, nil) and Duel.IsExistingMatchingCard(s.filter2, tp, LOCATION_ONFIELD, 0, 1, nil)
end
function s.cost(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return e:GetHandler():IsAbleToGraveAsCost()
	end
	Duel.SendtoGrave(e:GetHandler(), REASON_COST)
end
function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return true
	end
	local g = Duel.GetMatchingGroup(s.filter2, tp, LOCATION_ONFIELD, 0, nil)
	Duel.SetOperationInfo(0, CATEGORY_NEGATE, eg, 1, 0, 0)
	Duel.SetOperationInfo(0, CATEGORY_DESTROY, g, 1, 0, 0)
end
function s.operation(e, tp, eg, ep, ev, re, r, rp)
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
	local g = Duel.SelectMatchingCard(tp, s.filter2, tp, LOCATION_ONFIELD, 0, 1, 1, nil)
	if #g > 0 and Duel.Destroy(g, REASON_EFFECT) ~= 0 then
		Duel.NegateActivation(ev)
	end
end

