Satellarknight
Pendulum Scale = 1
[ Pendulum Effect ]
You cannot Pendulum Summon monsters, except "tellarknight" and "Zefra" monsters. This effect cannot be negated.
----------------------------------------
[ Monster Effect ]
If this card is Normal, Flip, or Pendulum Summoned: You can target 1 other "tellarknight" or "Zefra" card in your Monster Zone or Pendulum Zone, and 1 face-up card your opponent controls; destroy them. You can only use this effect of "Satellarknight Zefrathuban" once per turn.
local SETCARD_ID_0 = 0x9c --tellarknight

local SETCARD_ID_0 = 0x9c --tellarknight
local s, id, o = GetID()
function s.initial_effect(c)
	--pendulum summon
	aux.EnablePendulumAttribute(c)
	--splimit
	local e2 = Effect.CreateEffect(c)
	e2:SetType(EFFECT_TYPE_FIELD)
	e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
	e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET + EFFECT_FLAG_CANNOT_DISABLE + EFFECT_FLAG_CAN_FORBIDDEN)
	e2:SetRange(LOCATION_PZONE)
	e2:SetTargetRange(1, 0)
	e2:SetTarget(s.splimit)
	c:RegisterEffect(e2)
	--destroy
	local e3 = Effect.CreateEffect(c)
	e3:SetCategory(CATEGORY_DESTROY)
	e3:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_O)
	e3:SetProperty(EFFECT_FLAG_CARD_TARGET + EFFECT_FLAG_DAMAGE_STEP + EFFECT_FLAG_DELAY)
	e3:SetCode(EVENT_SUMMON_SUCCESS)
	e3:SetCountLimit(1, id)
	e3:SetTarget(s.target)
	e3:SetOperation(s.operation)
	c:RegisterEffect(e3)
	local e4 = e3:Clone()
	e4:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
	c:RegisterEffect(e4)
	local e5 = e3:Clone()
	e5:SetCode(EVENT_SPSUMMON_SUCCESS)
	e5:SetCondition(s.condition)
	c:RegisterEffect(e5)
	s.star_knight_summon_effect = e3
end
function s.splimit(e, c, sump, sumtype, sumpos, targetp)
	if c:IsSetCard(SETCARD_ID_0, 0xc4) then
		return false
	end
	return bit.band(sumtype, SUMMON_TYPE_PENDULUM) == SUMMON_TYPE_PENDULUM
end
function s.condition(e, tp, eg, ep, ev, re, r, rp)
	return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM)
end
function s.filter1(c)
	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_0, 0xc4)
end
function s.filter2(c)
	return c:IsFaceup()
end
function s.target(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
	if chkc then
		return false
	end
	if chk == 0 then
		return Duel.IsExistingTarget(s.filter1, tp, LOCATION_MZONE + LOCATION_PZONE, 0, 1, e:GetHandler()) and Duel.IsExistingTarget(s.filter2, tp, 0, LOCATION_ONFIELD, 1, nil)
	end
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
	local g1 = Duel.SelectTarget(tp, s.filter1, tp, LOCATION_MZONE + LOCATION_PZONE, 0, 1, 1, e:GetHandler())
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
	local g2 = Duel.SelectTarget(tp, s.filter2, tp, 0, LOCATION_ONFIELD, 1, 1, nil)
	g1:Merge(g2)
	Duel.SetOperationInfo(0, CATEGORY_DESTROY, g1, 2, 0, 0)
end
function s.operation(e, tp, eg, ep, ev, re, r, rp)
	local g = Duel.GetChainInfo(0, CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect, nil, e)
	if g:GetCount() > 0 then
		Duel.Destroy(g, REASON_EFFECT)
	end
end


Satellarknight
Pendulum Scale = 1
[ Pendulum Effect ]
You cannot Pendulum Summon monsters, except "tellarknight" and "Zefra" monsters. This effect cannot be negated.
----------------------------------------
[ Monster Effect ]
If this card is Normal, Flip, or Pendulum Summoned: You can target 1 other "tellarknight" or "Zefra" card in your Monster Zone or Pendulum Zone, and 1 face-up card your opponent controls; destroy them. You can only use this effect of "Satellarknight Zefrathuban" once per turn.
-- Satellarknight
local SETCARD_ID_0 = 0x9c --tellarknight
local s, id, o = GetID()
function s.initial_effect(c)
	--pendulum summon
	aux.EnablePendulumAttribute(c)
	--splimit
	local e2 = Effect.CreateEffect(c)
	e2:SetType(EFFECT_TYPE_FIELD)
	e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
	e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET + EFFECT_FLAG_CANNOT_DISABLE + EFFECT_FLAG_CAN_FORBIDDEN)
	e2:SetRange(LOCATION_PZONE)
	e2:SetTargetRange(1, 0)
	e2:SetTarget(s.splimit)
	c:RegisterEffect(e2)
	--destroy
	local e3 = Effect.CreateEffect(c)
	e3:SetCategory(CATEGORY_DESTROY)
	e3:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_O)
	e3:SetProperty(EFFECT_FLAG_CARD_TARGET + EFFECT_FLAG_DAMAGE_STEP + EFFECT_FLAG_DELAY)
	e3:SetCode(EVENT_SUMMON_SUCCESS)
	e3:SetCountLimit(1, id)
	e3:SetTarget(s.target)
	e3:SetOperation(s.operation)
	c:RegisterEffect(e3)
	local e4 = e3:Clone()
	e4:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
	c:RegisterEffect(e4)
	local e5 = e3:Clone()
	e5:SetCode(EVENT_SPSUMMON_SUCCESS)
	e5:SetCondition(s.condition)
	c:RegisterEffect(e5)
	s.star_knight_summon_effect = e3
end
function s.splimit(e, c, sump, sumtype, sumpos, targetp)
	if c:IsSetCard(SETCARD_ID_0, 0xc4) then
		return false
	end
	return bit.band(sumtype, SUMMON_TYPE_PENDULUM) == SUMMON_TYPE_PENDULUM
end
function s.condition(e, tp, eg, ep, ev, re, r, rp)
	return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM)
end
function s.filter1(c)
	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_0, 0xc4)
end
function s.filter2(c)
	return c:IsFaceup()
end
function s.target(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
	if chkc then
		return false
	end
	if chk == 0 then
		return Duel.IsExistingTarget(s.filter1, tp, LOCATION_MZONE + LOCATION_PZONE, 0, 1, e:GetHandler()) and Duel.IsExistingTarget(s.filter2, tp, 0, LOCATION_ONFIELD, 1, nil)
	end
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
	local g1 = Duel.SelectTarget(tp, s.filter1, tp, LOCATION_MZONE + LOCATION_PZONE, 0, 1, 1, e:GetHandler())
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
	local g2 = Duel.SelectTarget(tp, s.filter2, tp, 0, LOCATION_ONFIELD, 1, 1, nil)
	g1:Merge(g2)
	Duel.SetOperationInfo(0, CATEGORY_DESTROY, g1, 2, 0, 0)
end
function s.operation(e, tp, eg, ep, ev, re, r, rp)
	local g = Duel.GetChainInfo(0, CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect, nil, e)
	if g:GetCount() > 0 then
		Duel.Destroy(g, REASON_EFFECT)
	end
end

