--Shya Twins function c11000535.initial_effect(c) --atklimit local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_DIRECT_ATTACK) c:RegisterEffect(e1) --Negate local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(11000535,0)) e3:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY) e3:SetType(EFFECT_TYPE_QUICK_O) e3:SetCode(EVENT_CHAINING) e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e3:SetRange(LOCATION_GRAVE) e3:SetCountLimit(1,11000535) e3:SetCondition(c11000535.condition) e3:SetCost(c11000535.cost) e3:SetTarget(c11000535.target) e3:SetOperation(c11000535.operation) c:RegisterEffect(e3) end function c11000535.cfilter(c) return c:IsSetCard(0x1fd) and c:IsType(TYPE_MONSTER) and not c:IsCode(11000535) end function c11000535.condition(e,tp,eg,ep,ev,re,r,rp) if ep==tp or e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) then return false end return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and Duel.IsChainNegatable(ev) and Duel.IsExistingMatchingCard(c11000535.cfilter,tp,LOCATION_GRAVE,0,1,nil) end function c11000535.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST) end function c11000535.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0) if re:GetHandler():IsDestructable() and re:GetHandler():IsRelateToEffect(re) then Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0) end end function c11000535.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end end