Wisdom-Eye
Pendulum Scale = 5
[ Pendulum Effect ]
If you have a "Magician" or "Performapal" card in your other Pendulum Zone: You can destroy this card, and if you do, place 1 "Magician" Pendulum Monster from your Deck in your Pendulum Zone, except "Wisdom-Eye Magician".
----------------------------------------
[ Monster Effect ]
You can discard this card, then target 1 card in your Pendulum Zone, whose current Pendulum Scale is different from its original Pendulum Scale; its Pendulum Scale becomes its original Pendulum Scale until the end of this turn.
local SETCARD_ID_0 = 0x98 --Magician

local SETCARD_ID_0 = 0x98 --Magician
local s, id, o = GetID()
function s.initial_effect(c)
	--pendulum summon
	aux.EnablePendulumAttribute(c)
	--pendulum set
	local e2 = Effect.CreateEffect(c)
	e2:SetCategory(CATEGORY_DESTROY)
	e2:SetType(EFFECT_TYPE_IGNITION)
	e2:SetRange(LOCATION_PZONE)
	e2:SetCondition(s.pencon)
	e2:SetTarget(s.pentg)
	e2:SetOperation(s.penop)
	c:RegisterEffect(e2)
	--scale
	local e3 = Effect.CreateEffect(c)
	e3:SetDescription(aux.Stringid(id, 1))
	e3:SetType(EFFECT_TYPE_IGNITION)
	e3:SetRange(LOCATION_HAND)
	e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
	e3:SetCost(s.sccost)
	e3:SetTarget(s.sctg)
	e3:SetOperation(s.scop)
	c:RegisterEffect(e3)
end
function s.cfilter(c)
	return c:IsSetCard(SETCARD_ID_0, 0x9f)
end
function s.pencon(e, tp, eg, ep, ev, re, r, rp)
	return Duel.IsExistingMatchingCard(s.cfilter, tp, LOCATION_PZONE, 0, 1, e:GetHandler())
end
function s.penfilter(c)
	return c:IsSetCard(SETCARD_ID_0) and c:IsType(TYPE_PENDULUM) and not c:IsCode(id) and not c:IsForbidden()
end
function s.pentg(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return e:GetHandler():IsDestructable() and Duel.IsExistingMatchingCard(s.penfilter, tp, LOCATION_DECK, 0, 1, nil)
	end
	Duel.SetOperationInfo(0, CATEGORY_DESTROY, e:GetHandler(), 1, 0, 0)
end
function s.penop(e, tp, eg, ep, ev, re, r, rp)
	if Duel.Destroy(e:GetHandler(), REASON_EFFECT) ~= 0 then
		Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TOFIELD)
		local g = Duel.SelectMatchingCard(tp, s.penfilter, tp, LOCATION_DECK, 0, 1, 1, nil)
		local tc = g:GetFirst()
		if tc then
			Duel.MoveToField(tc, tp, tp, LOCATION_PZONE, POS_FACEUP, true)
		end
	end
end
function s.sccost(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return e:GetHandler():IsDiscardable()
	end
	Duel.SendtoGrave(e:GetHandler(), REASON_DISCARD + REASON_COST)
end
function s.scfilter(c)
	return c:GetLeftScale() ~= c:GetOriginalLeftScale()
end
function s.sctg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
	if chkc then
		return chkc:IsLocation(LOCATION_PZONE) and chkc:IsControler(tp) and s.scfilter(chkc)
	end
	if chk == 0 then
		return Duel.IsExistingTarget(s.scfilter, tp, LOCATION_PZONE, 0, 1, nil)
	end
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TARGET)
	Duel.SelectTarget(tp, s.scfilter, tp, LOCATION_PZONE, 0, 1, 1, nil)
end
function s.scop(e, tp, eg, ep, ev, re, r, rp)
	local tc = Duel.GetFirstTarget()
	if tc:IsRelateToEffect(e) then
		local e1 = Effect.CreateEffect(e:GetHandler())
		e1:SetType(EFFECT_TYPE_SINGLE)
		e1:SetCode(EFFECT_CHANGE_LSCALE)
		e1:SetValue(tc:GetOriginalLeftScale())
		e1:SetReset(RESET_EVENT + RESETS_STANDARD + RESET_PHASE + PHASE_END)
		tc:RegisterEffect(e1)
		local e2 = e1:Clone()
		e2:SetCode(EFFECT_CHANGE_RSCALE)
		e2:SetValue(tc:GetOriginalRightScale())
		tc:RegisterEffect(e2)
	end
