Commit 16cd3eb8 authored by mercury233's avatar mercury233

fix

parent d567a264
...@@ -15,6 +15,9 @@ function c37626500.filter(c,e,tp,m,ft) ...@@ -15,6 +15,9 @@ function c37626500.filter(c,e,tp,m,ft)
if not c37626500.ritual_filter(c) or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end if not c37626500.ritual_filter(c) or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end
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,ft) end if c:IsCode(21105106) then return c:ritual_custom_condition(mg,ft) end
if c.mat_filter then
mg=mg:Filter(c.mat_filter,nil)
end
if ft>0 then if ft>0 then
return mg:CheckWithSumEqual(Card.GetRitualLevel,c:GetLevel(),1,99,c) return mg:CheckWithSumEqual(Card.GetRitualLevel,c:GetLevel(),1,99,c)
else else
...@@ -48,6 +51,9 @@ function c37626500.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,6 +51,9 @@ function c37626500.operation(e,tp,eg,ep,ev,re,r,rp)
local mat=tc:GetMaterial() local mat=tc:GetMaterial()
Duel.ReleaseRitualMaterial(mat) Duel.ReleaseRitualMaterial(mat)
else else
if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,nil)
end
local mat=nil local mat=nil
if ft>0 then if ft>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
......
...@@ -26,6 +26,9 @@ function c86758915.filter(c,e,tp,m,ft) ...@@ -26,6 +26,9 @@ function c86758915.filter(c,e,tp,m,ft)
or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end
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,ft,true) end if c:IsCode(21105106) then return c:ritual_custom_condition(mg,ft,true) end
if c.mat_filter then
mg=mg:Filter(c.mat_filter,nil)
end
if ft>0 then if ft>0 then
return mg:CheckWithSumGreater(Card.GetRitualLevel,c:GetLevel(),c) return mg:CheckWithSumGreater(Card.GetRitualLevel,c:GetLevel(),c)
else else
...@@ -60,6 +63,9 @@ function c86758915.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,6 +63,9 @@ function c86758915.activate(e,tp,eg,ep,ev,re,r,rp)
local mat=tc:GetMaterial() local mat=tc:GetMaterial()
Duel.ReleaseRitualMaterial(mat) Duel.ReleaseRitualMaterial(mat)
else else
if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,nil)
end
if ft>0 then if ft>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
mat=mg:SelectWithSumGreater(tp,Card.GetRitualLevel,tc:GetLevel(),tc) mat=mg:SelectWithSumGreater(tp,Card.GetRitualLevel,tc:GetLevel(),tc)
......
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