Commit 3a2a13f4 authored by TanakaKotoha's avatar TanakaKotoha

wdnmd

parent 97bdfe6d
...@@ -16,6 +16,7 @@ function cm.initial_effect(c) ...@@ -16,6 +16,7 @@ function cm.initial_effect(c)
e2:SetDescription(aux.Stringid(m,0)) e2:SetDescription(aux.Stringid(m,0))
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,m)
e2:SetCost(cm.thcost) e2:SetCost(cm.thcost)
e2:SetTarget(cm.thtg) e2:SetTarget(cm.thtg)
e2:SetOperation(cm.thop) e2:SetOperation(cm.thop)
......
...@@ -9,6 +9,7 @@ function c21520149.initial_effect(c) ...@@ -9,6 +9,7 @@ function c21520149.initial_effect(c)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c21520149.condition) e1:SetCondition(c21520149.condition)
e1:SetCost(c21520149.cost)
e1:SetTarget(c21520149.target) e1:SetTarget(c21520149.target)
e1:SetOperation(c21520149.operation) e1:SetOperation(c21520149.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -34,6 +35,10 @@ end ...@@ -34,6 +35,10 @@ end
function c21520149.condition(e,tp,eg,ep,ev,re,r,rp) function c21520149.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c21520149.effectfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) return Duel.IsExistingMatchingCard(c21520149.effectfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
end end
function c21520149.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetFlagEffect(21520149)==0 end
e:GetHandler():RegisterFlagEffect(21520149,RESET_PHASE+PHASE_END,0,1)
end
function c21520149.filter(c) function c21520149.filter(c)
return c:IsFaceup() and c:IsType(TYPE_EFFECT) and not c:IsDisabled() return c:IsFaceup() and c:IsType(TYPE_EFFECT) and not c:IsDisabled()
end end
......
...@@ -101,7 +101,7 @@ function c21520216.igop(e,tp,eg,ep,ev,re,r,rp) ...@@ -101,7 +101,7 @@ function c21520216.igop(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_COPY_INHERIT) e1:SetProperty(EFFECT_FLAG_COPY_INHERIT)
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(atk) e1:SetValue(atk)
-- e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
......
...@@ -122,7 +122,7 @@ function c21520237.igop(e,tp,eg,ep,ev,re,r,rp) ...@@ -122,7 +122,7 @@ function c21520237.igop(e,tp,eg,ep,ev,re,r,rp)
end end
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.BreakEffect() Duel.BreakEffect()
if not Duel.IsExistingMatchingCard(c21520237.igfilter2,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) then if not Duel.IsExistingMatchingCard(c21520237.igfilter2,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) then
Duel.Damage(tp,1500,REASON_RULE) Duel.Damage(tp,1500,REASON_RULE)
end end
end end
......
...@@ -122,8 +122,9 @@ function c21520238.igop(e,tp,eg,ep,ev,re,r,rp) ...@@ -122,8 +122,9 @@ function c21520238.igop(e,tp,eg,ep,ev,re,r,rp)
end end
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.BreakEffect() Duel.BreakEffect()
if not Duel.IsExistingMatchingCard(c21520238.igfilter2,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) then if not Duel.IsExistingMatchingCard(c21520238.igfilter2,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) then
Duel.Damage(tp,2000,REASON_RULE) Duel.Damage(tp,2000,REASON_RULE)
end end
end end
end
end end
...@@ -38,7 +38,7 @@ function c9910294.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c9910294.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<3 then return end if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<3 then return end
Duel.ConfirmDecktop(tp,3) Duel.ConfirmDecktop(tp,3)
local g=Duel.GetDecktopGroup(tp,3):Filter(Card.IsType,nil,TYPE_PENDULUM) local g=Duel.GetDecktopGroup(tp,3):Filter(Card.IsType,nil,TYPE_PENDULUM)
if not g:IsExists(c9910294.tgfilter,1,nil) then return end if not g:IsExists(c9910294.tgfilter,1,nil) then Duel.ShuffleDeck(tp) return end
if Duel.GetFlagEffect(tp,9910494)==0 and Duel.SelectYesNo(tp,aux.Stringid(9910294,4)) then if Duel.GetFlagEffect(tp,9910494)==0 and Duel.SelectYesNo(tp,aux.Stringid(9910294,4)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local sg0=g:FilterSelect(tp,c9910294.tgfilter,1,1,nil) local sg0=g:FilterSelect(tp,c9910294.tgfilter,1,1,nil)
...@@ -46,7 +46,7 @@ function c9910294.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,7 +46,7 @@ function c9910294.operation(e,tp,eg,ep,ev,re,r,rp)
g:Sub(sg0) g:Sub(sg0)
Duel.RegisterFlagEffect(tp,9910494,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,9910494,RESET_PHASE+PHASE_END,0,1)
end end
if Duel.GetFlagEffect(tp,9910494)==0 or g:GetCount()==0 then return end if Duel.GetFlagEffect(tp,9910494)==0 or g:GetCount()==0 then Duel.ShuffleDeck(tp) return end
if Duel.GetFlagEffect(tp,9910495)==0 and Duel.SelectYesNo(tp,aux.Stringid(9910294,0)) then if Duel.GetFlagEffect(tp,9910495)==0 and Duel.SelectYesNo(tp,aux.Stringid(9910294,0)) then
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(9910294,3)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(9910294,3))
local sg1=g:Select(tp,1,1,nil) local sg1=g:Select(tp,1,1,nil)
...@@ -54,7 +54,7 @@ function c9910294.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,7 @@ function c9910294.operation(e,tp,eg,ep,ev,re,r,rp)
g:Sub(sg1) g:Sub(sg1)
Duel.RegisterFlagEffect(tp,9910495,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,9910495,RESET_PHASE+PHASE_END,0,1)
end end
if Duel.GetFlagEffect(tp,9910495)==0 or not g:IsExists(c9910294.thfilter,1,nil) then return end if Duel.GetFlagEffect(tp,9910495)==0 or not g:IsExists(c9910294.thfilter,1,nil) then Duel.ShuffleDeck(tp) return end
if Duel.GetFlagEffect(tp,9910496)==0 and Duel.SelectYesNo(tp,aux.Stringid(9910294,1)) then if Duel.GetFlagEffect(tp,9910496)==0 and Duel.SelectYesNo(tp,aux.Stringid(9910294,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg2=g:FilterSelect(tp,c9910294.thfilter,1,1,nil) local sg2=g:FilterSelect(tp,c9910294.thfilter,1,1,nil)
...@@ -64,7 +64,7 @@ function c9910294.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,7 +64,7 @@ function c9910294.operation(e,tp,eg,ep,ev,re,r,rp)
g:Sub(sg2) g:Sub(sg2)
Duel.RegisterFlagEffect(tp,9910496,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,9910496,RESET_PHASE+PHASE_END,0,1)
end end
if Duel.GetFlagEffect(tp,9910496)==0 or not g:IsExists(c9910294.spfilter,1,nil,e,tp) then return end if Duel.GetFlagEffect(tp,9910496)==0 or not g:IsExists(c9910294.spfilter,1,nil,e,tp) then Duel.ShuffleDeck(tp) return end
if Duel.GetFlagEffect(tp,9910497)==0 and Duel.SelectYesNo(tp,aux.Stringid(9910294,2)) then if Duel.GetFlagEffect(tp,9910497)==0 and Duel.SelectYesNo(tp,aux.Stringid(9910294,2)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg3=g:FilterSelect(tp,c9910294.spfilter,1,1,nil,e,tp) local sg3=g:FilterSelect(tp,c9910294.spfilter,1,1,nil,e,tp)
......
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