--Overlay-Knight Caster function c249001200.initial_effect(c) --spsummon proc local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetRange(LOCATION_HAND) e1:SetCondition(c249001200.spcon) c:RegisterEffect(e1) --change level local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1) e2:SetTarget(c249001200.lvtg) e2:SetOperation(c249001200.lvop) c:RegisterEffect(e2) end function c249001200.spcon(e,c) if c==nil then return true end return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0,nil)==0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 end function c249001200.filter(c) return c:IsFaceup() and c:IsLevelAbove(1) end function c249001200.lvtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(c249001200.filter,tp,LOCATION_MZONE,0,1,nil) end end function c249001200.lvop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(c249001200.filter,tp,LOCATION_MZONE,0,nil) local g1=g:Select(tp,1,g:GetCount(),nil) local tc=g1:GetFirst() while tc do local e1=Effect.CreateEffect(e:GetHandler()) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_UPDATE_LEVEL) e1:SetValue(1) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) tc=g1:GetNext() end end