Commit cf1efa78 authored by Nemo Ma's avatar Nemo Ma

fix

parent 80221721
......@@ -42,6 +42,9 @@ end
function c46260000.filter(c,e,tp,m)
if bit.band(c:GetOriginalType(),0x81)~=0x81 or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end
local mg=m:Filter(Card.IsCanBeRitualMaterial,c,c)
if c.mat_filter then
mg=mg:Filter(c.mat_filter,nil,tp)
end
return mg:CheckWithSumGreater(c46260000.mfilter2,c:GetLevel(),c,tp)
end
function c46260000.rtg(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -65,6 +68,11 @@ function c46260000.rop(e,tp,eg,ep,ev,re,r,rp)
local tc=tg:GetFirst()
if tc then
local mg=mg1:Filter(Card.IsCanBeRitualMaterial,tc,tc)
if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local mat=mg:SelectWithSumGreater(tp,c46260000.mfilter2,tc:GetLevel(),tc,tp)
tc:SetMaterial(mat)
......
......@@ -42,7 +42,11 @@ end
function c46260001.filter(c,e,tp,mg)
if bit.band(c:GetOriginalType(),0x81)~=0x81 or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end
local tg=mg:Clone()
if c.mat_filter then
tg=tg:Filter(c.mat_filter,c,tp)
else
tg:RemoveCard(c)
end
local lv=c:GetOriginalLevel()
aux.GCheckAdditional=aux.RitualCheckAdditional(c,lv,"Greater")
local res=tg:CheckSubGroup(aux.RitualCheck,1,lv,tp,c,lv,"Greater")
......@@ -64,7 +68,11 @@ function c46260001.rop(e,tp,eg,ep,ev,re,r,rp)
local tc=tg:GetFirst()
if tc then
mg=mg:Filter(Card.IsCanBeRitualMaterial,tc,tc)
if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local lv=tc:GetOriginalLevel()
aux.GCheckAdditional=aux.RitualCheckAdditional(tc,lv,"Greater")
......
......@@ -42,7 +42,11 @@ end
function c46260003.filter(c,e,tp,mg)
if bit.band(c:GetOriginalType(),0x81)~=0x81 or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end
local tg=mg:Clone()
if c.mat_filter then
tg=tg:Filter(c.mat_filter,c,tp)
else
tg:RemoveCard(c)
end
local lv=c:GetOriginalLevel()
aux.GCheckAdditional=aux.RitualCheckAdditional(c,lv,"Greater")
local res=tg:CheckSubGroup(aux.RitualCheck,1,lv,tp,c,lv,"Greater")
......@@ -64,7 +68,11 @@ function c46260003.rop(e,tp,eg,ep,ev,re,r,rp)
local tc=tg:GetFirst()
if tc then
mg=mg:Filter(Card.IsCanBeRitualMaterial,tc,tc)
if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local lv=tc:GetOriginalLevel()
aux.GCheckAdditional=aux.RitualCheckAdditional(tc,lv,"Greater")
......
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