--Number iC39: Utopia Arcana local s,id=GetID() function s.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,5,3) c:EnableReviveLimit() --disable attack local e1=Effect.CreateEffect(c) e1:Desc(0) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_FIELD|EFFECT_TYPE_TRIGGER_O) e1:SetRange(LOCATION_MZONE) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetCost(aux.DetachSelfCost()) e1:SetCondition(s.ptcon) e1:SetTarget(s.atktg) e1:SetOperation(s.atkop) c:RegisterEffect(e1) --must attack local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetRange(LOCATION_MZONE) e2:SetTargetRange(0,LOCATION_MZONE) e2:SetCode(EFFECT_MUST_ATTACK) e2:SetCondition(s.atkcon) c:RegisterEffect(e2) end s.xyz_number=39 function s.ptcon(e,tp,eg,ep,ev,re,r,rp) local at=Duel.GetAttacker() return at and at:IsControler(1-tp) and at:IsRelateToBattle() end function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end local g=Duel.Group(Card.IsFaceup,tp,LOCATION_MZONE,0,nil) Duel.SetCustomOperationInfo(0,CATEGORY_ATKCHANGE,g,#g,tp,LOCATION_MZONE,300) end function s.atkop(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateAttack() then local c=e:GetHandler() local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,nil) if #g<=0 then return end Duel.BreakEffect() for tc in aux.Next(g) do local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END,2) e1:SetValue(300) tc:RegisterEffect(e1) end end end function s.atkcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():GetOverlayGroup():IsExists(aux.MonsterFilter(Card.IsSetCard,ARCHE_UTOPIA),1,nil) end