--Chimera Capricorn function c11000521.initial_effect(c) --pendulum summon aux.EnablePendulumAttribute(c) --atk up local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetRange(LOCATION_PZONE) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetTargetRange(LOCATION_MZONE,0) e2:SetTarget(c11000521.atk) e2:SetValue(500) c:RegisterEffect(e2) --def up local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_FIELD) e3:SetRange(LOCATION_PZONE) e3:SetCode(EFFECT_UPDATE_DEFENSE) e3:SetTargetRange(LOCATION_MZONE,0) e3:SetTarget(c11000521.atk) e3:SetValue(500) c:RegisterEffect(e3) --to hand local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(11000521,1)) e4:SetCategory(CATEGORY_TOHAND) e4:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_FIELD) e4:SetProperty(EFFECT_FLAG_CARD_TARGET) e4:SetRange(LOCATION_PZONE) e4:SetCode(EVENT_PHASE+PHASE_END) e4:SetCountLimit(1) e4:SetCondition(c11000521.thcon1) e4:SetTarget(c11000521.thtg1) e4:SetOperation(c11000521.thop1) c:RegisterEffect(e4) --add local e5=Effect.CreateEffect(c) e5:SetDescription(aux.Stringid(11000521,2)) e5:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e5:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e5:SetType(EFFECT_TYPE_IGNITION) e5:SetRange(LOCATION_MZONE) e5:SetCountLimit(1) e5:SetCost(c11000521.thcost2) e5:SetTarget(c11000521.thtg2) e5:SetOperation(c11000521.thop2) c:RegisterEffect(e5) end function c11000521.atk(e,c) return c:IsSetCard(0x11FD) or c:IsSetCard(0x1F3) end function c11000521.thcon1(e,tp,eg,ep,ev,re,r,rp) return Duel.GetTurnPlayer()==tp end function c11000521.thfilter1(c) return (c:IsSetCard(0x1FD) or c:IsSetCard(0x1F3)) and c:IsAbleToHand() end function c11000521.thtg1(e,tp,eg,ep,ev,re,r,rp,chk) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c11000521.thfilter1(chkc) end if chk==0 then return Duel.IsExistingTarget(c11000521.thfilter1,tp,LOCATION_GRAVE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) local g=Duel.SelectTarget(tp,c11000521.thfilter1,tp,LOCATION_GRAVE,0,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) end function c11000521.thop1(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) then Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end end function c11000521.cfilter(c) return c:IsSetCard(0x1FD) and c:IsDiscardable() end function c11000521.thcost2(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(c11000521.cfilter,tp,LOCATION_HAND,0,1,nil) end Duel.DiscardHand(tp,c11000521.cfilter,1,1,REASON_COST+REASON_DISCARD) end function c11000521.thfilter2(c) return c:IsSetCard(0x11FD) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() end function c11000521.thtg2(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(c11000521.thfilter2,tp,LOCATION_DECK,0,1,nil) end Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) end function c11000521.thop2(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local g=Duel.SelectMatchingCard(tp,c11000521.thfilter2,tp,LOCATION_DECK,0,1,1,nil) if g:GetCount()>0 then Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end end