Commit bebe46e5 authored by Tachibana's avatar Tachibana

ndyd

parent 250013e6
Pipeline #4910 passed with stages
in 36 minutes and 5 seconds
......@@ -70,7 +70,7 @@ function Suyu_Tarot.search(c,code,cat,tg,op)
e2:SetCode(EVENT_RELEASE)
e2:SetCountLimit(1,code)
e2:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return (e:GetHandler():IsReason(REASON_SUMMON) or r==REASON_RITUAL) and Suyu_Tarot.excon(tp)
return (e:GetHandler():IsReason(REASON_SUMMON) or e:GetHandler():IsReason(REASON_RITUAL)) and Suyu_Tarot.excon(tp)
end)
e2:SetTarget(tg)
e2:SetOperation(op)
......
......@@ -36,8 +36,8 @@ end
function cm.recop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
local rec=Duel.Recover(p,d,REASON_EFFECT)
if rec>0 and Duel.IsExistingMatchingCard(cm.tdfilter5,tp,LOCATION_GRAVE,0,1,e:GetHandler(),rec) and Duel.SelectYesNo(tp,aux.Stringid(m,4)) then
local g1=Duel.SelectMatchingCard(tp,cm.tdfilter5,tp,LOCATION_GRAVE,0,1,1,e:GetHandler(),rec)
if rec>0 and Duel.IsExistingMatchingCard(cm.tdfilter5,tp,LOCATION_GRAVE,0,1,nil,rec) and Duel.SelectYesNo(tp,aux.Stringid(m,4)) then
local g1=Duel.SelectMatchingCard(tp,cm.tdfilter5,tp,LOCATION_GRAVE,0,1,1,nil,rec)
Duel.BreakEffect()
Duel.SendtoHand(g1,tp,REASON_EFFECT)
Duel.ConfirmCards(tp,g1)
......
......@@ -3,7 +3,7 @@ local m=39100151
local cm=_G["c"..m]
Duel.LoadScript("c39100101.lua")
function cm.initial_effect(c)
-- local e0=Suyu_Tarot.advsum(c)
-- local e0=Suyu_Tarot.advsum(c)
local e1=Suyu_Tarot.spsummon(c,m,nil,cm.cond,cm.op)
local e2=Suyu_Tarot.search(c,m,CATEGORY_REMOVE,cm.thtg,cm.thop)
end
......@@ -37,7 +37,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroup(1-tp,LOCATION_DECK,0)>0 end
if chk==0 then return Duel.GetFieldGroupCount(1-tp,LOCATION_DECK,0)>0 end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,1-tp,LOCATION_DECK)
end
function cm.thop(e,tp,eg,ep,ev,re,r,rp)
......
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