Commit d5cd4823 authored by DailyShana's avatar DailyShana

update summon proc

parent 285e313f
......@@ -57,16 +57,16 @@ function c10000000.initial_effect(c)
e7:SetOperation(c10000000.desop)
c:RegisterEffect(e7)
end
function c10000000.ttcon(e,c)
function c10000000.ttcon(e,c,minc)
if c==nil then return true end
return Duel.CheckTribute(c,3)
return minc<=3 and Duel.CheckTribute(c,3)
end
function c10000000.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3)
c:SetMaterial(g)
Duel.Release(g,REASON_SUMMON+REASON_MATERIAL)
end
function c10000000.setcon(e,c)
function c10000000.setcon(e,c,minc)
if not c then return true end
return false
end
......
......@@ -53,16 +53,16 @@ function c10000010.initial_effect(c)
e7:SetOperation(c10000010.desop)
c:RegisterEffect(e7)
end
function c10000010.ttcon(e,c)
function c10000010.ttcon(e,c,minc)
if c==nil then return true end
return Duel.CheckTribute(c,3)
return minc<=3 and Duel.CheckTribute(c,3)
end
function c10000010.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3)
c:SetMaterial(g)
Duel.Release(g,REASON_SUMMON+REASON_MATERIAL)
end
function c10000010.setcon(e,c)
function c10000010.setcon(e,c,minc)
if not c then return true end
return false
end
......
......@@ -64,16 +64,16 @@ function c10000020.initial_effect(c)
e9:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e9)
end
function c10000020.ttcon(e,c)
function c10000020.ttcon(e,c,minc)
if c==nil then return true end
return Duel.CheckTribute(c,3)
return minc<=3 and Duel.CheckTribute(c,3)
end
function c10000020.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3)
c:SetMaterial(g)
Duel.Release(g,REASON_SUMMON+REASON_MATERIAL)
end
function c10000020.setcon(e,c)
function c10000020.setcon(e,c,minc)
if not c then return true end
return false
end
......
......@@ -66,19 +66,19 @@ function c10000080.initial_effect(c)
e9:SetOperation(c10000080.spop)
c:RegisterEffect(e9)
end
function c10000080.ttcon1(e,c)
function c10000080.ttcon1(e,c,minc)
if c==nil then return true end
return Duel.CheckTribute(c,3)
return minc<=3 and Duel.CheckTribute(c,3)
end
function c10000080.ttop1(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3)
c:SetMaterial(g)
Duel.Release(g,REASON_SUMMON+REASON_MATERIAL)
end
function c10000080.ttcon2(e,c)
function c10000080.ttcon2(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
return Duel.CheckTribute(c,3,3,nil,1-tp)
return minc<=3 and Duel.CheckTribute(c,3,3,nil,1-tp)
end
function c10000080.ttop2(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetFieldGroup(tp,0,LOCATION_MZONE)
......@@ -86,7 +86,7 @@ function c10000080.ttop2(e,tp,eg,ep,ev,re,r,rp,c)
c:SetMaterial(g)
Duel.Release(g,REASON_SUMMON+REASON_MATERIAL)
end
function c10000080.setcon(e,c)
function c10000080.setcon(e,c,minc)
if not c then return true end
return false
end
......
......@@ -25,11 +25,11 @@ end
function c10026986.cfilter(c,tp)
return c:IsSetCard(0x3e) and c:IsRace(RACE_REPTILE) and (c:IsControler(tp) or c:IsFaceup())
end
function c10026986.otcon(e,c)
function c10026986.otcon(e,c,minc)
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.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -77,11 +77,11 @@ end
function c10060427.otfilter(c,tp)
return c:IsSetCard(0x1d) and (c:IsControler(tp) or c:IsFaceup())
end
function c10060427.otcon(e,c)
function c10060427.otcon(e,c,minc)
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.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -34,10 +34,10 @@ end
function c15545291.otfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE
end
function c15545291.otcon(e,c)
function c15545291.otcon(e,c,minc)
if c==nil then return true end
local mg=Duel.GetMatchingGroup(c15545291.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -26,11 +26,11 @@ end
function c15605085.otfilter(c,tp)
return c:IsSetCard(0x2) and (c:IsControler(tp) or c:IsFaceup())
end
function c15605085.otcon(e,c)
function c15605085.otcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c15605085.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
end
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)
......
......@@ -13,7 +13,7 @@ function c19700943.initial_effect(c)
e2:SetOperation(c19700943.atkop)
c:RegisterEffect(e2)
end
function c19700943.sumcon(e,c)
function c19700943.sumcon(e,c,minc)
if not c then return true end
return false
end
......
......@@ -55,15 +55,19 @@ end
function c20003527.cfilter(c,tp)
return c:IsAttribute(ATTRIBUTE_WATER) and (c:IsControler(tp) or c:IsFaceup())
end
function c20003527.sumcon(e,c)
function c20003527.sumcon(e,c,minc)
if c==nil then return true end
local min=1
if minc>=1 then min=minc end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c20003527.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>4 and Duel.CheckTribute(c,1,10,mg)
return c:GetLevel()>4 and Duel.CheckTribute(c,min,10,mg)
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,minc)
local min=1
if minc>=1 then min=minc end
local mg=Duel.GetMatchingGroup(c20003527.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local sg=Duel.SelectTribute(tp,c,1,10,mg)
local sg=Duel.SelectTribute(tp,c,min,10,mg)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
end
......
......@@ -64,10 +64,10 @@ end
function c20447641.ttfilter(c)
return c:GetOriginalCode()==20447641 and c:IsReleasable() and c:GetFlagEffect(20447641)~=0
end
function c20447641.ttcon(e,c)
function c20447641.ttcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
return minc<=3 and Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.IsExistingMatchingCard(c20447641.ttfilter,tp,LOCATION_MZONE,0,1,nil)
end
function c20447641.tttg(e,c)
......
......@@ -36,9 +36,9 @@ function c21208154.initial_effect(c)
e6:SetOperation(c21208154.regop)
c:RegisterEffect(e6)
end
function c21208154.ttcon(e,c)
function c21208154.ttcon(e,c,minc)
if c==nil then return true end
return Duel.CheckTribute(c,3)
return minc<=3 and Duel.CheckTribute(c,3)
end
function c21208154.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3)
......
......@@ -25,9 +25,9 @@ function c22996376.initial_effect(c)
e3:SetOperation(c22996376.thop)
c:RegisterEffect(e3)
end
function c22996376.otcon(e,c)
function c22996376.otcon(e,c,minc)
if c==nil then return true end
return c:GetLevel()>6 and Duel.CheckTribute(c,1)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1)
end
function c22996376.otop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,1,1)
......
......@@ -42,10 +42,10 @@ end
function c23064604.otfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE
end
function c23064604.otcon(e,c)
function c23064604.otcon(e,c,minc)
if c==nil then return true end
local mg=Duel.GetMatchingGroup(c23064604.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -25,13 +25,13 @@ end
function c23309606.otfilter(c,tp)
return c:IsAttackAbove(2000) and (c:IsControler(tp) or c:IsFaceup())
end
function c23309606.otcon(e,c)
function c23309606.otcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
local hg=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
hg:RemoveCard(c)
local mg=Duel.GetMatchingGroup(c23309606.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return hg:GetCount()>0 and Duel.CheckTribute(c,1,1,mg)
return hg:GetCount()>0 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
and hg:FilterCount(Card.IsAbleToGraveAsCost,nil)==hg:GetCount()
end
function c23309606.otop(e,tp,eg,ep,ev,re,r,rp,c)
......
......@@ -34,10 +34,10 @@ end
function c23689697.otfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE
end
function c23689697.otcon(e,c)
function c23689697.otcon(e,c,minc)
if c==nil then return true end
local mg=Duel.GetMatchingGroup(c23689697.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -38,9 +38,9 @@ function c25524823.initial_effect(c)
e3:SetLabelObject(e4)
e4:SetLabelObject(e3)
end
function c25524823.ttcon(e,c)
function c25524823.ttcon(e,c,minc)
if c==nil then return true end
return Duel.CheckTribute(c,3)
return minc<=3 and Duel.CheckTribute(c,3)
end
function c25524823.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
......@@ -51,11 +51,11 @@ end
function c25524823.otfilter(c,tp)
return c:IsSetCard(0x2e) and (c:IsControler(tp) or c:IsFaceup())
end
function c25524823.otcon(e,c)
function c25524823.otcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c25524823.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
end
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)
......
......@@ -59,9 +59,9 @@ end
function c27279764.tlimit(e,c)
return not c:IsSetCard(0xaa)
end
function c27279764.ttcon(e,c)
function c27279764.ttcon(e,c,minc)
if c==nil then return true end
return Duel.CheckTribute(c,3)
return minc<=3 and Duel.CheckTribute(c,3)
end
function c27279764.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3)
......
......@@ -20,11 +20,11 @@ end
function c28348537.otfilter(c,tp)
return c:IsRace(RACE_SPELLCASTER) and (c:IsControler(tp) or c:IsFaceup())
end
function c28348537.otcon(e,c)
function c28348537.otcon(e,c,minc)
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.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -21,9 +21,9 @@ function c36354007.initial_effect(c)
e2:SetOperation(c36354007.desop)
c:RegisterEffect(e2)
end
function c36354007.ttcon(e,c)
function c36354007.ttcon(e,c,minc)
if c==nil then return true end
return Duel.CheckTribute(c,3)
return minc<=3 and Duel.CheckTribute(c,3)
end
function c36354007.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
......
......@@ -30,11 +30,11 @@ end
function c3825890.otfilter(c,tp)
return c:IsSetCard(0x2e) and (c:IsControler(tp) or c:IsFaceup())
end
function c3825890.otcon(e,c)
function c3825890.otcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c3825890.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
end
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)
......
......@@ -24,11 +24,11 @@ end
function c38589847.otfilter(c,tp)
return c:IsLevelAbove(5) and (c:IsControler(tp) or c:IsFaceup())
end
function c38589847.otcon(e,c)
function c38589847.otcon(e,c,minc)
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.CheckTribute(c,1,1,mg)
return minc<=1 and Duel.CheckTribute(c,1,1,mg)
end
function c38589847.ottg(e,c)
return c:IsLevelAbove(7)
......
......@@ -49,9 +49,9 @@ function c3912064.posop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()==0 then return end
Duel.ChangePosition(g,POS_FACEUP_ATTACK)
end
function c3912064.ttcon(e,c)
function c3912064.ttcon(e,c,minc)
if c==nil then return true end
return Duel.CheckTribute(c,3)
return minc<=3 and Duel.CheckTribute(c,3)
end
function c3912064.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
......
......@@ -48,9 +48,9 @@ end
function c40061558.tlimit(e,c)
return not c:IsSetCard(0xaa)
end
function c40061558.ttcon(e,c)
function c40061558.ttcon(e,c,minc)
if c==nil then return true end
return Duel.CheckTribute(c,3)
return minc<=3 and Duel.CheckTribute(c,3)
end
function c40061558.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3)
......
......@@ -32,11 +32,11 @@ end
function c40189917.mfilter(c,tp)
return c:IsSetCard(0x2c) and (c:IsControler(tp) or c:IsFaceup())
end
function c40189917.sumcon(e,c)
function c40189917.sumcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c40189917.mfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return Duel.CheckTribute(c,1,1,mg)
return minc<=1 and Duel.CheckTribute(c,1,1,mg)
end
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)
......
--堕天使ゼラート
function c40921744.initial_effect(c)
--special summon
--summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(40921744,0))
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE)
......@@ -35,12 +35,12 @@ end
function c40921744.mfilter(c,tp)
return c:IsAttribute(ATTRIBUTE_DARK) and (c:IsControler(tp) or c:IsFaceup())
end
function c40921744.sumcon(e,c)
function c40921744.sumcon(e,c,minc)
if c==nil then return true end
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:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
and ag:GetClassCount(Card.GetCode)>=4
end
function c40921744.sumop(e,tp,eg,ep,ev,re,r,rp,c)
......
......@@ -47,11 +47,11 @@ end
function c41753322.otfilter(c,tp)
return c:IsRace(RACE_DINOSAUR) and (c:IsControler(tp) or c:IsFaceup())
end
function c41753322.otcon(e,c)
function c41753322.otcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c41753322.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
end
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)
......
......@@ -17,9 +17,9 @@ function c42685062.initial_effect(c)
e2:SetValue(SUMMON_TYPE_ADVANCE)
c:RegisterEffect(e2)
end
function c42685062.sumcon(e,c)
function c42685062.sumcon(e,c,minc)
if c==nil then return true end
return Duel.CheckTribute(c,1)
return minc<=1 and Duel.CheckTribute(c,1)
end
function c42685062.sumop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,1,1)
......
......@@ -93,11 +93,11 @@ end
function c42880485.otfilter(c,tp)
return c:IsSetCard(0x9a) and (c:IsControler(tp) or c:IsFaceup())
end
function c42880485.otcon(e,c)
function c42880485.otcon(e,c,minc)
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.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -36,9 +36,9 @@ function c44910027.initial_effect(c)
e4:SetCode(EFFECT_MATCH_KILL)
c:RegisterEffect(e4)
end
function c44910027.ttcon(e,c)
function c44910027.ttcon(e,c,minc)
if c==nil then return true end
return Duel.CheckTribute(c,3)
return minc<=3 and Duel.CheckTribute(c,3)
end
function c44910027.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3)
......
......@@ -38,11 +38,11 @@ end
function c51192573.otfilter(c,tp)
return c:GetOwner()==tp
end
function c51192573.otcon(e,c)
function c51192573.otcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c51192573.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,1-tp)
return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
end
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)
......
......@@ -24,11 +24,11 @@ end
function c5186893.otfilter(c,tp)
return c:IsRace(RACE_ZOMBIE) and (c:IsControler(tp) or c:IsFaceup())
end
function c5186893.otcon(e,c)
function c5186893.otcon(e,c,minc)
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.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -31,11 +31,11 @@ end
function c53199020.otfilter(c,tp)
return c:IsSetCard(0x35) and (c:IsControler(tp) or c:IsFaceup())
end
function c53199020.otcon(e,c)
function c53199020.otcon(e,c,minc)
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.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -35,11 +35,11 @@ end
function c55690251.otfilter(c,tp)
return c:IsRace(RACE_FAIRY) and (c:IsControler(tp) or c:IsFaceup())
end
function c55690251.otcon(e,c)
function c55690251.otcon(e,c,minc)
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.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -49,9 +49,9 @@ function c57793869.initial_effect(c)
e7:SetOperation(c57793869.desop)
c:RegisterEffect(e7)
end
function c57793869.ttcon(e,c)
function c57793869.ttcon(e,c,minc)
if c==nil then return true end
return Duel.CheckTribute(c,3)
return minc<=3 and Duel.CheckTribute(c,3)
end
function c57793869.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3)
......
......@@ -32,11 +32,11 @@ end
function c58494728.otfilter(c,tp)
return c:IsSetCard(0x100a) and (c:IsControler(tp) or c:IsFaceup())
end
function c58494728.otcon(e,c)
function c58494728.otcon(e,c,minc)
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.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -16,9 +16,9 @@ function c58554959.initial_effect(c)
e2:SetCode(EFFECT_PIERCE)
c:RegisterEffect(e2)
end
function c58554959.otcon(e,c)
function c58554959.otcon(e,c,minc)
if c==nil then return true end
return c:GetLevel()>6 and Duel.CheckTribute(c,1)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1)
end
function c58554959.otop(e,tp,eg,ep,ev,re,r,rp,c)
local sg=Duel.SelectTribute(tp,c,1,1)
......
......@@ -37,7 +37,7 @@ function c60482781.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function c60482781.sumcon(e,c)
function c60482781.sumcon(e,c,minc)
if not c then return true end
return false
end
......@@ -16,9 +16,9 @@ function c61231400.initial_effect(c)
e2:SetCode(EFFECT_PIERCE)
c:RegisterEffect(e2)
end
function c61231400.otcon(e,c)
function c61231400.otcon(e,c,minc)
if c==nil then return true end
return c:GetLevel()>6 and Duel.CheckTribute(c,1)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1)
end
function c61231400.otop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,1,1)
......
......@@ -33,9 +33,9 @@ function c62180201.initial_effect(c)
e5:SetValue(c62180201.defval)
c:RegisterEffect(e5)
end
function c62180201.ttcon(e,c)
function c62180201.ttcon(e,c,minc)
if c==nil then return true end
return Duel.CheckTribute(c,3)
return minc<=3 and Duel.CheckTribute(c,3)
end
function c62180201.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3)
......
......@@ -36,9 +36,9 @@ function c65959844.initial_effect(c)
e4:SetOperation(c65959844.desop)
c:RegisterEffect(e4)
end
function c65959844.ntcon(e,c)
function c65959844.ntcon(e,c,minc)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
return minc==0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end
function c65959844.nttg(e,c)
return c:IsLevelAbove(5) and c:IsType(TYPE_DUAL)
......
......@@ -25,11 +25,11 @@ end
function c6849042.otfilter(c,tp)
return c:IsRace(RACE_DINOSAUR) and (c:IsControler(tp) or c:IsFaceup())
end
function c6849042.otcon(e,c)
function c6849042.otcon(e,c,minc)
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.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -33,10 +33,10 @@ end
function c69230391.otfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE
end
function c69230391.otcon(e,c)
function c69230391.otcon(e,c,minc)
if c==nil then return true end
local mg=Duel.GetMatchingGroup(c69230391.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -34,10 +34,10 @@ end
function c69327790.otfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE
end
function c69327790.otcon(e,c)
function c69327790.otcon(e,c,minc)
if c==nil then return true end
local mg=Duel.GetMatchingGroup(c69327790.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -35,11 +35,11 @@ end
function c70969517.otfilter(c,tp)
return c:IsSetCard(0x1b) and (c:IsControler(tp) or c:IsFaceup())
end
function c70969517.otcon(e,c)
function c70969517.otcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c70969517.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
end
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)
......
......@@ -61,11 +61,11 @@ end
function c72258771.otfilter(c,tp)
return c:IsSetCard(0x1d) and (c:IsControler(tp) or c:IsFaceup())
end
function c72258771.otcon(e,c)
function c72258771.otcon(e,c,minc)
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.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -25,9 +25,9 @@ function c72497366.initial_effect(c)
e3:SetValue(1)
c:RegisterEffect(e3)
end
function c72497366.ntcon(e,c)
function c72497366.ntcon(e,c,minc)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
return minc==0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end
function c72497366.nttg(e,c)
return c:IsLevelAbove(5) and c:IsRace(RACE_FIEND)
......
......@@ -81,7 +81,7 @@ function c74591968.spop(e,tp,eg,ep,ev,re,r,rp)
tc:CompleteProcedure()
end
end
function c74591968.sumcon(e,c)
function c74591968.sumcon(e,c,minc)
if not c then return true end
return false
end
......@@ -21,9 +21,9 @@ function c75285069.initial_effect(c)
e2:SetOperation(c75285069.desop)
c:RegisterEffect(e2)
end
function c75285069.ttcon(e,c)
function c75285069.ttcon(e,c,minc)
if c==nil then return true end
return Duel.CheckTribute(c,3)
return minc<=3 and Duel.CheckTribute(c,3)
end
function c75285069.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
......
......@@ -28,11 +28,11 @@ end
function c76930964.otfilter(c,tp)
return c:IsSetCard(0x2b) and (c:IsControler(tp) or c:IsFaceup())
end
function c76930964.otcon(e,c)
function c76930964.otcon(e,c,minc)
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.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -48,9 +48,9 @@ function c78651105.ntop(e,tp,eg,ep,ev,re,r,rp,c)
e1:SetValue(1900)
c:RegisterEffect(e1)
end
function c78651105.ttcon(e,c)
function c78651105.ttcon(e,c,minc)
if c==nil then return true end
return Duel.CheckTribute(c,3)
return minc<=3 and Duel.CheckTribute(c,3)
end
function c78651105.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
......
......@@ -40,10 +40,10 @@ end
function c80230510.rmfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
end
function c80230510.otcon(e,c)
function c80230510.otcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
return minc<=2 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c80230510.rmfilter,tp,LOCATION_GRAVE,0,1,nil)
and Duel.IsExistingMatchingCard(c80230510.rmfilter,tp,0,LOCATION_GRAVE,1,nil)
end
......
......@@ -25,11 +25,11 @@ end
function c81254059.cfilter(c,tp)
return c:IsSetCard(0x3e) and c:IsRace(RACE_REPTILE) and (c:IsControler(tp) or c:IsFaceup())
end
function c81254059.otcon(e,c)
function c81254059.otcon(e,c,minc)
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.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -34,10 +34,10 @@ end
function c87288189.otfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE
end
function c87288189.otcon(e,c)
function c87288189.otcon(e,c,minc)
if c==nil then return true end
local mg=Duel.GetMatchingGroup(c87288189.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -34,10 +34,10 @@ end
function c87602890.otfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE
end
function c87602890.otcon(e,c)
function c87602890.otcon(e,c,minc)
if c==nil then return true end
local mg=Duel.GetMatchingGroup(c87602890.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -44,9 +44,9 @@ function c88071625.initial_effect(c)
e6:SetOperation(c88071625.copyop)
c:RegisterEffect(e6)
end
function c88071625.otcon(e,c)
function c88071625.otcon(e,c,minc)
if c==nil then return true end
return c:GetLevel()>6 and Duel.CheckTribute(c,1)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1)
end
function c88071625.otop(e,tp,eg,ep,ev,re,r,rp,c)
local sg=Duel.SelectTribute(tp,c,1,1)
......
......@@ -41,9 +41,11 @@ end
function c92001300.addc(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0xb,1)
end
function c92001300.sumcon(e,c)
function c92001300.sumcon(e,c,minc)
if c==nil then return e:GetHandler():IsReleasable() end
local mi,ma=c:GetTributeRequirement()
if mi<minc then mi=minc end
if ma<mi then return false end
return ma>0 and e:GetHandler():GetCounter(0xb)>=mi and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end
function c92001300.sumop(e,tp,eg,ep,ev,re,r,rp,c)
......
......@@ -40,9 +40,9 @@ end
function c94092230.tlimit(e,c)
return not c:IsSetCard(0x100a)
end
function c94092230.ttcon(e,c)
function c94092230.ttcon(e,c,minc)
if c==nil then return true end
return Duel.CheckTribute(c,3)
return minc<=3 and Duel.CheckTribute(c,3)
end
function c94092230.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3)
......
......@@ -16,9 +16,9 @@ function c95701283.initial_effect(c)
e2:SetCode(EFFECT_PIERCE)
c:RegisterEffect(e2)
end
function c95701283.otcon(e,c)
function c95701283.otcon(e,c,minc)
if c==nil then return true end
return c:GetLevel()>6 and Duel.CheckTribute(c,1)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1)
end
function c95701283.otop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,1,1)
......
......@@ -26,11 +26,11 @@ end
function c96470883.otfilter(c,tp)
return c:IsRace(RACE_PLANT) and (c:IsControler(tp) or c:IsFaceup())
end
function c96470883.otcon(e,c)
function c96470883.otcon(e,c,minc)
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.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
......@@ -41,10 +41,10 @@ end
function c96570609.otfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE
end
function c96570609.otcon(e,c)
function c96570609.otcon(e,c,minc)
if c==nil then return true end
local mg=Duel.GetMatchingGroup(c96570609.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
return c:GetLevel()>6 and Duel.CheckTribute(c,1,1,mg)
return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
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)
......
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