Galaxy-Eyes
2 LIGHT monsters, including a monster with 2000 or more ATK
If this card is Link Summoned: You can target 1 "Photon" or "Galaxy" monster in your GY; add it to your hand. During your opponent's Main Phase (Quick Effect): You can discard 1 "Photon" card and 1 "Galaxy" card, OR discard 1 "Galaxy-Eyes Photon Dragon", then target 1 Special Summoned monster your opponent controls; destroy it. You can only use each effect of "Galaxy-Eyes Solflare Dragon" once per turn.
local CARD_ID_1 = 93717133 --Galaxy-Eyes Photon Dragon
local SETCARD_ID_0 = 0x7b --Galaxy
local SETCARD_ID_1 = 0x55 --Photon

local CARD_ID_1 = 93717133 --Galaxy-Eyes Photon Dragon
local SETCARD_ID_0 = 0x7b --Galaxy
local SETCARD_ID_1 = 0x55 --Photon
local s, id, o = GetID()
function s.initial_effect(c)
	--link summon
	aux.AddLinkProcedure(c, aux.FilterBoolFunction(Card.IsLinkAttribute, ATTRIBUTE_LIGHT), 2, 2, s.lcheck)
	c:EnableReviveLimit()
	--to hand
	local e1 = Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(id, 0))
	e1:SetCategory(CATEGORY_TOHAND)
	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_O)
	e1:SetCode(EVENT_SPSUMMON_SUCCESS)
	e1:SetProperty(EFFECT_FLAG_CARD_TARGET + EFFECT_FLAG_DELAY)
	e1:SetCountLimit(1, id)
	e1:SetCondition(s.thcon)
	e1:SetTarget(s.thtg)
	e1:SetOperation(s.thop)
	c:RegisterEffect(e1)
	--destroy
	local e2 = Effect.CreateEffect(c)
	e2:SetDescription(aux.Stringid(id, 1))
	e2:SetCategory(CATEGORY_DESTROY)
	e2:SetType(EFFECT_TYPE_QUICK_O)
	e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
	e2:SetCode(EVENT_FREE_CHAIN)
	e2:SetRange(LOCATION_MZONE)
	e2:SetCountLimit(1, id + 1)
	e2:SetHintTiming(0, TIMINGS_CHECK_MONSTER + TIMING_MAIN_END)
	e2:SetCondition(s.descon)
	e2:SetCost(s.descost)
	e2:SetTarget(s.destg)
	e2:SetOperation(s.desop)
	c:RegisterEffect(e2)
end
function s.lcheck(g, lc)
	return g:IsExists(Card.IsAttackAbove, 1, nil, 2000)
end
function s.thcon(e, tp, eg, ep, ev, re, r, rp)
	return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end
function s.thfilter(c)
	return c:IsSetCard(0x55, SETCARD_ID_1) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function s.thtg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
	if chkc then
		return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.thfilter(chkc)
	end
	if chk == 0 then
		return Duel.IsExistingTarget(s.thfilter, tp, LOCATION_GRAVE, 0, 1, nil)
	end
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_ATOHAND)
	local g = Duel.SelectTarget(tp, s.thfilter, tp, LOCATION_GRAVE, 0, 1, 1, nil)
	Duel.SetOperationInfo(0, CATEGORY_TOHAND, g, 1, 0, 0)
end
function s.thop(e, tp, eg, ep, ev, re, r, rp)
	local tc = Duel.GetFirstTarget()
	if tc:IsRelateToEffect(e) then
		Duel.SendtoHand(tc, nil, REASON_EFFECT)
	end
end
function s.descon(e, tp, eg, ep, ev, re, r, rp)
	local ph = Duel.GetCurrentPhase()
	return Duel.GetTurnPlayer() ~= tp and (ph == PHASE_MAIN1 or ph == PHASE_MAIN2)
end
function s.cfilter1(c)
	return c:IsCode(CARD_ID_1) and c:IsDiscardable()
end
function s.cfilter2(c, tp)
	return c:IsSetCard(SETCARD_ID_1) and c:IsDiscardable() and Duel.IsExistingMatchingCard(s.cfilter3, tp, LOCATION_HAND, 0, 1, c)
