Commit a236f269 authored by tsubaki's avatar tsubaki

2.0.0 fix4

parent dae08c04
Pipeline #39105 passed with stage
in 42 seconds
......@@ -18,6 +18,7 @@ function s.initial_effect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_TO_HAND)
e2:SetCountLimit(1,id+2)
e2:SetCondition(s.spcon2)
......
......@@ -17,6 +17,7 @@ function s.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_TO_HAND)
e2:SetCountLimit(1,id+2)
e2:SetCondition(s.scon2)
......
......@@ -20,11 +20,11 @@ function c26091.cffilter(c)
return c:IsSetCard(0x229,0x306) and not c:IsPublic()
end
function c26091.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c26091.cffilter,tp,LOCATION_HAND,0,1,e:GetHandler())
if chk==0 then return Duel.IsExistingMatchingCard(c26091.cffilter,tp,LOCATION_HAND,0,2,e:GetHandler())
and Duel.GetCustomActivityCount(26091,tp,ACTIVITY_SUMMON)==0
and Duel.GetCustomActivityCount(26091,tp,ACTIVITY_SPSUMMON)==0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local g=Duel.SelectMatchingCard(tp,c26091.cffilter,tp,LOCATION_HAND,0,1,1,e:GetHandler())
local g=Duel.SelectMatchingCard(tp,c26091.cffilter,tp,LOCATION_HAND,0,2,2,e:GetHandler())
Duel.ConfirmCards(1-tp,g)
Duel.ShuffleHand(tp)
local e1=Effect.CreateEffect(e:GetHandler())
......
......@@ -47,25 +47,25 @@ function s.ctop1(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x228b,1)
end
function s.filter1(c)
return c:IsSummonType(SUMMON_TYPE_FUSION) and c:IsType(TYPE_MONSTER)
return c:IsType(SUMMON_TYPE_FUSION) and c:IsType(TYPE_MONSTER)
end
function s.drcon1(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.filter1,1,nil) and rp==tp
end
function s.filter2(c)
return c:IsSummonType(SUMMON_TYPE_RITUAL) and c:IsType(TYPE_MONSTER)
return c:IsType(SUMMON_TYPE_RITUAL) and c:IsType(TYPE_MONSTER)
end
function s.drcon2(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.filter2,1,nil) and rp==tp
end
function s.filter3(c)
return c:IsSummonType(SUMMON_TYPE_LINK) and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x999)
return c:IsType(SUMMON_TYPE_LINK) and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x999)
end
function s.drcon3(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.filter3,1,nil) and rp==tp
end
function s.filter4(c)
return c:IsSummonType(SUMMON_TYPE_XYZ) and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x999)
return c:IsType(SUMMON_TYPE_XYZ) and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x999)
end
function s.drcon4(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.filter4,1,nil) and rp==tp
......
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