--Chimera Cat function c11000522.initial_effect(c) --pendulum summon aux.EnablePendulumAttribute(c) --destroy local e2=Effect.CreateEffect(c) e2:SetCategory(CATEGORY_DESTROY) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_PZONE) e2:SetCountLimit(1) e2:SetCondition(c11000522.descon) e2:SetTarget(c11000522.destg) e2:SetOperation(c11000522.desop) c:RegisterEffect(e2) --extra summon local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e3:SetCode(EVENT_SUMMON_SUCCESS) e3:SetOperation(c11000522.sumop) c:RegisterEffect(e3) end function c11000522.descon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(nil,tp,LOCATION_PZONE,0,1,e:GetHandler()) end function c11000522.desfilter(c) return c:IsType(TYPE_MONSTER+TYPE_SPELL+TYPE_TRAP) and c:IsDestructable() end function c11000522.destg(e,tp,eg,ep,ev,re,r,rp,chk) local sc=Duel.GetFirstMatchingCard(nil,tp,LOCATION_PZONE,0,e:GetHandler()) if chk==0 then return sc:IsDestructable() and Duel.IsExistingMatchingCard(c11000522.desfilter,tp,0,LOCATION_ONFIELD,1,nil,nil) end Duel.SetTargetCard(sc) Duel.SetOperationInfo(0,CATEGORY_DESTROY,sc,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,1-tp,LOCATION_ONFIELD) end function c11000522.desop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local tc=Duel.GetFirstTarget() if tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)~=0 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local g=Duel.SelectMatchingCard(tp,c11000522.desfilter,tp,0,LOCATION_ONFIELD,1,1,nil,nil) if g:GetCount()>0 then Duel.Destroy(g,REASON_EFFECT) end end end function c11000522.sumop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetFlagEffect(tp,11000522)~=0 then return end local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_FIELD) e1:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0) e1:SetCode(EFFECT_EXTRA_SUMMON_COUNT) e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x1FD)) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) Duel.RegisterFlagEffect(tp,11000522,RESET_PHASE+PHASE_END,0,1) end