Commit 7d41b634 authored by TanakaKotoha's avatar TanakaKotoha

rover

parent 3099146f
...@@ -4,6 +4,7 @@ function c33310159.initial_effect(c) ...@@ -4,6 +4,7 @@ function c33310159.initial_effect(c)
aux.AddXyzProcedure(c,aux.TRUE,5,2) aux.AddXyzProcedure(c,aux.TRUE,5,2)
--linmo --linmo
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
...@@ -23,16 +24,14 @@ function c33310159.initial_effect(c) ...@@ -23,16 +24,14 @@ function c33310159.initial_effect(c)
c33310159[c]=e1 c33310159[c]=e1
end end
function c33310159.ltg(e,tp,eg,ep,ev,re,r,rp,chk) function c33310159.ltg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_GRAVE+LOCATION_HAND,0,1,nil,0x55b) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,0,LOCATION_GRAVE)
end end
function c33310159.lop(e,tp,eg,ep,ev,re,r,rp) function c33310159.lop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,2,nil)
if c:IsRelateToEffect(e) and c:IsFaceup() then
local g=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_GRAVE+LOCATION_HAND,0,1,1,nil,0x55b)
if g then if g then
Duel.HintSelection(g) Duel.HintSelection(g)
Duel.Overlay(c,g) Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
end
end end
end end
...@@ -79,7 +78,7 @@ function c33310159.eftg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -79,7 +78,7 @@ function c33310159.eftg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
if e:GetLabel()==0 then return false end if e:GetLabel()==0 then return false end
e:SetLabel(0) e:SetLabel(0)
return og:IsExists(c33310159.filter,tp,1,nil,e,tp,eg,ep,ev,re,r,rp) return og:IsExists(c33310159.filter,1,nil,e,tp,eg,ep,ev,re,r,rp)
end end
local tc=og:FilterSelect(tp,c33310159.filter,1,1,nil,e,tp,eg,ep,ev,re,r,rp):GetFirst() local tc=og:FilterSelect(tp,c33310159.filter,1,1,nil,e,tp,eg,ep,ev,re,r,rp):GetFirst()
Duel.SendtoGrave(tc,REASON_COST) Duel.SendtoGrave(tc,REASON_COST)
......
...@@ -87,9 +87,6 @@ function c81010041.initial_effect(c) ...@@ -87,9 +87,6 @@ function c81010041.initial_effect(c)
local ec=ea:Clone() local ec=ea:Clone()
ec:SetCode(EFFECT_CANNOT_SUMMON) ec:SetCode(EFFECT_CANNOT_SUMMON)
c:RegisterEffect(ec) c:RegisterEffect(ec)
local ed=ea:Clone()
ed:SetCode(EFFECT_CANNOT_MSET)
c:RegisterEffect(ed)
end end
function c81010041.desfilter(c) function c81010041.desfilter(c)
return c:IsType(TYPE_EFFECT) and c:IsAbleToRemove() return c:IsType(TYPE_EFFECT) and c:IsAbleToRemove()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment