--Dark Matter Hippogriff local s,id,o=GetID() function s.initial_effect(c) c:EnableReviveLimit() aux.AddOrigBigbangType(c) aux.AddBigbangProc(c,Card.IsNeutral,1,1,aux.NOT(Card.IsNeutral),1) --Once per turn, if a card(s) you control is destroyed by an opponent's card effect while you control this monster: You can banish 1 random card from your opponent's hand. local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) e1:SetCategory(CATEGORY_REMOVE) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_DESTROYED) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetCondition(s.handrmcon) e1:SetTarget(s.handrmtg) e1:SetOperation(s.handrmop) c:RegisterEffect(e1) --If this card is Special Summoned, or if another monster(s) is Special Summoned: You can apply 1 of these effects (but you cannot apply that same effect of "Dark Matter Hippogriff" again this turn). --● Banish 1 card from your opponent's GY". --● Banish 1 card your opponent controls. --● Inflict 1000 damage to your opponent. local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,5)) e2:SetCategory(CATEGORY_DAMAGE+CATEGORY_REMOVE+CATEGORY_GRAVE_ACTION) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetRange(LOCATION_MZONE) e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetProperty(EFFECT_FLAG_DELAY) --e2:SetCondition(s.effcon) e2:SetTarget(s.efftg) e2:SetOperation(s.effop) c:RegisterEffect(e2) end function s.cfilter(c,tp) return c:IsPreviousControler(tp) and c:GetReasonPlayer()==1-tp and c:IsReason(REASON_EFFECT) and c:IsPreviousLocation(LOCATION_ONFIELD) end function s.handrmcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) and not eg:IsContains(e:GetHandler()) end function s.handrmtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_HAND,1,nil) end Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_HAND) end function s.handrmop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_HAND,nil) if g:GetCount()>0 then local sg=g:RandomSelect(tp,1) Duel.Remove(sg,POS_FACEUP,REASON_EFFECT) end end function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk) local b1=Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,nil) and Duel.GetFlagEffect(tp,id)==0 local b2=Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,nil) and Duel.GetFlagEffect(tp,id+1)==0 local b3=Duel.GetFlagEffect(tp,id+2)==0 if chk==0 then return b1 or b2 or b3 end end function s.effop(e,tp,eg,ep,ev,re,r,rp) local b1=Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,nil) and Duel.GetFlagEffect(tp,id)==0 local b2=Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,nil) and Duel.GetFlagEffect(tp,id+1)==0 local b3=Duel.GetFlagEffect(tp,id+2)==0 local opt=aux.Option(tp,id,1,b1,b2,b3) if opt==0 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) local g=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,1,nil) local tc=g:GetFirst() if tc then Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) end Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1) elseif opt==1 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) local g=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,1,nil) if g:GetCount()>0 then Duel.HintSelection(g) Duel.Remove(g,POS_FACEUP,REASON_EFFECT) end Duel.RegisterFlagEffect(tp,id+1,RESET_PHASE+PHASE_END,0,1) else Duel.Damage(1-tp,1000,REASON_EFFECT) Duel.RegisterFlagEffect(tp,id+2,RESET_PHASE+PHASE_END,0,1) end end