Commit f56cb639 authored by VanillaSalt's avatar VanillaSalt

fix

parent a3d6237c
...@@ -76,7 +76,6 @@ function c41141943.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,7 +76,6 @@ function c41141943.spop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c41141943.spfilter,tp,LOCATION_HAND,0,nil,e,tp) local g=Duel.GetMatchingGroup(c41141943.spfilter,tp,LOCATION_HAND,0,nil,e,tp)
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
local ft=Duel.GetLocationCount(1-tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(1-tp,LOCATION_MZONE)
if ft>g:GetCount() then ft=g:GetCount() end
if ft>2 then ft=2 end if ft>2 then ft=2 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=g:Select(tp,1,ft,nil) local sg=g:Select(tp,1,ft,nil)
......
...@@ -55,7 +55,7 @@ function c71578874.adop(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,7 @@ function c71578874.adop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c71578874.swtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c71578874.swtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
......
...@@ -49,4 +49,4 @@ function c72413000.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,4 +49,4 @@ function c72413000.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
end end
end end
end end
\ No newline at end of file
...@@ -58,4 +58,4 @@ function c7841921.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,4 +58,4 @@ function c7841921.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
\ No newline at end of file
...@@ -26,7 +26,7 @@ function c97211663.filter(c,e,tp,m) ...@@ -26,7 +26,7 @@ function c97211663.filter(c,e,tp,m)
local mg=m:Filter(Card.IsCanBeRitualMaterial,c,c) local mg=m:Filter(Card.IsCanBeRitualMaterial,c,c)
if c:IsCode(21105106) then return c:ritual_custom_condition(mg) end if c:IsCode(21105106) then return c:ritual_custom_condition(mg) end
if c.mat_filter then if c.mat_filter then
mg=m:Filter(c.mat_filter,c) mg=mg:Filter(c.mat_filter,nil)
end end
return mg:CheckWithSumEqual(Card.GetRitualLevel,c:GetLevel(),1,99,c) return mg:CheckWithSumEqual(Card.GetRitualLevel,c:GetLevel(),1,99,c)
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