Commit e3fb01b6 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c18700107.lua

parent 3ce78b45
Pipeline #31117 passed with stages
in 32 minutes and 11 seconds
...@@ -36,13 +36,13 @@ end ...@@ -36,13 +36,13 @@ end
function cm.seqfilter(c) function cm.seqfilter(c)
return c:IsFaceup() return c:IsFaceup()
end end
function cm.spfilter(c,e,tp) function cm.thfilter(c,e,tp)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x823) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_DECK) return c:IsSetCard(0x823) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function cm.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return cghc:IsLocation(LOCATION_MZONE) and cghc:IsControler(tp) and cm.seqfilter(chkc) end if chkc then return cghc:IsLocation(LOCATION_MZONE) and cghc:IsControler(tp) and cm.seqfilter(chkc) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_CONTROL)>0 and Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_CONTROL)>0 and Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function cm.tdop(e,tp,eg,ep,ev,re,r,rp) function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
...@@ -57,7 +57,7 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +57,7 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.ConfirmCards(tp,tc) local sg=Duel.ConfirmCards(tp,tc)
if tc:GetCode()==fc:GetCode() then if tc:GetCode()==fc:GetCode() then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end 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