--Paintress Rembrandia local s,id=GetID() function s.initial_effect(c) --pendulum summon aux.EnablePendulumAttribute(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --indes local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_FIELD) e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e3:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e3:SetRange(LOCATION_PZONE) e3:SetTargetRange(LOCATION_MZONE,0) e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xc50)) e3:SetValue(s.indval) c:RegisterEffect(e3) -- local e5=Effect.CreateEffect(c) e5:SetDescription(aux.Stringid(16100666,0)) e5:SetCategory(CATEGORY_REMOVE) e5:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e5:SetCode(EVENT_SPSUMMON_SUCCESS) e5:SetRange(LOCATION_PZONE) e5:SetProperty(EFFECT_FLAG_CARD_TARGET) e5:SetCountLimit(1,id) e5:SetCondition(s.condition) e5:SetTarget(s.target) e5:SetOperation(s.operation) c:RegisterEffect(e5) end function s.splimit(e,c,sump,sumtype,sumpos,targetp) if c:IsSetCard(0xc50) or c:IsType(TYPE_NORMAL) then return false end return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM end function s.splimcon(e) return not e:GetHandler():IsForbidden() end function s.indval(e,re,tp) return tp~=e:GetHandlerPlayer() end function s.gfilter(c,tp) return c:IsSetCard(0xc50) and c:IsPreviousLocation(LOCATION_EXTRA) and c:GetOwner()==tp end function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.gfilter,1,nil,tp) end function s.filter(c) return c:IsFaceup() and c:IsAbleToRemove() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and s.filter(chkc) end if chk==0 then return Duel.IsExistingTarget(s.filter,tp,0,LOCATION_ONFIELD,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) local g=Duel.SelectTarget(tp,s.filter,tp,0,LOCATION_ONFIELD,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0) end function s.operation(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) or Duel.Destroy(c,REASON_EFFECT)==0 then return end local tc=Duel.GetFirstTarget() if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) end end