end


Wisdom-Eye
Pendulum Scale = 5
[ Pendulum Effect ]
If you have a "Magician" or "Performapal" card in your other Pendulum Zone: You can destroy this card, and if you do, place 1 "Magician" Pendulum Monster from your Deck in your Pendulum Zone, except "Wisdom-Eye Magician".
----------------------------------------
[ Monster Effect ]
You can discard this card, then target 1 card in your Pendulum Zone, whose current Pendulum Scale is different from its original Pendulum Scale; its Pendulum Scale becomes its original Pendulum Scale until the end of this turn.
-- Wisdom-Eye
local SETCARD_ID_0 = 0x98 --Magician
local s, id, o = GetID()
function s.initial_effect(c)
	--pendulum summon
	aux.EnablePendulumAttribute(c)
	--pendulum set
	local e2 = Effect.CreateEffect(c)
	e2:SetCategory(CATEGORY_DESTROY)
	e2:SetType(EFFECT_TYPE_IGNITION)
	e2:SetRange(LOCATION_PZONE)
	e2:SetCondition(s.pencon)
	e2:SetTarget(s.pentg)
	e2:SetOperation(s.penop)
	c:RegisterEffect(e2)
	--scale
	local e3 = Effect.CreateEffect(c)
	e3:SetDescription(aux.Stringid(id, 1))
	e3:SetType(EFFECT_TYPE_IGNITION)
	e3:SetRange(LOCATION_HAND)
	e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
	e3:SetCost(s.sccost)
	e3:SetTarget(s.sctg)
	e3:SetOperation(s.scop)
	c:RegisterEffect(e3)
end
function s.cfilter(c)
	return c:IsSetCard(SETCARD_ID_0, 0x9f)
end
function s.pencon(e, tp, eg, ep, ev, re, r, rp)
	return Duel.IsExistingMatchingCard(s.cfilter, tp, LOCATION_PZONE, 0, 1, e:GetHandler())
end
function s.penfilter(c)
	return c:IsSetCard(SETCARD_ID_0) and c:IsType(TYPE_PENDULUM) and not c:IsCode(id) and not c:IsForbidden()
end
function s.pentg(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return e:GetHandler():IsDestructable() and Duel.IsExistingMatchingCard(s.penfilter, tp, LOCATION_DECK, 0, 1, nil)
	end
	Duel.SetOperationInfo(0, CATEGORY_DESTROY, e:GetHandler(), 1, 0, 0)
end
function s.penop(e, tp, eg, ep, ev, re, r, rp)
	if Duel.Destroy(e:GetHandler(), REASON_EFFECT) ~= 0 then
		Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TOFIELD)
		local g = Duel.SelectMatchingCard(tp, s.penfilter, tp, LOCATION_DECK, 0, 1, 1, nil)
		local tc = g:GetFirst()
		if tc then
			Duel.MoveToField(tc, tp, tp, LOCATION_PZONE, POS_FACEUP, true)
		end
	end
end
function s.sccost(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return e:GetHandler():IsDiscardable()
	end
	Duel.SendtoGrave(e:GetHandler(), REASON_DISCARD + REASON_COST)
end
function s.scfilter(c)
	return c:GetLeftScale() ~= c:GetOriginalLeftScale()
end
function s.sctg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
	if chkc then
		return chkc:IsLocation(LOCATION_PZONE) and chkc:IsControler(tp) and s.scfilter(chkc)
	end
	if chk == 0 then
		return Duel.IsExistingTarget(s.scfilter, tp, LOCATION_PZONE, 0, 1, nil)
	end
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TARGET)
	Duel.SelectTarget(tp, s.scfilter, tp, LOCATION_PZONE, 0, 1, 1, nil)
end
function s.scop(e, tp, eg, ep, ev, re, r, rp)
	local tc = Duel.GetFirstTarget()
	if tc:IsRelateToEffect(e) then
		local e1 = Effect.CreateEffect(e:GetHandler())
		e1:SetType(EFFECT_TYPE_SINGLE)
		e1:SetCode(EFFECT_CHANGE_LSCALE)
		e1:SetValue(tc:GetOriginalLeftScale())
		e1:SetReset(RESET_EVENT + RESETS_STANDARD + RESET_PHASE + PHASE_END)
		tc:RegisterEffect(e1)
		local e2 = e1:Clone()
		e2:SetCode(EFFECT_CHANGE_RSCALE)
		e2:SetValue(tc:GetOriginalRightScale())
		tc:RegisterEffect(e2)
	end
end

