--Sweetiehard Evasion local cid,id=GetID() function cid.initial_effect(c) --remove local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_REMOVE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCountLimit(1,id) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(cid.target) e1:SetOperation(cid.operation) c:RegisterEffect(e1) end function cid.filter(c) return c:IsAbleToRemove() and c:IsSetCard(0xa34) end function cid.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and cid.filter(chkc) end if chk==0 then return Duel.IsExistingTarget(cid.filter,tp,LOCATION_MZONE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) local g=Duel.SelectTarget(tp,cid.filter,tp,LOCATION_MZONE,0,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0) end function cid.operation(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local tc=Duel.GetFirstTarget() if tc:IsRelateToEffect(e) then if Duel.Remove(tc,0,REASON_EFFECT+REASON_TEMPORARY)>0 and tc:IsLocation(LOCATION_REMOVED) then tc:RegisterFlagEffect(id,RESET_EVENT+0x1fe0000,0,1) --bring back local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetCost(aux.bfgcost) e2:SetRange(LOCATION_GRAVE) e2:SetCondition(cid.retcon) e2:SetOperation(cid.retop) e2:SetLabelObject(tc) c:RegisterEffect(e2) end end end function cid.retcon(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() return tc and tc:GetFlagEffect(id)>0 end function cid.retop(e,tp,eg,ep,ev,re,r,rp) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local tc=e:GetLabelObject() Duel.ReturnToField(tc) end