Commit 8a445623 authored by DailyShana's avatar DailyShana

fix

parent 1e37afaf
......@@ -29,10 +29,15 @@ function c10026986.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c10026986.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
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)
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)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
......@@ -81,10 +81,15 @@ function c10060427.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c10060427.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
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)
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)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
......@@ -36,12 +36,17 @@ function c15545291.otfilter(c)
end
function c15545291.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c15545291.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
return c:GetLevel()>6 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-1
and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
function c15545291.otop(e,tp,eg,ep,ev,re,r,rp,c)
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)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
......@@ -44,12 +44,17 @@ function c23064604.otfilter(c)
end
function c23064604.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c23064604.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
return c:GetLevel()>6 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-1
and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
function c23064604.otop(e,tp,eg,ep,ev,re,r,rp,c)
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)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
......@@ -36,12 +36,17 @@ function c23689697.otfilter(c)
end
function c23689697.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c23689697.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
return c:GetLevel()>6 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-1
and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
function c23689697.otop(e,tp,eg,ep,ev,re,r,rp,c)
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)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
......@@ -24,10 +24,15 @@ function c28348537.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c28348537.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
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)
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)
c:SetMaterial(sg)
Duel.Release(sg, REASON_SUMMON+REASON_MATERIAL)
......
......@@ -28,13 +28,18 @@ function c38589847.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c38589847.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<=0 then mg=mg:Filter(Card.IsControler,nil,tp) end
return ft>-1 and Duel.GetTributeCount(c,mg)>0
end
function c38589847.ottg(e,c)
return c:IsLevelAbove(7)
end
function c38589847.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c38589847.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)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
......@@ -40,11 +40,16 @@ function c40921744.sumcon(e,c)
local tp=c:GetControler()
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)
return c:IsLevelAbove(7) and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
end
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)
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)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
......@@ -97,10 +97,15 @@ function c42880485.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c42880485.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
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)
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)
c:SetMaterial(sg)
Duel.Release(sg, REASON_SUMMON+REASON_MATERIAL)
......
......@@ -28,11 +28,15 @@ function c5186893.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c5186893.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
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)
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)
c:SetMaterial(sg)
Duel.Release(sg, REASON_SUMMON+REASON_MATERIAL)
......
......@@ -35,10 +35,15 @@ function c53199020.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c53199020.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
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)
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)
c:SetMaterial(sg)
Duel.Release(sg, REASON_SUMMON+REASON_MATERIAL)
......
......@@ -39,10 +39,15 @@ function c55690251.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c55690251.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
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)
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)
c:SetMaterial(sg)
Duel.Release(sg, REASON_SUMMON+REASON_MATERIAL)
......
......@@ -36,10 +36,15 @@ function c58494728.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c58494728.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
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)
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)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
......@@ -29,10 +29,15 @@ function c6849042.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c6849042.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
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)
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)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
......@@ -35,12 +35,17 @@ function c69230391.otfilter(c)
end
function c69230391.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c69230391.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
return c:GetLevel()>6 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-1
and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
function c69230391.otop(e,tp,eg,ep,ev,re,r,rp,c)
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)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
......@@ -36,12 +36,17 @@ function c69327790.otfilter(c)
end
function c69327790.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c69327790.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
return c:GetLevel()>6 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-1
and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
function c69327790.otop(e,tp,eg,ep,ev,re,r,rp,c)
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)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
......@@ -65,11 +65,15 @@ function c72258771.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c72258771.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-1
and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
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)
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)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
......@@ -32,10 +32,15 @@ function c76930964.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c76930964.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
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)
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)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
......@@ -29,11 +29,15 @@ function c81254059.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c81254059.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
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)
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)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
......@@ -36,12 +36,17 @@ function c87288189.otfilter(c)
end
function c87288189.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c87288189.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
return c:GetLevel()>6 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-1
and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
function c87288189.otop(e,tp,eg,ep,ev,re,r,rp,c)
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)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
......@@ -36,12 +36,17 @@ function c87602890.otfilter(c)
end
function c87602890.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c87602890.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
return c:GetLevel()>6 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-1
and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
function c87602890.otop(e,tp,eg,ep,ev,re,r,rp,c)
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)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
......@@ -46,10 +46,18 @@ function c88071625.initial_effect(c)
end
function c88071625.otcon(e,c)
if c==nil then return true end
return c:GetLevel()>6 and Duel.GetTributeCount(c)>0
local tp=c:GetControler()
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
function c88071625.otop(e,tp,eg,ep,ev,re,r,rp,c)
local sg=Duel.SelectTribute(tp,c,1,1)
local mg=nil
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)
Duel.Release(sg, REASON_SUMMON+REASON_MATERIAL)
end
......
......@@ -30,11 +30,15 @@ function c96470883.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c96470883.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
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)
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)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
......@@ -43,12 +43,17 @@ function c96570609.otfilter(c)
end
function c96570609.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c96570609.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
return c:GetLevel()>6 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-1
and Duel.GetTributeCount(c,mg)>0
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
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
function c96570609.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c96570609.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)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
......
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