Commit 3e636a1e authored by TanakaKotoha's avatar TanakaKotoha

fbk

parent 9923a11c
......@@ -80,8 +80,10 @@ function c60151623.setcon(e,tp,eg,ep,ev,re,r,rp)
return atk>Duel.GetLP(tp)
end
function c60151623.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsSSetable() end
local c=e:GetHandler()
if chk==0 then return e:GetHandler():IsSSetable() and c:GetFlagEffect(60151623)==0 end
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,e:GetHandler(),1,0,0)
c:RegisterFlagEffect(60151623,RESET_CHAIN,0,1)
end
function c60151623.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -21,7 +21,7 @@ end
function c75646316.con(e,tp,eg,ep,ev,re,r,rp)
return re:GetHandler():IsSetCard(0x62c1)
end
function c75646316.tgfilter(c)
function c75646316.tgfilter(c,tp)
return c:IsSetCard(0x62c1) and c:IsAbleToGrave() and Duel.IsExistingMatchingCard(c75646316.thfilter,tp,LOCATION_DECK,0,1,nil,c:GetCode())
end
function c75646316.thfilter(c,code)
......@@ -35,7 +35,7 @@ function c75646316.spfilter(c,e,tp)
end
function c75646316.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c75646316.rmfilter(chkc) end
local b1=Duel.IsExistingMatchingCard(c75646316.tgfilter,tp,LOCATION_HAND,0,1,nil)
local b1=Duel.IsExistingMatchingCard(c75646316.tgfilter,tp,LOCATION_HAND,0,1,nil,tp)
local b2=Duel.IsExistingTarget(c75646316.rmfilter,tp,LOCATION_MZONE,0,1,nil)
local b3=Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c75646316.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp)
......@@ -83,13 +83,13 @@ function c75646316.op(e,tp,eg,ep,ev,re,r,rp)
local sel=e:GetLabel()
if sel==1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c75646316.tgfilter,tp,LOCATION_HAND,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,c75646316.tgfilter,tp,LOCATION_HAND,0,1,1,nil,tp)
if g:GetCount()>0 and Duel.SendtoGrave(g,REASON_EFFECT)~=0 and g:GetFirst():IsLocation(LOCATION_GRAVE) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g1=Duel.SelectMatchingCard(tp,c75646316.thfilter,tp,LOCATION_DECK,0,1,1,g:GetFirst():GetCode())
if g1:GetCount()>0 then
Duel.SendtoHand(g1,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
Duel.ConfirmCards(1-tp,g1)
end
end
elseif sel==2 then
......@@ -125,9 +125,9 @@ function c75646316.op(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e2,tp)
else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c75646316.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
if g:GetCount()>0 then
if Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)~=0 then
local g2=Duel.SelectMatchingCard(tp,c75646316.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
if g2:GetCount()>0 then
if Duel.SpecialSummon(g2,0,tp,tp,false,false,POS_FACEUP)~=0 then
Duel.BreakEffect()
Duel.Destroy(c,REASON_EFFECT)
end
......
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