--Hybrid Control Panel function c11000232.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --cannot disable summon local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_CANNOT_DISABLE_SUMMON) e2:SetRange(LOCATION_FZONE) e2:SetProperty(EFFECT_FLAG_IGNORE_RANGE+EFFECT_FLAG_SET_AVAILABLE) e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x1FA)) c:RegisterEffect(e2) local e3=e2:Clone() e3:SetCode(EFFECT_CANNOT_DISABLE_SPSUMMON) c:RegisterEffect(e3) local e4=e2:Clone() e4:SetCode(EFFECT_CANNOT_DISABLE_FLIP_SUMMON) c:RegisterEffect(e4) --Recover local e5=Effect.CreateEffect(c) e5:SetDescription(aux.Stringid(11000232,0)) e5:SetCategory(CATEGORY_TOHAND) e5:SetType(EFFECT_TYPE_IGNITION) e5:SetRange(LOCATION_ONFIELD) e5:SetCountLimit(1) e5:SetTarget(c11000232.rectg) e5:SetOperation(c11000232.recop) c:RegisterEffect(e5) --Destroy Replace local e6=Effect.CreateEffect(c) e6:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD) e6:SetCode(EFFECT_DESTROY_REPLACE) e6:SetRange(LOCATION_FZONE) e6:SetCountLimit(1,11000232) e6:SetTarget(c11000232.reptg) e6:SetValue(c11000232.repval) e6:SetOperation(c11000232.repop) c:RegisterEffect(e6) end function c11000232.recfilter(c,tp) return c:IsSetCard(0x1FA) and c:IsType(TYPE_MONSTER) end function c11000232.rectg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(c11000232.recfilter,tp,LOCATION_GRAVE,0,1,nil) end Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE) end function c11000232.recop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local g=Duel.SelectMatchingCard(tp,c11000232.recfilter,tp,LOCATION_GRAVE,0,1,1,nil) if g:GetCount()>0 then Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end end function c11000232.handfilter(c) return c:IsType(TYPE_MONSTER+TYPE_SPELL+TYPE_TRAP) end function c11000232.filter(c,tp) return c:IsFaceup() and c:IsControler(tp) and c:IsOnField() and c:IsSetCard(0x1FA) and not c:IsReason(REASON_REPLACE) and (c:IsReason(REASON_BATTLE) or (c:GetReasonPlayer()~=tp and c:IsReason(REASON_EFFECT))) and c:IsType(TYPE_MONSTER) end function c11000232.drfil(c,eg) return not eg:IsContains(c) and c:IsFaceup() and c:IsSetCard(0x1FA) and not c:IsStatus(STATUS_DESTROY_CONFIRMED+STATUS_BATTLE_DESTROYED) end function c11000232.reptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return eg:IsExists(c11000232.filter,1,nil,tp) and Duel.IsExistingMatchingCard(c11000232.drfil,tp,LOCATION_ONFIELD,0,1,nil,eg) end if Duel.SelectYesNo(tp,aux.Stringid(11000232,0)) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE) local g=Duel.SelectMatchingCard(tp,c11000232.handfilter,tp,LOCATION_HAND,0,1,1,nil) e:SetLabelObject(g:GetFirst()) Duel.HintSelection(g) g:GetFirst():SetStatus(STATUS_DESTROY_CONFIRMED,true) return true else return false end end function c11000232.repval(e,c) return c11000232.filter(c,e:GetHandlerPlayer()) end function c11000232.repop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() tc:SetStatus(STATUS_DESTROY_CONFIRMED,false) Duel.SendtoGrave(tc,REASON_EFFECT+REASON_REPLACE) end