end
function s.cfilter3(c)
	return c:IsSetCard(SETCARD_ID_1) and c:IsDiscardable()
end
function s.descost(e, tp, eg, ep, ev, re, r, rp, chk)
	local b1 = Duel.IsExistingMatchingCard(s.cfilter1, tp, LOCATION_HAND, 0, 1, nil)
	local b2 = Duel.IsExistingMatchingCard(s.cfilter2, tp, LOCATION_HAND, 0, 1, nil, tp)
	if chk == 0 then
		return b1 or b2
	end
	if b1 and (not b2 or Duel.SelectYesNo(tp, aux.Stringid(id, 2))) then
		Duel.DiscardHand(tp, s.cfilter1, 1, 1, REASON_COST + REASON_DISCARD, nil)
	else
		Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DISCARD)
		local g1 = Duel.SelectMatchingCard(tp, s.cfilter2, tp, LOCATION_HAND, 0, 1, 1, nil, tp)
		Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DISCARD)
		local g2 = Duel.SelectMatchingCard(tp, s.cfilter3, tp, LOCATION_HAND, 0, 1, 1, g1)
		g1:Merge(g2)
		Duel.SendtoGrave(g1, REASON_COST + REASON_DISCARD)
	end
end
function s.destg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
	if chkc then
		return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1 - tp) and chkc:IsSummonType(SUMMON_TYPE_SPECIAL)
	end
	if chk == 0 then
		return Duel.IsExistingTarget(Card.IsSummonType, tp, 0, LOCATION_MZONE, 1, nil, SUMMON_TYPE_SPECIAL)
	end
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
	local g = Duel.SelectTarget(tp, Card.IsSummonType, tp, 0, LOCATION_MZONE, 1, 1, nil, SUMMON_TYPE_SPECIAL)
	Duel.SetOperationInfo(0, CATEGORY_DESTROY, g, 1, 0, 0)
end
function s.desop(e, tp, eg, ep, ev, re, r, rp)
	local tc = Duel.GetFirstTarget()
	if tc:IsRelateToEffect(e) then
		Duel.Destroy(tc, REASON_EFFECT)
	end
end


Galaxy-Eyes
2 LIGHT monsters, including a monster with 2000 or more ATK
If this card is Link Summoned: You can target 1 "Photon" or "Galaxy" monster in your GY; add it to your hand. During your opponent's Main Phase (Quick Effect): You can discard 1 "Photon" card and 1 "Galaxy" card, OR discard 1 "Galaxy-Eyes Photon Dragon", then target 1 Special Summoned monster your opponent controls; destroy it. You can only use each effect of "Galaxy-Eyes Solflare Dragon" once per turn.
-- Galaxy-Eyes
local CARD_ID_1 = 93717133 --Galaxy-Eyes Photon Dragon
local SETCARD_ID_0 = 0x7b --Galaxy
local SETCARD_ID_1 = 0x55 --Photon
local s, id, o = GetID()
function s.initial_effect(c)
	--link summon
	aux.AddLinkProcedure(c, aux.FilterBoolFunction(Card.IsLinkAttribute, ATTRIBUTE_LIGHT), 2, 2, s.lcheck)
	c:EnableReviveLimit()
	--to hand
	local e1 = Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(id, 0))
	e1:SetCategory(CATEGORY_TOHAND)
	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_O)
	e1:SetCode(EVENT_SPSUMMON_SUCCESS)
	e1:SetProperty(EFFECT_FLAG_CARD_TARGET + EFFECT_FLAG_DELAY)
	e1:SetCountLimit(1, id)
	e1:SetCondition(s.thcon)
	e1:SetTarget(s.thtg)
	e1:SetOperation(s.thop)
	c:RegisterEffect(e1)
	--destroy
	local e2 = Effect.CreateEffect(c)
	e2:SetDescription(aux.Stringid(id, 1))
	e2:SetCategory(CATEGORY_DESTROY)
	e2:SetType(EFFECT_TYPE_QUICK_O)
	e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
	e2:SetCode(EVENT_FREE_CHAIN)
	e2:SetRange(LOCATION_MZONE)
	e2:SetCountLimit(1, id + 1)
	e2:SetHintTiming(0, TIMINGS_CHECK_MONSTER + TIMING_MAIN_END)
	e2:SetCondition(s.descon)
	e2:SetCost(s.descost)
	e2:SetTarget(s.destg)
	e2:SetOperation(s.desop)
	c:RegisterEffect(e2)
