--Galvanizer Lady Sylis function c232005.initial_effect(c) local NoF=Effect.CreateEffect(c) NoF:SetType(EFFECT_TYPE_SINGLE) NoF:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE) NoF:SetCode(EFFECT_CANNOT_BE_FUSION_MATERIAL) NoF:SetValue(function(e,c) if not c then return false end return not c:IsAttribute(ATTRIBUTE_LIGHT) end) c:RegisterEffect(NoF) local NoS=NoF:Clone() NoS:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL) c:RegisterEffect(NoS) local NoX=NoF:Clone() NoX:SetCode(EFFECT_CANNOT_BE_XYZ_MATERIAL) c:RegisterEffect(NoX) local NoL=NoF:Clone() NoL:SetCode(EFFECT_CANNOT_BE_LINK_MATERIAL) c:RegisterEffect(NoL) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(232005,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET) e1:SetCountLimit(1,232005) e1:SetCode(EVENT_DRAW) e1:SetRange(LOCATION_HAND) e1:SetCondition(c232005.spcon1) e1:SetCost(c232005.spcost) e1:SetTarget(c232005.sptg1) e1:SetOperation(c232005.spop1) c:RegisterEffect(e1) end function c232005.spcon1(e,tp,eg,ep,ev,re,r,rp) return eg:IsContains(e:GetHandler()) and Duel.GetCurrentPhase()~=PHASE_DRAW end function c232005.spcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return not e:GetHandler():IsPublic() end end function c232005.sptg1(e,tp,eg,ep,ev,re,r,rp,chk) if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end if chk==0 then return true end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) end function c232005.spop1(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local tc=Duel.GetFirstTarget() if not c:IsRelateToEffect(e) then return end if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0 then if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then Duel.SendtoGrave(c,REASON_RULE) end end