Commit 5fbeb53e authored by DailyShana's avatar DailyShana

revert & update

parent 5e228d2d
...@@ -59,7 +59,7 @@ function c10000000.initial_effect(c) ...@@ -59,7 +59,7 @@ function c10000000.initial_effect(c)
end end
function c10000000.ttcon(e,c) function c10000000.ttcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-3 and Duel.GetTributeCount(c)>=3 return Duel.CheckTribute(c,3)
end end
function c10000000.ttop(e,tp,eg,ep,ev,re,r,rp,c) function c10000000.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3) local g=Duel.SelectTribute(tp,c,3,3)
......
...@@ -55,7 +55,7 @@ function c10000010.initial_effect(c) ...@@ -55,7 +55,7 @@ function c10000010.initial_effect(c)
end end
function c10000010.ttcon(e,c) function c10000010.ttcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-3 and Duel.GetTributeCount(c)>=3 return Duel.CheckTribute(c,3)
end end
function c10000010.ttop(e,tp,eg,ep,ev,re,r,rp,c) function c10000010.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3) local g=Duel.SelectTribute(tp,c,3,3)
......
...@@ -66,7 +66,7 @@ function c10000020.initial_effect(c) ...@@ -66,7 +66,7 @@ function c10000020.initial_effect(c)
end end
function c10000020.ttcon(e,c) function c10000020.ttcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-3 and Duel.GetTributeCount(c)>=3 return Duel.CheckTribute(c,3)
end end
function c10000020.ttop(e,tp,eg,ep,ev,re,r,rp,c) function c10000020.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3) local g=Duel.SelectTribute(tp,c,3,3)
......
...@@ -78,7 +78,7 @@ end ...@@ -78,7 +78,7 @@ end
function c10000080.ttcon2(e,c) function c10000080.ttcon2(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.CheckTribute(c,3,nil,1-tp) return Duel.CheckTribute(c,3,3,nil,1-tp)
end end
function c10000080.ttop2(e,tp,eg,ep,ev,re,r,rp,c) function c10000080.ttop2(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetFieldGroup(tp,0,LOCATION_MZONE) local mg=Duel.GetFieldGroup(tp,0,LOCATION_MZONE)
......
...@@ -29,15 +29,10 @@ function c10026986.otcon(e,c) ...@@ -29,15 +29,10 @@ function c10026986.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c10026986.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c10026986.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c10026986.otop(e,tp,eg,ep,ev,re,r,rp,c) function c10026986.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c10026986.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c10026986.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
...@@ -81,15 +81,10 @@ function c10060427.otcon(e,c) ...@@ -81,15 +81,10 @@ function c10060427.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c10060427.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c10060427.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c10060427.otop(e,tp,eg,ep,ev,re,r,rp,c) function c10060427.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c10060427.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c10060427.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
...@@ -36,17 +36,11 @@ function c15545291.otfilter(c) ...@@ -36,17 +36,11 @@ function c15545291.otfilter(c)
end end
function c15545291.otcon(e,c) function c15545291.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c15545291.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil) local mg=Duel.GetMatchingGroup(c15545291.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c15545291.otop(e,tp,eg,ep,ev,re,r,rp,c) function c15545291.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c15545291.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil) local mg=Duel.GetMatchingGroup(c15545291.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
...@@ -30,7 +30,7 @@ function c15605085.otcon(e,c) ...@@ -30,7 +30,7 @@ function c15605085.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c15605085.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c15605085.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetTributeCount(c,mg)>0 return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
end end
function c15605085.otop(e,tp,eg,ep,ev,re,r,rp,c) function c15605085.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c15605085.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c15605085.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
......
...@@ -59,7 +59,7 @@ function c20003527.sumcon(e,c) ...@@ -59,7 +59,7 @@ function c20003527.sumcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c20003527.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c20003527.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>4 and Duel.GetTributeCount(c,mg)>0 return c:GetLevel()>4 and Duel.CheckTribute(c,1,10,mg)
end end
function c20003527.sumop(e,tp,eg,ep,ev,re,r,rp,c) function c20003527.sumop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c20003527.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c20003527.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
......
...@@ -38,7 +38,7 @@ function c21208154.initial_effect(c) ...@@ -38,7 +38,7 @@ function c21208154.initial_effect(c)
end end
function c21208154.ttcon(e,c) function c21208154.ttcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-3 and Duel.GetTributeCount(c)>=3 return Duel.CheckTribute(c,3)
end end
function c21208154.ttop(e,tp,eg,ep,ev,re,r,rp,c) function c21208154.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3) local g=Duel.SelectTribute(tp,c,3,3)
......
...@@ -27,7 +27,7 @@ function c22996376.initial_effect(c) ...@@ -27,7 +27,7 @@ function c22996376.initial_effect(c)
end end
function c22996376.otcon(e,c) function c22996376.otcon(e,c)
if c==nil then return true end if c==nil then return true end
return c:GetLevel()>6 and Duel.GetTributeCount(c)>0 return c:GetLevel()>6 and Duel.CheckTribute(c,1)
end end
function c22996376.otop(e,tp,eg,ep,ev,re,r,rp,c) function c22996376.otop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,1,1) local g=Duel.SelectTribute(tp,c,1,1)
......
...@@ -44,17 +44,11 @@ function c23064604.otfilter(c) ...@@ -44,17 +44,11 @@ function c23064604.otfilter(c)
end end
function c23064604.otcon(e,c) function c23064604.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c23064604.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil) local mg=Duel.GetMatchingGroup(c23064604.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c23064604.otop(e,tp,eg,ep,ev,re,r,rp,c) function c23064604.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c23064604.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil) local mg=Duel.GetMatchingGroup(c23064604.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
...@@ -31,8 +31,7 @@ function c23309606.otcon(e,c) ...@@ -31,8 +31,7 @@ function c23309606.otcon(e,c)
local hg=Duel.GetFieldGroup(tp,LOCATION_HAND,0) local hg=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
hg:RemoveCard(c) hg:RemoveCard(c)
local mg=Duel.GetMatchingGroup(c23309606.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c23309606.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return hg:GetCount()>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 return hg:GetCount()>0 and Duel.CheckTribute(c,1,1,mg)
and Duel.GetTributeCount(c,mg)>0
and hg:FilterCount(Card.IsAbleToGraveAsCost,nil)==hg:GetCount() and hg:FilterCount(Card.IsAbleToGraveAsCost,nil)==hg:GetCount()
end end
function c23309606.otop(e,tp,eg,ep,ev,re,r,rp,c) function c23309606.otop(e,tp,eg,ep,ev,re,r,rp,c)
......
...@@ -36,17 +36,11 @@ function c23689697.otfilter(c) ...@@ -36,17 +36,11 @@ function c23689697.otfilter(c)
end end
function c23689697.otcon(e,c) function c23689697.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c23689697.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil) local mg=Duel.GetMatchingGroup(c23689697.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c23689697.otop(e,tp,eg,ep,ev,re,r,rp,c) function c23689697.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c23689697.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil) local mg=Duel.GetMatchingGroup(c23689697.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
...@@ -40,7 +40,7 @@ function c25524823.initial_effect(c) ...@@ -40,7 +40,7 @@ function c25524823.initial_effect(c)
end end
function c25524823.ttcon(e,c) function c25524823.ttcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-3 and Duel.GetTributeCount(c)>=3 return Duel.CheckTribute(c,3)
end end
function c25524823.ttop(e,tp,eg,ep,ev,re,r,rp,c) function c25524823.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
...@@ -55,8 +55,7 @@ function c25524823.otcon(e,c) ...@@ -55,8 +55,7 @@ function c25524823.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c25524823.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c25524823.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
and Duel.GetTributeCount(c,mg)>0
end end
function c25524823.otop(e,tp,eg,ep,ev,re,r,rp,c) function c25524823.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c25524823.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c25524823.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
......
...@@ -61,7 +61,7 @@ function c27279764.tlimit(e,c) ...@@ -61,7 +61,7 @@ function c27279764.tlimit(e,c)
end end
function c27279764.ttcon(e,c) function c27279764.ttcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-3 and Duel.GetTributeCount(c)>=3 return Duel.CheckTribute(c,3)
end end
function c27279764.ttop(e,tp,eg,ep,ev,re,r,rp,c) function c27279764.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3) local g=Duel.SelectTribute(tp,c,3,3)
......
...@@ -24,15 +24,10 @@ function c28348537.otcon(e,c) ...@@ -24,15 +24,10 @@ function c28348537.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c28348537.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c28348537.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c28348537.otop(e,tp,eg,ep,ev,re,r,rp,c) function c28348537.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c28348537.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c28348537.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg, REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg, REASON_SUMMON+REASON_MATERIAL)
......
...@@ -23,7 +23,7 @@ function c36354007.initial_effect(c) ...@@ -23,7 +23,7 @@ function c36354007.initial_effect(c)
end end
function c36354007.ttcon(e,c) function c36354007.ttcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetTributeCount(c)>=3 return Duel.CheckTribute(c,3)
end end
function c36354007.ttop(e,tp,eg,ep,ev,re,r,rp,c) function c36354007.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
......
...@@ -34,8 +34,7 @@ function c3825890.otcon(e,c) ...@@ -34,8 +34,7 @@ function c3825890.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c3825890.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c3825890.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
and Duel.GetTributeCount(c,mg)>0
end end
function c3825890.otop(e,tp,eg,ep,ev,re,r,rp,c) function c3825890.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c3825890.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c3825890.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
......
...@@ -28,9 +28,7 @@ function c38589847.otcon(e,c) ...@@ -28,9 +28,7 @@ function c38589847.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c38589847.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c38589847.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c38589847.ottg(e,c) function c38589847.ottg(e,c)
return c:IsLevelAbove(7) return c:IsLevelAbove(7)
......
...@@ -51,7 +51,7 @@ function c3912064.posop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c3912064.posop(e,tp,eg,ep,ev,re,r,rp)
end end
function c3912064.ttcon(e,c) function c3912064.ttcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetTributeCount(c)>=3 return Duel.CheckTribute(c,3)
end end
function c3912064.ttop(e,tp,eg,ep,ev,re,r,rp,c) function c3912064.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
......
...@@ -50,7 +50,7 @@ function c40061558.tlimit(e,c) ...@@ -50,7 +50,7 @@ function c40061558.tlimit(e,c)
end end
function c40061558.ttcon(e,c) function c40061558.ttcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-3 and Duel.GetTributeCount(c)>=3 return Duel.CheckTribute(c,3)
end end
function c40061558.ttop(e,tp,eg,ep,ev,re,r,rp,c) function c40061558.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3) local g=Duel.SelectTribute(tp,c,3,3)
......
...@@ -36,7 +36,7 @@ function c40189917.sumcon(e,c) ...@@ -36,7 +36,7 @@ function c40189917.sumcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c40189917.mfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c40189917.mfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 and Duel.GetTributeCount(c,mg)>0 return Duel.CheckTribute(c,1,1,mg)
end end
function c40189917.sumop(e,tp,eg,ep,ev,re,r,rp,c) function c40189917.sumop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c40189917.mfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c40189917.mfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
......
...@@ -40,16 +40,11 @@ function c40921744.sumcon(e,c) ...@@ -40,16 +40,11 @@ function c40921744.sumcon(e,c)
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c40921744.mfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c40921744.mfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local ag=Duel.GetMatchingGroup(Card.IsAttribute,tp,LOCATION_GRAVE,0,nil,ATTRIBUTE_DARK) local ag=Duel.GetMatchingGroup(Card.IsAttribute,tp,LOCATION_GRAVE,0,nil,ATTRIBUTE_DARK)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
and ag:GetClassCount(Card.GetCode)>=4 and ag:GetClassCount(Card.GetCode)>=4
end end
function c40921744.sumop(e,tp,eg,ep,ev,re,r,rp,c) function c40921744.sumop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c40921744.mfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c40921744.mfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
...@@ -51,8 +51,7 @@ function c41753322.otcon(e,c) ...@@ -51,8 +51,7 @@ function c41753322.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c41753322.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c41753322.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
and Duel.GetTributeCount(c,mg)>0
end end
function c41753322.otop(e,tp,eg,ep,ev,re,r,rp,c) function c41753322.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c41753322.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c41753322.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
......
...@@ -19,7 +19,7 @@ function c42685062.initial_effect(c) ...@@ -19,7 +19,7 @@ function c42685062.initial_effect(c)
end end
function c42685062.sumcon(e,c) function c42685062.sumcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetTributeCount(c)~=0 return Duel.CheckTribute(c,1)
end end
function c42685062.sumop(e,tp,eg,ep,ev,re,r,rp,c) function c42685062.sumop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,1,1) local g=Duel.SelectTribute(tp,c,1,1)
......
...@@ -97,15 +97,10 @@ function c42880485.otcon(e,c) ...@@ -97,15 +97,10 @@ function c42880485.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c42880485.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c42880485.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c42880485.otop(e,tp,eg,ep,ev,re,r,rp,c) function c42880485.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c42880485.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c42880485.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg, REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg, REASON_SUMMON+REASON_MATERIAL)
......
...@@ -38,7 +38,7 @@ function c44910027.initial_effect(c) ...@@ -38,7 +38,7 @@ function c44910027.initial_effect(c)
end end
function c44910027.ttcon(e,c) function c44910027.ttcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-3 and Duel.GetTributeCount(c)>=3 return Duel.CheckTribute(c,3)
end end
function c44910027.ttop(e,tp,eg,ep,ev,re,r,rp,c) function c44910027.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3) local g=Duel.SelectTribute(tp,c,3,3)
......
...@@ -42,7 +42,7 @@ function c51192573.otcon(e,c) ...@@ -42,7 +42,7 @@ function c51192573.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c51192573.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,1-tp) local mg=Duel.GetMatchingGroup(c51192573.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,1-tp)
return c:GetLevel()>6 and Duel.GetTributeCount(c,mg)>0 return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
end end
function c51192573.otop(e,tp,eg,ep,ev,re,r,rp,c) function c51192573.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c51192573.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,1-tp) local mg=Duel.GetMatchingGroup(c51192573.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,1-tp)
......
...@@ -28,18 +28,13 @@ function c5186893.otcon(e,c) ...@@ -28,18 +28,13 @@ function c5186893.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c5186893.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c5186893.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c5186893.otop(e,tp,eg,ep,ev,re,r,rp,c) function c5186893.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c5186893.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c5186893.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg, REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
end end
function c5186893.spcon(e,tp,eg,ep,ev,re,r,rp) function c5186893.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -35,18 +35,13 @@ function c53199020.otcon(e,c) ...@@ -35,18 +35,13 @@ function c53199020.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c53199020.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c53199020.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c53199020.otop(e,tp,eg,ep,ev,re,r,rp,c) function c53199020.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c53199020.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c53199020.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg, REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
end end
function c53199020.chcon1(e,tp,eg,ep,ev,re,r,rp) function c53199020.chcon1(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and re:GetHandler():GetType()==TYPE_SPELL and re:IsHasType(EFFECT_TYPE_ACTIVATE) return ep~=tp and re:GetHandler():GetType()==TYPE_SPELL and re:IsHasType(EFFECT_TYPE_ACTIVATE)
......
...@@ -39,15 +39,10 @@ function c55690251.otcon(e,c) ...@@ -39,15 +39,10 @@ function c55690251.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c55690251.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c55690251.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c55690251.otop(e,tp,eg,ep,ev,re,r,rp,c) function c55690251.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c55690251.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c55690251.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg, REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg, REASON_SUMMON+REASON_MATERIAL)
......
...@@ -51,7 +51,7 @@ function c57793869.initial_effect(c) ...@@ -51,7 +51,7 @@ function c57793869.initial_effect(c)
end end
function c57793869.ttcon(e,c) function c57793869.ttcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-3 and Duel.GetTributeCount(c)>=3 return Duel.CheckTribute(c,3)
end end
function c57793869.ttop(e,tp,eg,ep,ev,re,r,rp,c) function c57793869.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3) local g=Duel.SelectTribute(tp,c,3,3)
......
...@@ -36,15 +36,10 @@ function c58494728.otcon(e,c) ...@@ -36,15 +36,10 @@ function c58494728.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c58494728.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c58494728.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c58494728.otop(e,tp,eg,ep,ev,re,r,rp,c) function c58494728.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c58494728.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c58494728.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
...@@ -18,7 +18,7 @@ function c58554959.initial_effect(c) ...@@ -18,7 +18,7 @@ function c58554959.initial_effect(c)
end end
function c58554959.otcon(e,c) function c58554959.otcon(e,c)
if c==nil then return true end if c==nil then return true end
return c:GetLevel()>6 and Duel.GetFieldGroupCount(c:GetControler(),0,LOCATION_MZONE)~=0 and Duel.GetTributeCount(c)>0 return c:GetLevel()>6 and Duel.CheckTribute(c,1)
end end
function c58554959.otop(e,tp,eg,ep,ev,re,r,rp,c) function c58554959.otop(e,tp,eg,ep,ev,re,r,rp,c)
local sg=Duel.SelectTribute(tp,c,1,1) local sg=Duel.SelectTribute(tp,c,1,1)
......
...@@ -18,7 +18,7 @@ function c61231400.initial_effect(c) ...@@ -18,7 +18,7 @@ function c61231400.initial_effect(c)
end end
function c61231400.otcon(e,c) function c61231400.otcon(e,c)
if c==nil then return true end if c==nil then return true end
return c:GetLevel()>6 and Duel.GetTributeCount(c)>0 return c:GetLevel()>6 and Duel.CheckTribute(c,1)
end end
function c61231400.otop(e,tp,eg,ep,ev,re,r,rp,c) function c61231400.otop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,1,1) local g=Duel.SelectTribute(tp,c,1,1)
......
...@@ -35,7 +35,7 @@ function c62180201.initial_effect(c) ...@@ -35,7 +35,7 @@ function c62180201.initial_effect(c)
end end
function c62180201.ttcon(e,c) function c62180201.ttcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-3 and Duel.GetTributeCount(c)>=3 return Duel.CheckTribute(c,3)
end end
function c62180201.ttop(e,tp,eg,ep,ev,re,r,rp,c) function c62180201.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3) local g=Duel.SelectTribute(tp,c,3,3)
......
...@@ -29,15 +29,10 @@ function c6849042.otcon(e,c) ...@@ -29,15 +29,10 @@ function c6849042.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c6849042.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c6849042.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c6849042.otop(e,tp,eg,ep,ev,re,r,rp,c) function c6849042.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c6849042.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c6849042.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
...@@ -35,17 +35,11 @@ function c69230391.otfilter(c) ...@@ -35,17 +35,11 @@ function c69230391.otfilter(c)
end end
function c69230391.otcon(e,c) function c69230391.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c69230391.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil) local mg=Duel.GetMatchingGroup(c69230391.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c69230391.otop(e,tp,eg,ep,ev,re,r,rp,c) function c69230391.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c69230391.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil) local mg=Duel.GetMatchingGroup(c69230391.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
...@@ -36,17 +36,11 @@ function c69327790.otfilter(c) ...@@ -36,17 +36,11 @@ function c69327790.otfilter(c)
end end
function c69327790.otcon(e,c) function c69327790.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c69327790.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil) local mg=Duel.GetMatchingGroup(c69327790.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c69327790.otop(e,tp,eg,ep,ev,re,r,rp,c) function c69327790.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c69327790.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil) local mg=Duel.GetMatchingGroup(c69327790.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
...@@ -39,7 +39,7 @@ function c70969517.otcon(e,c) ...@@ -39,7 +39,7 @@ function c70969517.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c70969517.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c70969517.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetTributeCount(c,mg)>0 return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
end end
function c70969517.otop(e,tp,eg,ep,ev,re,r,rp,c) function c70969517.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c70969517.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c70969517.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
......
...@@ -65,15 +65,10 @@ function c72258771.otcon(e,c) ...@@ -65,15 +65,10 @@ function c72258771.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c72258771.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c72258771.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c72258771.otop(e,tp,eg,ep,ev,re,r,rp,c) function c72258771.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c72258771.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c72258771.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
...@@ -23,7 +23,7 @@ function c75285069.initial_effect(c) ...@@ -23,7 +23,7 @@ function c75285069.initial_effect(c)
end end
function c75285069.ttcon(e,c) function c75285069.ttcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetTributeCount(c)>=3 return Duel.CheckTribute(c,3)
end end
function c75285069.ttop(e,tp,eg,ep,ev,re,r,rp,c) function c75285069.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
......
...@@ -32,15 +32,10 @@ function c76930964.otcon(e,c) ...@@ -32,15 +32,10 @@ function c76930964.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c76930964.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c76930964.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c76930964.otop(e,tp,eg,ep,ev,re,r,rp,c) function c76930964.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c76930964.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c76930964.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
...@@ -50,7 +50,7 @@ function c78651105.ntop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -50,7 +50,7 @@ function c78651105.ntop(e,tp,eg,ep,ev,re,r,rp,c)
end end
function c78651105.ttcon(e,c) function c78651105.ttcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetTributeCount(c)>=3 return Duel.CheckTribute(c,3)
end end
function c78651105.ttop(e,tp,eg,ep,ev,re,r,rp,c) function c78651105.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
......
...@@ -29,15 +29,10 @@ function c81254059.otcon(e,c) ...@@ -29,15 +29,10 @@ function c81254059.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c81254059.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c81254059.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c81254059.otop(e,tp,eg,ep,ev,re,r,rp,c) function c81254059.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c81254059.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c81254059.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
...@@ -36,17 +36,11 @@ function c87288189.otfilter(c) ...@@ -36,17 +36,11 @@ function c87288189.otfilter(c)
end end
function c87288189.otcon(e,c) function c87288189.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c87288189.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil) local mg=Duel.GetMatchingGroup(c87288189.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c87288189.otop(e,tp,eg,ep,ev,re,r,rp,c) function c87288189.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c87288189.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil) local mg=Duel.GetMatchingGroup(c87288189.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
...@@ -36,17 +36,11 @@ function c87602890.otfilter(c) ...@@ -36,17 +36,11 @@ function c87602890.otfilter(c)
end end
function c87602890.otcon(e,c) function c87602890.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c87602890.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil) local mg=Duel.GetMatchingGroup(c87602890.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c87602890.otop(e,tp,eg,ep,ev,re,r,rp,c) function c87602890.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c87602890.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil) local mg=Duel.GetMatchingGroup(c87602890.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
...@@ -46,20 +46,12 @@ function c88071625.initial_effect(c) ...@@ -46,20 +46,12 @@ function c88071625.initial_effect(c)
end end
function c88071625.otcon(e,c) function c88071625.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() return c:GetLevel()>6 and Duel.CheckTribute(c,1)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local mg=nil
if ft<=0 then mg=Duel.GetFieldGroup(tp,LOCATION_MZONE,0) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c88071625.otop(e,tp,eg,ep,ev,re,r,rp,c) function c88071625.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=nil local sg=Duel.SelectTribute(tp,c,1,1)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=Duel.GetFieldGroup(tp,LOCATION_MZONE,0)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg, REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
end end
function c88071625.valcheck(e,c) function c88071625.valcheck(e,c)
local g=c:GetMaterial() local g=c:GetMaterial()
......
...@@ -42,7 +42,7 @@ function c94092230.tlimit(e,c) ...@@ -42,7 +42,7 @@ function c94092230.tlimit(e,c)
end end
function c94092230.ttcon(e,c) function c94092230.ttcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetTributeCount(c)>=3 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-3 return Duel.CheckTribute(c,3)
end end
function c94092230.ttop(e,tp,eg,ep,ev,re,r,rp,c) function c94092230.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3) local g=Duel.SelectTribute(tp,c,3,3)
......
...@@ -18,7 +18,7 @@ function c95701283.initial_effect(c) ...@@ -18,7 +18,7 @@ function c95701283.initial_effect(c)
end end
function c95701283.otcon(e,c) function c95701283.otcon(e,c)
if c==nil then return true end if c==nil then return true end
return c:GetLevel()>6 and Duel.GetTributeCount(c)>0 return c:GetLevel()>6 and Duel.CheckTribute(c,1)
end end
function c95701283.otop(e,tp,eg,ep,ev,re,r,rp,c) function c95701283.otop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,1,1) local g=Duel.SelectTribute(tp,c,1,1)
......
...@@ -30,15 +30,10 @@ function c96470883.otcon(e,c) ...@@ -30,15 +30,10 @@ function c96470883.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c96470883.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c96470883.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return c:GetLevel()>6 and ft>-1 and Duel.GetTributeCount(c,mg)>0
end end
function c96470883.otop(e,tp,eg,ep,ev,re,r,rp,c) function c96470883.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c96470883.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local mg=Duel.GetMatchingGroup(c96470883.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
mg=mg:Filter(Card.IsControler,nil,tp)
end
local sg=Duel.SelectTribute(tp,c,1,1,mg) local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
...@@ -44,7 +44,7 @@ end ...@@ -44,7 +44,7 @@ end
function c96570609.otcon(e,c) function c96570609.otcon(e,c)
if c==nil then return true end if c==nil then return true end
local mg=Duel.GetMatchingGroup(c96570609.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil) local mg=Duel.GetMatchingGroup(c96570609.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
return c:GetLevel()>6 and Duel.CheckTribute(c,1,mg) return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
end end
function c96570609.otop(e,tp,eg,ep,ev,re,r,rp,c) function c96570609.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c96570609.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil) local mg=Duel.GetMatchingGroup(c96570609.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
......
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