end
function s.lcheck(g, lc)
	return g:IsExists(Card.IsAttackAbove, 1, nil, 2000)
end
function s.thcon(e, tp, eg, ep, ev, re, r, rp)
	return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end
function s.thfilter(c)
	return c:IsSetCard(0x55, SETCARD_ID_1) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function s.thtg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
	if chkc then
		return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.thfilter(chkc)
	end
	if chk == 0 then
		return Duel.IsExistingTarget(s.thfilter, tp, LOCATION_GRAVE, 0, 1, nil)
	end
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_ATOHAND)
	local g = Duel.SelectTarget(tp, s.thfilter, tp, LOCATION_GRAVE, 0, 1, 1, nil)
	Duel.SetOperationInfo(0, CATEGORY_TOHAND, g, 1, 0, 0)
end
function s.thop(e, tp, eg, ep, ev, re, r, rp)
	local tc = Duel.GetFirstTarget()
	if tc:IsRelateToEffect(e) then
		Duel.SendtoHand(tc, nil, REASON_EFFECT)
	end
end
function s.descon(e, tp, eg, ep, ev, re, r, rp)
	local ph = Duel.GetCurrentPhase()
	return Duel.GetTurnPlayer() ~= tp and (ph == PHASE_MAIN1 or ph == PHASE_MAIN2)
end
function s.cfilter1(c)
	return c:IsCode(CARD_ID_1) and c:IsDiscardable()
end
function s.cfilter2(c, tp)
	return c:IsSetCard(SETCARD_ID_1) and c:IsDiscardable() and Duel.IsExistingMatchingCard(s.cfilter3, tp, LOCATION_HAND, 0, 1, c)
end
function s.cfilter3(c)
	return c:IsSetCard(SETCARD_ID_1) and c:IsDiscardable()
end
function s.descost(e, tp, eg, ep, ev, re, r, rp, chk)
	local b1 = Duel.IsExistingMatchingCard(s.cfilter1, tp, LOCATION_HAND, 0, 1, nil)
	local b2 = Duel.IsExistingMatchingCard(s.cfilter2, tp, LOCATION_HAND, 0, 1, nil, tp)
	if chk == 0 then
		return b1 or b2
	end
	if b1 and (not b2 or Duel.SelectYesNo(tp, aux.Stringid(id, 2))) then
		Duel.DiscardHand(tp, s.cfilter1, 1, 1, REASON_COST + REASON_DISCARD, nil)
	else
		Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DISCARD)
		local g1 = Duel.SelectMatchingCard(tp, s.cfilter2, tp, LOCATION_HAND, 0, 1, 1, nil, tp)
		Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DISCARD)
		local g2 = Duel.SelectMatchingCard(tp, s.cfilter3, tp, LOCATION_HAND, 0, 1, 1, g1)
		g1:Merge(g2)
		Duel.SendtoGrave(g1, REASON_COST + REASON_DISCARD)
	end
end
function s.destg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
	if chkc then
		return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1 - tp) and chkc:IsSummonType(SUMMON_TYPE_SPECIAL)
	end
	if chk == 0 then
		return Duel.IsExistingTarget(Card.IsSummonType, tp, 0, LOCATION_MZONE, 1, nil, SUMMON_TYPE_SPECIAL)
	end
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
	local g = Duel.SelectTarget(tp, Card.IsSummonType, tp, 0, LOCATION_MZONE, 1, 1, nil, SUMMON_TYPE_SPECIAL)
	Duel.SetOperationInfo(0, CATEGORY_DESTROY, g, 1, 0, 0)
end
function s.desop(e, tp, eg, ep, ev, re, r, rp)
	local tc = Duel.GetFirstTarget()
	if tc:IsRelateToEffect(e) then
		Duel.Destroy(tc, REASON_EFFECT)
	end
end

