Commit aa99b049 authored by POLYMER's avatar POLYMER

fix

parent 75bc0b57
...@@ -81,7 +81,6 @@ function c9910002.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -81,7 +81,6 @@ function c9910002.thop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c9910002.thcon2)
e1:SetOperation(c9910002.thop2) e1:SetOperation(c9910002.thop2)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
...@@ -90,9 +89,6 @@ end ...@@ -90,9 +89,6 @@ end
function c9910002.thfilter2(c) function c9910002.thfilter2(c)
return c:IsFaceup() and c:IsType(TYPE_PENDULUM) and c:IsAbleToHand() return c:IsFaceup() and c:IsType(TYPE_PENDULUM) and c:IsAbleToHand()
end end
function c9910002.thcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c9910002.thfilter2,tp,LOCATION_EXTRA,0,1,nil)
end
function c9910002.thop2(e,tp,eg,ep,ev,re,r,rp) function c9910002.thop2(e,tp,eg,ep,ev,re,r,rp)
if Duel.SelectYesNo(tp,aux.Stringid(9910002,4)) then if Duel.SelectYesNo(tp,aux.Stringid(9910002,4)) then
Duel.Hint(HINT_CARD,0,9910002) Duel.Hint(HINT_CARD,0,9910002)
......
...@@ -35,15 +35,10 @@ function c9910149.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,15 +35,10 @@ function c9910149.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c9910149.thcon)
e1:SetOperation(c9910149.thop) e1:SetOperation(c9910149.thop)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c9910149.thcon(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD,nil)
return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=ct
end
function c9910149.tofifilter(c) function c9910149.tofifilter(c)
return c:IsSetCard(0x9958) and c:IsType(TYPE_MONSTER) and not c:IsForbidden() return c:IsSetCard(0x9958) and c:IsType(TYPE_MONSTER) and not c:IsForbidden()
end end
...@@ -64,6 +59,7 @@ end ...@@ -64,6 +59,7 @@ end
function c9910149.thop(e,tp,eg,ep,ev,re,r,rp) function c9910149.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9910149) Duel.Hint(HINT_CARD,0,9910149)
local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD,nil) local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD,nil)
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<ct then return end
Duel.ConfirmDecktop(tp,ct) Duel.ConfirmDecktop(tp,ct)
local dg=Duel.GetDecktopGroup(tp,ct) local dg=Duel.GetDecktopGroup(tp,ct)
local g=dg:Filter(c9910149.tofifilter,nil) local g=dg:Filter(c9910149.tofifilter,nil)
......
...@@ -87,7 +87,6 @@ function c9910182.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,7 +87,6 @@ function c9910182.regop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c9910182.spcon)
e1:SetOperation(c9910182.spop) e1:SetOperation(c9910182.spop)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
...@@ -97,9 +96,6 @@ function c9910182.spfilter(c,e,tp) ...@@ -97,9 +96,6 @@ function c9910182.spfilter(c,e,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)) return c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false))
end end
function c9910182.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c9910182.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp)
end
function c9910182.spop(e,tp,eg,ep,ev,re,r,rp) function c9910182.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9910182) Duel.Hint(HINT_CARD,0,9910182)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
......
...@@ -80,7 +80,6 @@ function c9910184.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -80,7 +80,6 @@ function c9910184.regop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c9910184.spcon)
e1:SetOperation(c9910184.spop) e1:SetOperation(c9910184.spop)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
...@@ -90,9 +89,6 @@ function c9910184.spfilter(c,e,tp) ...@@ -90,9 +89,6 @@ function c9910184.spfilter(c,e,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)) return c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false))
end end
function c9910184.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c9910184.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp)
end
function c9910184.spop(e,tp,eg,ep,ev,re,r,rp) function c9910184.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9910184) Duel.Hint(HINT_CARD,0,9910184)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
......
...@@ -43,7 +43,6 @@ function c9910204.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,7 +43,6 @@ function c9910204.regop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c9910204.thcon)
e1:SetOperation(c9910204.thop) e1:SetOperation(c9910204.thop)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
...@@ -51,9 +50,6 @@ end ...@@ -51,9 +50,6 @@ end
function c9910204.thfilter(c) function c9910204.thfilter(c)
return c:IsRace(RACE_PSYCHO) and c:IsAbleToHand() return c:IsRace(RACE_PSYCHO) and c:IsAbleToHand()
end end
function c9910204.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c9910204.thfilter,tp,LOCATION_DECK,0,1,nil)
end
function c9910204.thop(e,tp,eg,ep,ev,re,r,rp) function c9910204.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9910204) Duel.Hint(HINT_CARD,0,9910204)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......
...@@ -146,8 +146,10 @@ function c9910470.retop(e,tp,eg,ep,ev,re,r,rp) ...@@ -146,8 +146,10 @@ function c9910470.retop(e,tp,eg,ep,ev,re,r,rp)
if g:IsExists(Card.IsAbleToHand,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(9910470,1)) then if g:IsExists(Card.IsAbleToHand,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(9910470,1)) then
Duel.Hint(HINT_CARD,0,9910470) Duel.Hint(HINT_CARD,0,9910470)
Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2)) Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=g:FilterSelect(tp,Card.IsAbleToHand,1,1,nil) local sg=g:FilterSelect(tp,Card.IsAbleToHand,1,1,nil)
Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg)
end end
g:DeleteGroup() g:DeleteGroup()
e:Reset() e:Reset()
......
...@@ -65,6 +65,9 @@ function c9910515.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,6 +65,9 @@ function c9910515.regop(e,tp,eg,ep,ev,re,r,rp)
e1:SetOperation(c9910515.setop) e1:SetOperation(c9910515.setop)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c9910515.setcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnCount()~=e:GetLabel()
end
function c9910515.setfilter(c,e,tp) function c9910515.setfilter(c,e,tp)
if not c:IsSetCard(0xa950) or not c:IsFaceupEx() then return false end if not c:IsSetCard(0xa950) or not c:IsFaceupEx() then return false end
if c:IsType(TYPE_MONSTER) then if c:IsType(TYPE_MONSTER) then
...@@ -72,10 +75,6 @@ function c9910515.setfilter(c,e,tp) ...@@ -72,10 +75,6 @@ function c9910515.setfilter(c,e,tp)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE)
else return c:IsSSetable() end else return c:IsSSetable() end
end end
function c9910515.setcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnCount()~=e:GetLabel()
and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(c9910515.setfilter),tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp)
end
function c9910515.setop(e,tp,eg,ep,ev,re,r,rp) function c9910515.setop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9910515) Duel.Hint(HINT_CARD,0,9910515)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
......
...@@ -156,7 +156,7 @@ function c9910540.rlop(e,tp,eg,ep,ev,re,r,rp) ...@@ -156,7 +156,7 @@ function c9910540.rlop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c9910540.descon(e,tp,eg,ep,ev,re,r,rp) function c9910540.descon(e,tp,eg,ep,ev,re,r,rp)
return c9910540[tp]>0 and Duel.IsExistingMatchingCard(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) return c9910540[tp]>0
end end
function c9910540.desop(e,tp,eg,ep,ev,re,r,rp) function c9910540.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9910540) Duel.Hint(HINT_CARD,0,9910540)
......
...@@ -68,15 +68,11 @@ function c9910561.xmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,15 +68,11 @@ function c9910561.xmop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c9910561.thcon)
e1:SetOperation(c9910561.thop) e1:SetOperation(c9910561.thop)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
end end
function c9910561.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetOverlayCount(tp,1,0)>0
end
function c9910561.thop(e,tp,eg,ep,ev,re,r,rp) function c9910561.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9910561) Duel.Hint(HINT_CARD,0,9910561)
local g=Duel.GetOverlayGroup(tp,1,0) local g=Duel.GetOverlayGroup(tp,1,0)
......
...@@ -119,20 +119,20 @@ function c9910717.activate2(e,tp,eg,ep,ev,re,r,rp) ...@@ -119,20 +119,20 @@ function c9910717.activate2(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetCondition(c9910717.setcon)
e1:SetOperation(c9910717.setop) e1:SetOperation(c9910717.setop)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
end end
function c9910717.setcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingMatchingCard(QutryYgzw.SetFilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e,tp)
end
function c9910717.setop(e,tp,eg,ep,ev,re,r,rp) function c9910717.setop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9910717)
local ct=Duel.GetMatchingGroupCount(QutryYgzw.SetFilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,e,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_SZONE) local ft=Duel.GetLocationCount(tp,LOCATION_SZONE)
if ft==0 then return end ct=math.min(ct,ft,3)
if ft>3 then ft=3 end if ct<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local sg=Duel.SelectMatchingCard(tp,QutryYgzw.SetFilter,tp,LOCATION_MZONE,LOCATION_MZONE,ft,ft,nil,e,tp) local sg=Duel.SelectMatchingCard(tp,QutryYgzw.SetFilter,tp,LOCATION_MZONE,LOCATION_MZONE,ct,ct,nil,e,tp)
if sg:GetCount()>0 then QutryYgzw.Set2(sg,e,tp) end if sg:GetCount()>0 then
Duel.HintSelection(sg)
QutryYgzw.Set2(sg,e,tp)
end
end end
...@@ -111,7 +111,6 @@ function c9910862.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -111,7 +111,6 @@ function c9910862.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c9910862.descon)
e1:SetOperation(c9910862.desop) e1:SetOperation(c9910862.desop)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
...@@ -141,9 +140,6 @@ function c9910862.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -141,9 +140,6 @@ function c9910862.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
function c9910862.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(nil,tp,0,LOCATION_ONFIELD,1,nil)
end
function c9910862.desop(e,tp,eg,ep,ev,re,r,rp) function c9910862.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9910862) Duel.Hint(HINT_CARD,0,9910862)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
...@@ -66,7 +66,6 @@ function c9910923.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,7 +66,6 @@ function c9910923.regop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c9910923.spcon)
e1:SetOperation(c9910923.spop) e1:SetOperation(c9910923.spop)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
...@@ -76,9 +75,6 @@ function c9910923.spfilter(c,e,tp) ...@@ -76,9 +75,6 @@ function c9910923.spfilter(c,e,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)) return c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false))
end end
function c9910923.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c9910923.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp)
end
function c9910923.spop(e,tp,eg,ep,ev,re,r,rp) function c9910923.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9910923) Duel.Hint(HINT_CARD,0,9910923)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
......
...@@ -79,7 +79,6 @@ function c9910926.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,7 +79,6 @@ function c9910926.regop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c9910926.spcon)
e1:SetOperation(c9910926.spop) e1:SetOperation(c9910926.spop)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
...@@ -89,9 +88,6 @@ function c9910926.spfilter(c,e,tp) ...@@ -89,9 +88,6 @@ function c9910926.spfilter(c,e,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)) return c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false))
end end
function c9910926.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c9910926.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp)
end
function c9910926.spop(e,tp,eg,ep,ev,re,r,rp) function c9910926.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9910926) Duel.Hint(HINT_CARD,0,9910926)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
......
...@@ -98,7 +98,6 @@ function c9910929.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -98,7 +98,6 @@ function c9910929.regop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c9910929.spcon)
e1:SetOperation(c9910929.spop) e1:SetOperation(c9910929.spop)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
...@@ -108,9 +107,6 @@ function c9910929.spfilter(c,e,tp) ...@@ -108,9 +107,6 @@ function c9910929.spfilter(c,e,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)) return c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false))
end end
function c9910929.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c9910929.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp)
end
function c9910929.spop(e,tp,eg,ep,ev,re,r,rp) function c9910929.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9910929) Duel.Hint(HINT_CARD,0,9910929)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
......
...@@ -75,7 +75,6 @@ function c9910931.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,7 +75,6 @@ function c9910931.regop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c9910931.spcon)
e1:SetOperation(c9910931.spop) e1:SetOperation(c9910931.spop)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
...@@ -85,9 +84,6 @@ function c9910931.spfilter(c,e,tp) ...@@ -85,9 +84,6 @@ function c9910931.spfilter(c,e,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)) return c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false))
end end
function c9910931.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c9910931.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp)
end
function c9910931.spop(e,tp,eg,ep,ev,re,r,rp) function c9910931.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9910931) Duel.Hint(HINT_CARD,0,9910931)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
......
...@@ -103,7 +103,6 @@ function c9911003.attop(e,tp,eg,ep,ev,re,r,rp) ...@@ -103,7 +103,6 @@ function c9911003.attop(e,tp,eg,ep,ev,re,r,rp)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_PHASE+PHASE_END) e2:SetCode(EVENT_PHASE+PHASE_END)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetCondition(c9911003.thcon)
e2:SetOperation(c9911003.thop) e2:SetOperation(c9911003.thop)
e2:SetReset(RESET_PHASE+PHASE_END) e2:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
...@@ -111,9 +110,6 @@ end ...@@ -111,9 +110,6 @@ end
function c9911003.thfilter(c) function c9911003.thfilter(c)
return c:IsSetCard(0x6954) and c:IsAbleToHand() return c:IsSetCard(0x6954) and c:IsAbleToHand()
end end
function c9911003.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(aux.NecroValleyFilter(c9911003.thfilter),tp,LOCATION_GRAVE,0,1,nil)
end
function c9911003.thop(e,tp,eg,ep,ev,re,r,rp) function c9911003.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9911003) Duel.Hint(HINT_CARD,0,9911003)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......
...@@ -106,14 +106,10 @@ function c9911005.attop(e,tp,eg,ep,ev,re,r,rp) ...@@ -106,14 +106,10 @@ function c9911005.attop(e,tp,eg,ep,ev,re,r,rp)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_PHASE+PHASE_END) e2:SetCode(EVENT_PHASE+PHASE_END)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetCondition(c9911005.regcon)
e2:SetOperation(c9911005.regop) e2:SetOperation(c9911005.regop)
e2:SetReset(RESET_PHASE+PHASE_END) e2:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
function c9911005.regcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,0,LOCATION_ONFIELD,1,nil)
end
function c9911005.regop(e,tp,eg,ep,ev,re,r,rp) function c9911005.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9911005) Duel.Hint(HINT_CARD,0,9911005)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
......
...@@ -94,14 +94,10 @@ function c9911204.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -94,14 +94,10 @@ function c9911204.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c9911204.descon)
e1:SetOperation(c9911204.desop) e1:SetOperation(c9911204.desop)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c9911204.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(nil,tp,LOCATION_MZONE,0,1,nil)
end
function c9911204.desop(e,tp,eg,ep,ev,re,r,rp) function c9911204.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9911204) Duel.Hint(HINT_CARD,0,9911204)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
...@@ -91,14 +91,10 @@ function c9911208.setop(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,14 +91,10 @@ function c9911208.setop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c9911208.descon)
e1:SetOperation(c9911208.desop) e1:SetOperation(c9911208.desop)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c9911208.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_ONFIELD,0,1,nil,TYPE_SPELL+TYPE_TRAP)
end
function c9911208.desop(e,tp,eg,ep,ev,re,r,rp) function c9911208.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9911208) Duel.Hint(HINT_CARD,0,9911208)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
...@@ -159,23 +159,26 @@ function c9911367.seop(e,tp,eg,ep,ev,re,r,rp) ...@@ -159,23 +159,26 @@ function c9911367.seop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
function c9911367.thfilter(c,fid) function c9911367.thfilter1(c,fid)
return c:GetFlagEffectLabel(9911369)==fid and c:IsAbleToHand() return c:GetFlagEffectLabel(9911369)==fid
end end
function c9911367.thcon(e,tp,eg,ep,ev,re,r,rp) function c9911367.thcon(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetLabelObject() local g=e:GetLabelObject()
if not g:IsExists(aux.NecroValleyFilter(c9911367.thfilter),1,nil,e:GetLabel()) then if not g:IsExists(c9911367.thfilter1,1,nil,e:GetLabel()) then
g:DeleteGroup() g:DeleteGroup()
e:Reset() e:Reset()
return false return false
else return true end else return true end
end end
function c9911367.thfilter2(c,fid)
return c:GetFlagEffectLabel(9911369)==fid and c:IsAbleToHand()
end
function c9911367.thop(e,tp,eg,ep,ev,re,r,rp) function c9911367.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9911367)
local g=e:GetLabelObject() local g=e:GetLabelObject()
local sg=g:Filter(aux.NecroValleyFilter(c9911367.thfilter),nil,e:GetLabel()) local sg=g:Filter(aux.NecroValleyFilter(c9911367.thfilter2),nil,e:GetLabel())
g:DeleteGroup() g:DeleteGroup()
if #sg>0 then if #sg>0 then
Duel.Hint(HINT_CARD,0,9911367)
Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.SendtoHand(sg,nil,REASON_EFFECT)
end end
end end
...@@ -114,7 +114,7 @@ function c9911383.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -114,7 +114,7 @@ function c9911383.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,9911384,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,9911384,RESET_PHASE+PHASE_END,0,1)
end end
function c9911383.tdfilter2(c,fid) function c9911383.tdfilter2(c,fid)
return c:GetFlagEffectLabel(9911383)==fid and c:IsAbleToDeck() return c:GetFlagEffectLabel(9911383)==fid
end end
function c9911383.tdcon(e,tp,eg,ep,ev,re,r,rp) function c9911383.tdcon(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetLabelObject() local g=e:GetLabelObject()
...@@ -124,12 +124,15 @@ function c9911383.tdcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -124,12 +124,15 @@ function c9911383.tdcon(e,tp,eg,ep,ev,re,r,rp)
return false return false
else return true end else return true end
end end
function c9911383.tdfilter3(c,fid)
return c:GetFlagEffectLabel(9911383)==fid and c:IsAbleToDeck()
end
function c9911383.tdop(e,tp,eg,ep,ev,re,r,rp) function c9911383.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9911383)
local g=e:GetLabelObject() local g=e:GetLabelObject()
local sg=g:Filter(c9911383.tdfilter2,nil,e:GetLabel()) local sg=g:Filter(c9911383.tdfilter3,nil,e:GetLabel())
g:DeleteGroup() g:DeleteGroup()
if #sg>0 then if #sg>0 then
Duel.Hint(HINT_CARD,0,9911383)
Duel.SendtoDeck(sg,nil,2,REASON_EFFECT) Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)
end end
end end
......
...@@ -83,16 +83,13 @@ end ...@@ -83,16 +83,13 @@ end
function c9911555.thfilter(c) function c9911555.thfilter(c)
return c:IsFaceupEx() and c:IsSetCard(0x6952) and c:IsAbleToHand() return c:IsFaceupEx() and c:IsSetCard(0x6952) and c:IsAbleToHand()
end end
function c9911555.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c9911555.thfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil)
end
function c9911555.thop(e,tp,eg,ep,ev,re,r,rp) function c9911555.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,9911555)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c9911555.thfilter),tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c9911555.thfilter),tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil)
local tc=g:GetFirst() if #g>0 then
if tc then Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g)
Duel.ConfirmCards(1-tp,tc)
end end
end end
function c9911555.costfilter(c) function c9911555.costfilter(c)
......
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