Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions c11398951.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ function c11398951.activate(e,tp,eg,ep,ev,re,r,rp)
if tc then
local mg=mg1:Filter(Card.IsCanBeRitualMaterial,tc,tc)
mg:Merge(mg2)
if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,tc,tp)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Expand Down
8 changes: 4 additions & 4 deletions c13386407.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ function c13386407.RitualUltimateFilter(c,filter,e,tp,m1,m2,level_function,great
if m2 then
mg:Merge(m2)
end
if c.mat_filter then
mg=mg:Filter(c.mat_filter,c,tp)
if c.ritual_mat_filter then
mg=mg:Filter(c.ritual_mat_filter,c,tp)
else
mg:RemoveCard(c)
end
Expand Down Expand Up @@ -73,8 +73,8 @@ function c13386407.activate(e,tp,eg,ep,ev,re,r,rp)
if tc then
Duel.BreakEffect()
mg=mg:Filter(Card.IsCanBeRitualMaterial,tc,tc)
if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,tc,tp)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Expand Down
2 changes: 1 addition & 1 deletion c13408726.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function s.initial_effect(c)
e3:SetTarget(s.immtg)
c:RegisterEffect(e3)
end
function s.mat_filter(c)
function s.ritual_mat_filter(c)
return not c:IsLevel(9)
end
function s.cfilter(c,tp)
Expand Down
4 changes: 2 additions & 2 deletions c16494704.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ function c16494704.operation(e,tp,eg,ep,ev,re,r,rp)
if sg then
mg:Merge(sg)
end
if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,tc,tp)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Expand Down
4 changes: 2 additions & 2 deletions c17888577.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ function c17888577.activate(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)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Expand Down
4 changes: 2 additions & 2 deletions c20071842.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ function c20071842.activate(e,tp,eg,ep,ev,re,r,rp)
if tc then
local mg=mg1:Filter(Card.IsCanBeRitualMaterial,tc,tc)
mg:Merge(mg2)
if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,tc,tp)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Expand Down
8 changes: 4 additions & 4 deletions c21105106.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ end
function c21105106.splimit(e,se,sp,st)
return e:GetHandler():IsLocation(LOCATION_HAND) and bit.band(st,SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL
end
function c21105106.mat_filter(c,tp)
function c21105106.ritual_mat_filter(c,tp)
return c:IsLocation(LOCATION_MZONE) and c:IsControler(tp)
end
function c21105106.ritual_mat_group_check(g,tp)
return #g==3 and g:GetClassCount(Card.GetRace)==3
end
function c21105106.discon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1
end
Expand Down Expand Up @@ -90,6 +93,3 @@ function c21105106.rmop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,aux.ExceptThisCard(e))
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
end
function c21105106.mat_group_check(g)
return #g==3 and g:GetClassCount(Card.GetRace)==3
end
10 changes: 5 additions & 5 deletions c22398665.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ function c22398665.operation(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)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Expand All @@ -89,7 +89,7 @@ function c22398665.RitualCheckEqual(g,c,atk)
return g:CheckWithSumEqual(aux.GetCappedAttack,atk,#g,#g)
end
function c22398665.RitualCheck(g,tp,c,atk,greater_or_equal)
return c22398665["RitualCheck"..greater_or_equal](g,c,atk) and Duel.GetMZoneCount(tp,g,tp)>0 and (not c.mat_group_check or c.mat_group_check(g,tp))
return c22398665["RitualCheck"..greater_or_equal](g,c,atk) and Duel.GetMZoneCount(tp,g,tp)>0 and (not c.ritual_mat_group_check or c.ritual_mat_group_check(g,tp))
and (not aux.RCheckAdditional or aux.RCheckAdditional(tp,g,c))
end
function c22398665.RitualCheckAdditional(c,atk,greater_or_equal)
Expand All @@ -114,8 +114,8 @@ function c22398665.RitualUltimateFilter(c,filter,e,tp,m1,m2,attack_function,grea
if m2 then
mg:Merge(m2)
end
if c.mat_filter then
mg=mg:Filter(c.mat_filter,c,tp)
if c.ritual_mat_filter then
mg=mg:Filter(c.ritual_mat_filter,c,tp)
else
mg:RemoveCard(c)
end
Expand Down
8 changes: 4 additions & 4 deletions c2266498.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ end
function c2266498.cfilter(c,e,tp,m,ft)
if bit.band(c:GetType(),0x81)~=0x81 or not c:IsSetCard(0x106) or c:IsPublic()
or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end
if c.mat_filter then
m=m:Filter(c.mat_filter,nil,tp)
if c.ritual_mat_filter then
m=m:Filter(c.ritual_mat_filter,nil,tp)
end
aux.GCheckAdditional=aux.RitualCheckAdditional(c,c:GetLevel(),"Equal")
local res=m:CheckSubGroup(c2266498.fselect,1,math.min(c:GetLevel(),ft),c)
Expand Down Expand Up @@ -47,8 +47,8 @@ function c2266498.activate(e,tp,eg,ep,ev,re,r,rp)
if tg:GetCount()>0 then
Duel.ConfirmCards(1-tp,tg)
local tc=tg:GetFirst()
if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,nil,tp)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,nil,tp)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
aux.GCheckAdditional=aux.RitualCheckAdditional(tc,tc:GetLevel(),"Equal")
Expand Down
10 changes: 5 additions & 5 deletions c24166324.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ function s.spop(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)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Expand All @@ -120,7 +120,7 @@ function s.RitualCheckEqual(g,c,atk)
return g:CheckWithSumEqual(aux.GetCappedAttack,atk,#g,#g)
end
function s.RitualCheck(g,tp,c,atk,greater_or_equal)
return s["RitualCheck"..greater_or_equal](g,c,atk) and Duel.GetMZoneCount(tp,g,tp)>0 and (not c.mat_group_check or c.mat_group_check(g,tp))
return s["RitualCheck"..greater_or_equal](g,c,atk) and Duel.GetMZoneCount(tp,g,tp)>0 and (not c.ritual_mat_group_check or c.ritual_mat_group_check(g,tp))
and (not aux.RCheckAdditional or aux.RCheckAdditional(tp,g,c))
end
function s.RitualCheckAdditional(c,atk,greater_or_equal)
Expand All @@ -145,8 +145,8 @@ function s.RitualUltimateFilter(c,filter,e,tp,m1,m2,attack_function,greater_or_e
if m2 then
mg:Merge(m2)
end
if c.mat_filter then
mg=mg:Filter(c.mat_filter,c,tp)
if c.ritual_mat_filter then
mg=mg:Filter(c.ritual_mat_filter,c,tp)
else
mg:RemoveCard(c)
end
Expand Down
2 changes: 1 addition & 1 deletion c25857246.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function c25857246.initial_effect(c)
e3:SetOperation(c25857246.operation)
c:RegisterEffect(e3)
end
function c25857246.mat_filter(c)
function c25857246.ritual_mat_filter(c)
return not c:IsLevel(8)
end
function c25857246.atkcon(e,tp,eg,ep,ev,re,r,rp)
Expand Down
2 changes: 1 addition & 1 deletion c26674724.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function c26674724.initial_effect(c)
e3:SetOperation(c26674724.tdop)
c:RegisterEffect(e3)
end
function c26674724.mat_filter(c)
function c26674724.ritual_mat_filter(c)
return not c:IsCode(26674724)
end
function c26674724.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Expand Down
4 changes: 2 additions & 2 deletions c28429121.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ function c28429121.activate(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)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Expand Down
8 changes: 4 additions & 4 deletions c31002402.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function c31002402.rfilter2(c,e,tp,m1)
if bit.band(c:GetType(),0x81)~=0x81 or not c:IsSetCard(0x145)
or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end
local mg=m1:Filter(Card.IsCanBeRitualMaterial,c,c)
if c.mat_filter then
mg=mg:Filter(c.mat_filter,c,tp)
if c.ritual_mat_filter then
mg=mg:Filter(c.ritual_mat_filter,c,tp)
end
return mg:IsExists(Card.IsLevel,1,nil,c:GetLevel())
end
Expand All @@ -47,8 +47,8 @@ function c31002402.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=g:Select(tp,1,1,nil):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)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Expand Down
4 changes: 2 additions & 2 deletions c36350300.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ function c36350300.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
if tc then
mg=mg:Filter(Card.IsCanBeRitualMaterial,tc,tc)
if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,tc,tp)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Expand Down
4 changes: 2 additions & 2 deletions c36849933.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ function c36849933.rsop(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)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Expand Down
4 changes: 2 additions & 2 deletions c36982581.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ function c36982581.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=g:Select(tp,1,1,nil):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)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Expand Down
4 changes: 2 additions & 2 deletions c38129297.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.SelectMatchingCard(tp,aux.RitualUltimateFilter,tp,LOCATION_HAND,0,1,1,nil,aux.TRUE,e,tp,Group.CreateGroup(),mg,Card.GetLevel,"Greater")
local tc=tg:GetFirst()
if tc then
if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,tc,tp)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,tc,tp)
end
local lv=tc:GetLevel()
aux.GCheckAdditional=aux.RitualCheckAdditional(tc,tc:GetLevel(),"Greater")
Expand Down
4 changes: 2 additions & 2 deletions c38784726.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ function c38784726.activate(e,tp,eg,ep,ev,re,r,rp)
if mg2 then
mg:Merge(mg2)
end
if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,tc,tp)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Expand Down
4 changes: 2 additions & 2 deletions c39114494.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ function c39114494.riop(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)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Expand Down
2 changes: 1 addition & 1 deletion c39468724.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function c39468724.initial_effect(c)
e3:SetOperation(c39468724.negop)
c:RegisterEffect(e3)
end
function c39468724.mat_filter(c)
function c39468724.ritual_mat_filter(c)
return not c:IsLevel(10)
end
function c39468724.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
Expand Down
4 changes: 2 additions & 2 deletions c42158279.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ function c42158279.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
if tc then
mg=mg:Filter(Card.IsCanBeRitualMaterial,tc,tc)
if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,tc,tp)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Expand Down
2 changes: 1 addition & 1 deletion c44293356.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function s.initial_effect(c)
e2:SetOperation(s.negop)
c:RegisterEffect(e2)
end
function s.mat_filter(c)
function s.ritual_mat_filter(c)
return c:IsAllTypes(TYPE_RITUAL+TYPE_MONSTER)
end
function s.prcost(e,tp,eg,ep,ev,re,r,rp,chk)
Expand Down
8 changes: 4 additions & 4 deletions c46052429.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ end
function c46052429.filter(c,e,tp,m)
if bit.band(c:GetType(),0x81)~=0x81
or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end
if c.mat_filter then
m=m:Filter(c.mat_filter,nil,tp)
if c.ritual_mat_filter then
m=m:Filter(c.ritual_mat_filter,nil,tp)
end
return m:CheckWithSumEqual(Card.GetRitualLevel,c:GetLevel(),1,99,c)
end
Expand All @@ -36,8 +36,8 @@ function c46052429.activate(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.SelectMatchingCard(tp,c46052429.filter,tp,LOCATION_HAND,0,1,1,nil,e,tp,mg)
if tg:GetCount()>0 then
local tc=tg:GetFirst()
if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,nil,tp)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,nil,tp)
end
local lv=tc:GetLevel()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
Expand Down
4 changes: 2 additions & 2 deletions c50596425.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
if tc then
local mg=mg1:Filter(Card.IsCanBeRitualMaterial,tc,tc)
mg:Merge(mg2)
if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,tc,tp)
if tc.ritual_mat_filter then
mg=mg:Filter(tc.ritual_mat_filter,tc,tp)
else
mg:RemoveCard(tc)
end
Expand Down
2 changes: 1 addition & 1 deletion c51124303.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function c51124303.initial_effect(c)
end
function c51124303.spfilter(c,e,tp,mc)
local mg=Group.FromCards(mc)
return c:IsSetCard(0xb4) and bit.band(c:GetType(),0x81)==0x81 and (not c.mat_filter or c.mat_filter(mc,tp)) and (not c.mat_group_check or c.mat_group_check(mg,tp))
return c:IsSetCard(0xb4) and bit.band(c:GetType(),0x81)==0x81 and (not c.ritual_mat_filter or c.ritual_mat_filter(mc,tp)) and (not c.ritual_mat_group_check or c.ritual_mat_group_check(mg,tp))
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true)
and mc:IsCanBeRitualMaterial(c)
end
Expand Down
4 changes: 2 additions & 2 deletions c51510279.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ function c51510279.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tc=rsg:Select(tp,1,1,nil):GetFirst()
local rmg=rmg1:Filter(Card.IsCanBeRitualMaterial,tc,tc)
if tc.mat_filter then
rmg=rmg:Filter(tc.mat_filter,tc,tp)
if tc.ritual_mat_filter then
rmg=rmg:Filter(tc.ritual_mat_filter,tc,tp)
else
rmg:RemoveCard(tc)
end
Expand Down
2 changes: 1 addition & 1 deletion c52068432.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function c52068432.initial_effect(c)
e3:SetOperation(c52068432.remop)
c:RegisterEffect(e3)
end
function c52068432.mat_filter(c)
function c52068432.ritual_mat_filter(c)
return not c:IsLevel(9)
end
function c52068432.tfilter(c,tp)
Expand Down
2 changes: 1 addition & 1 deletion c52846880.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function c52846880.initial_effect(c)
e3:SetOperation(c52846880.operation)
c:RegisterEffect(e3)
end
function c52846880.mat_filter(c)
function c52846880.ritual_mat_filter(c)
return not c:IsCode(52846880)
end
function c52846880.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Expand Down
Loading