Commit c3ae547c authored by TanakaKotoha's avatar TanakaKotoha

wdnmd

parent 15c6bd95
No preview for this file type
expansions/pics/26806012.jpg

90.4 KB | W: | H:

expansions/pics/26806012.jpg

229 KB | W: | H:

expansions/pics/26806012.jpg
expansions/pics/26806012.jpg
expansions/pics/26806012.jpg
expansions/pics/26806012.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -22,6 +22,9 @@ end ...@@ -22,6 +22,9 @@ end
function cm.cffilter(c,tp) function cm.cffilter(c,tp)
return not c:IsPublic() return not c:IsPublic()
end end
function cm.thfilter(c,code)
return c:IsAbleToHand() and c:IsCode(code)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.cffilter,tp,LOCATION_HAND,0,2,nil,tp) end if chk==0 then return Duel.IsExistingMatchingCard(cm.cffilter,tp,LOCATION_HAND,0,2,nil,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_DECK)
...@@ -31,11 +34,11 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,11 +34,11 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local tt=Duel.SelectMatchingCard(tp,cm.cffilter,tp,LOCATION_HAND,0,2,2,nil,tp) local tt=Duel.SelectMatchingCard(tp,cm.cffilter,tp,LOCATION_HAND,0,2,2,nil,tp)
Duel.ConfirmCards(1-tp,tt) Duel.ConfirmCards(1-tp,tt)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_ATOHAND)
local tc=tt:Select(1-tp,1,1,nil) local tc=tt:Select(1-tp,1,1,nil)
local code=tc:GetFirst():GetOriginalCodeRule() local code=tc:GetFirst():GetOriginalCodeRule()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local th=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,63,nil,code) local th=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_DECK,1,63,nil,code)
Duel.SendtoHand(th,nil,REASON_EFFECT) Duel.SendtoHand(th,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,th) Duel.ConfirmCards(1-tp,th)
end end
\ No newline at end of file
...@@ -32,11 +32,14 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,11 +32,14 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<=0 then return end if ft<=0 then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then if true then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,cm.filter2,tp,LOCATION_DECK,0,1,1,nil,tc:GetCode(),e,tp) local sg=Duel.SelectMatchingCard(tp,cm.filter2,tp,LOCATION_DECK,0,1,1,nil,tc:GetCode(),e,tp)
if sg:GetCount()>0 then if sg:GetCount()>0 then
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
if tc:IsRelateToEffect(e) and tc:IsFaceup() then
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)
end
end end
end end
end end
\ No newline at end of file
...@@ -87,14 +87,14 @@ end ...@@ -87,14 +87,14 @@ end
function cm.spop1(e,tp,eg,ep,ev,re,r,rp) function cm.spop1(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(m,1)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(m,1))
local g=Duel.SelectMatchingCard(tp,cm.spfilter1,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,cm.spfilter1,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,e,tp)
if g:GetCount()>0 and Duel.SpecialSummonStep(g,0,tp,1-tp,false,false,POS_FACEUP_ATTACK) then if g:GetCount()>0 and Duel.SpecialSummon(g,0,tp,1-tp,false,false,POS_FACEUP_ATTACK) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(m,2)) e1:SetDescription(aux.Stringid(m,2))
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT) e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:SetValue(1) e1:SetValue(1)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1) g:GetFirst():RegisterEffect(e1)
end end
end end
\ No newline at end of file
...@@ -44,7 +44,7 @@ function c9910083.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c9910083.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<5 then return end if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<5 then return end
Duel.ConfirmDecktop(tp,5) Duel.ConfirmDecktop(tp,5)
local g=Duel.GetDecktopGroup(tp,5) local g=Duel.GetDecktopGroup(tp,5)
local sg=g:Filter(Card.IsRace,1,nil,RACE_FAIRY) local sg=g:Filter(Card.IsRace,nil,RACE_FAIRY)
if g:GetCount()>0 and g:IsExists(c9910083.thfilter,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(9910083,0)) then if g:GetCount()>0 and g:IsExists(c9910083.thfilter,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(9910083,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg1=g:FilterSelect(tp,c9910083.thfilter,1,1,nil) local sg1=g:FilterSelect(tp,c9910083.thfilter,1,1,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