--Sands KhaZix function c11000133.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(11000133,0)) e1:SetCountLimit(1,11000133+EFFECT_COUNT_CODE_OATH) e1:SetCategory(CATEGORY_REMOVE) e1:SetType(EFFECT_TYPE_TRIGGER_F+EFFECT_TYPE_SINGLE) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCost(c11000133.cost) e1:SetTarget(c11000133.target) e1:SetOperation(c11000133.operation) c:RegisterEffect(e1) local e2=e1:Clone() e2:SetCode(EVENT_SPSUMMON_SUCCESS) c:RegisterEffect(e2) end function c11000133.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,e:GetHandler()) end Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD) end function c11000133.filter(c) return c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:IsAbleToRemove() end function c11000133.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_GRAVE+LOCATION_EXTRA) and chkc:IsAbleToRemove() end if chk==0 then return Duel.IsExistingTarget(c11000133.filter,tp,0,LOCATION_GRAVE+LOCATION_EXTRA,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) local g=Duel.SelectTarget(tp,c11000133.filter,tp,0,LOCATION_GRAVE+LOCATION_EXTRA,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0) end function c11000133.operation(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if tc:IsRelateToEffect(e) then Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) end end