Commit bebe46e5 authored by Tachibana's avatar Tachibana

ndyd

parent 250013e6
...@@ -70,7 +70,7 @@ function Suyu_Tarot.search(c,code,cat,tg,op) ...@@ -70,7 +70,7 @@ function Suyu_Tarot.search(c,code,cat,tg,op)
e2:SetCode(EVENT_RELEASE) e2:SetCode(EVENT_RELEASE)
e2:SetCountLimit(1,code) e2:SetCountLimit(1,code)
e2:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) 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) end)
e2:SetTarget(tg) e2:SetTarget(tg)
e2:SetOperation(op) e2:SetOperation(op)
......
...@@ -36,8 +36,8 @@ end ...@@ -36,8 +36,8 @@ end
function cm.recop(e,tp,eg,ep,ev,re,r,rp) function cm.recop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
local rec=Duel.Recover(p,d,REASON_EFFECT) 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 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,e:GetHandler(),rec) local g1=Duel.SelectMatchingCard(tp,cm.tdfilter5,tp,LOCATION_GRAVE,0,1,1,nil,rec)
Duel.BreakEffect() Duel.BreakEffect()
Duel.SendtoHand(g1,tp,REASON_EFFECT) Duel.SendtoHand(g1,tp,REASON_EFFECT)
Duel.ConfirmCards(tp,g1) Duel.ConfirmCards(tp,g1)
......
...@@ -3,7 +3,7 @@ local m=39100151 ...@@ -3,7 +3,7 @@ local m=39100151
local cm=_G["c"..m] local cm=_G["c"..m]
Duel.LoadScript("c39100101.lua") Duel.LoadScript("c39100101.lua")
function cm.initial_effect(c) 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 e1=Suyu_Tarot.spsummon(c,m,nil,cm.cond,cm.op)
local e2=Suyu_Tarot.search(c,m,CATEGORY_REMOVE,cm.thtg,cm.thop) local e2=Suyu_Tarot.search(c,m,CATEGORY_REMOVE,cm.thtg,cm.thop)
end end
...@@ -37,7 +37,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,7 +37,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) 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) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,1-tp,LOCATION_DECK)
end end
function cm.thop(e,tp,eg,ep,ev,re,r,rp) 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