Commit 87d4041a authored by Tachibana's avatar Tachibana

ybb

parent d06b3907
Pipeline #10849 passed with stages
in 20 minutes and 13 seconds
......@@ -34,7 +34,7 @@ function cm.costfilter(c)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
if Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_SZONE,0,1,e:GetHandler()) and Duel.IsExistingMatchingCard(cm.filter1,tp,LOCATION_DECK,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(12035000,0)) then
if Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_SZONE,0,1,e:GetHandler()) and Duel.IsExistingMatchingCard(cm.filter1,tp,LOCATION_DECK,0,1,nil,e,tp) and Duel.SelectYesNo(tp,aux.Stringid(12035000,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectMatchingCard(tp,cm.costfilter,tp,LOCATION_SZONE,0,1,1,e:GetHandler())
Duel.Release(g,REASON_EFFECT)
......
......@@ -22,7 +22,7 @@ function c12051021.initial_effect(c)
e31:SetRange(LOCATION_MZONE)
e31:SetCode(EVENT_SPSUMMON_SUCCESS)
e31:SetProperty(EFFECT_FLAG_DELAY)
e31:SetCountLimit(1,12051023)
e31:SetCountLimit(1,12051021)
e31:SetCondition(c12051021.rmcon)
e31:SetTarget(c12051021.target2)
e31:SetOperation(c12051021.activate2)
......@@ -58,7 +58,7 @@ function c12051021.filters(c,e,tp)
end
function c12051021.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>2
and Duel.IsExistingMatchingCard(c12051021.filters,tp,LOCATION_HAND,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(c12051021.filters,tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(c12051021.filters,tp,LOCATION_REMOVED,0,1,nil,e,tp) and not Duel.IsPlayerAffectedByEffect(tp,59822133) end
and Duel.IsExistingMatchingCard(c12051021.filters,tp,LOCATION_DECK,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(c12051021.filters,tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(c12051021.filters,tp,LOCATION_REMOVED,0,1,nil,e,tp) and not Duel.IsPlayerAffectedByEffect(tp,59822133) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
function c12051021.activate2(e,tp,eg,ep,ev,re,r,rp)
......@@ -66,7 +66,7 @@ function c12051021.activate2(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=2 then return end
if Duel.IsPlayerAffectedByEffect(tp,59822133) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g1=Duel.SelectMatchingCard(tp,c12051021.filters,tp,LOCATION_HAND,0,1,1,nil,e,tp)
local g1=Duel.SelectMatchingCard(tp,c12051021.filters,tp,LOCATION_DECK,0,1,1,nil,e,tp)
local g2=Duel.SelectMatchingCard(tp,c12051021.filters,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
g1:Merge(g2)
local g3=Duel.SelectMatchingCard(tp,c12051021.filters,tp,LOCATION_REMOVED,0,1,1,nil,e,tp)
......@@ -80,16 +80,16 @@ function c12051021.activate2(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummonComplete()
end
end
function c12051021.thfilter(c)
function c12051021.thfilter1(c)
return c:GetSequence()<5 and c:IsAbleToHand()
end
function c12051021.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local ct=Duel.GetMatchingGroupCount(c12051021.thfilter1,tp,LOCATION_MZONE,0,nil)
if chk==0 then return ct>0 and Duel.IsExistingMatchingCard(c12051021.thfilter,tp,LOCATION_ONFIELD,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
if chk==0 then return ct>0 and Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,ct,0,0)
end
function c12051021.desop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c12051021.thfilter,tp,LOCATION_MZONE,0,nil)
local g=Duel.GetMatchingGroup(c12051021.thfilter1,tp,LOCATION_MZONE,0,nil)
if g:GetCount()==0 then return end
Duel.SendtoHand(g,nil,REASON_EFFECT)
local g1=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,g:GetCount(),nil)
......
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