--1 Tuner + 1+ non-Tuner Monsters --If this card is Synchro Summoned: You can target 1 Spell/Trap on the field; Destroy it. --Once per turn: You can target 1 Equip Spell in your GY; Equip it to an appropriate target on --the field, also, this card gains 400 ATK. function c79854533.initial_effect(c) aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1) c:EnableReviveLimit() --destroy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(79854533,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c79854533.descon) e1:SetTarget(c79854533.destg) e1:SetOperation(c79854533.desop) c:RegisterEffect(e1) --equip local e2=Effect.CreateEffect(c) e2:SetCategory(CATEGORY_EQUIP) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1) e2:SetTarget(c79854533.target) e2:SetOperation(c79854533.operation) c:RegisterEffect(e2) end --destroy function c79854533.descon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO end function c79854533.filter(c) return c:IsType(TYPE_SPELL+TYPE_TRAP) end function c79854533.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsOnField() and c79854533.filter(chkc) end if chk==0 then return true end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local g=Duel.SelectTarget(tp,c79854533.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) end function c79854533.desop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end end --equip function c79854533.ecfilter(c) return c:IsType(TYPE_EQUIP) and Duel.IsExistingTarget(c79854533.tcfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil,c) end function c79854533.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return false end if chk==0 then if not Duel.IsExistingTarget(c79854533.ecfilter,tp,LOCATION_GRAVE,0,1,nil) then return false end if e:GetHandler():IsLocation(LOCATION_HAND) then return Duel.GetLocationCount(tp,LOCATION_SZONE)>1 else return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end end Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(25067275,0)) local g=Duel.SelectTarget(tp,c79854533.ecfilter,tp,LOCATION_GRAVE,0,1,1,nil) local ec=g:GetFirst() e:SetLabelObject(ec) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(25067275,1)) Duel.SelectTarget(tp,c79854533.tcfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,ec:GetEquipTarget(),ec) Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,ec,1,0,0) end function c79854533.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end local ec=e:GetLabelObject() local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local tc=g:GetFirst() if tc==ec then tc=g:GetNext() end if ec:IsFaceup() and ec:IsRelateToEffect(e) then if tc:IsFaceup() and tc:IsRelateToEffect(e) then Duel.Equip(tp,ec,tc) end end if tc:IsRelateToEffect(e) then local c=e:GetHandler() local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetValue(400) e1:SetReset(RESET_EVENT+0x1fe0000) c:RegisterEffect(e1) end end