Commit b3cb839c authored by edo9300's avatar edo9300 Committed by DailyShana

LV cards cleanup

parent 9c2844c0
...@@ -12,7 +12,7 @@ function c1102515.initial_effect(c) ...@@ -12,7 +12,7 @@ function c1102515.initial_effect(c)
e1:SetOperation(c1102515.operation) e1:SetOperation(c1102515.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c1102515.lvdncount=1 c1102515.lvup={74713516}
c1102515.lvdn={74713516} c1102515.lvdn={74713516}
function c1102515.condition(e,tp,eg,ep,ev,re,r,rp) function c1102515.condition(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1 then e:SetLabel(2) if e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1 then e:SetLabel(2)
......
...@@ -29,9 +29,7 @@ function c11224103.initial_effect(c) ...@@ -29,9 +29,7 @@ function c11224103.initial_effect(c)
e3:SetOperation(c11224103.spop) e3:SetOperation(c11224103.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c11224103.lvupcount=1
c11224103.lvup={48229808} c11224103.lvup={48229808}
c11224103.lvdncount=1
c11224103.lvdn={75830094} c11224103.lvdn={75830094}
function c11224103.bdop(e,tp,eg,ep,ev,re,r,rp) function c11224103.bdop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(11224103,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) e:GetHandler():RegisterFlagEffect(11224103,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
......
...@@ -20,9 +20,7 @@ function c12817939.initial_effect(c) ...@@ -20,9 +20,7 @@ function c12817939.initial_effect(c)
e2:SetOperation(c12817939.spop) e2:SetOperation(c12817939.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c12817939.lvupcount=2
c12817939.lvup={85313220,58206034} c12817939.lvup={85313220,58206034}
c12817939.lvdncount=1
c12817939.lvdn={85313220} c12817939.lvdn={85313220}
function c12817939.disop(e,tp,eg,ep,ev,re,r,rp) function c12817939.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -13,9 +13,7 @@ function c19877898.initial_effect(c) ...@@ -13,9 +13,7 @@ function c19877898.initial_effect(c)
e2:SetCode(EFFECT_UPDATE_DEFENSE) e2:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c19877898.lvupcount=1
c19877898.lvup={34830502} c19877898.lvup={34830502}
c19877898.lvdncount=3
c19877898.lvdn={49441499,34088136,34830502} c19877898.lvdn={49441499,34088136,34830502}
function c19877898.con(e) function c19877898.con(e)
return e:GetHandler():GetFlagEffect(19877898)~=0 return e:GetHandler():GetFlagEffect(19877898)~=0
......
...@@ -32,7 +32,6 @@ function c1995985.initial_effect(c) ...@@ -32,7 +32,6 @@ function c1995985.initial_effect(c)
e5:SetCode(EVENT_FLIP) e5:SetCode(EVENT_FLIP)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c1995985.lvupcount=1
c1995985.lvup={74388798} c1995985.lvup={74388798}
function c1995985.disop(e,tp,eg,ep,ev,re,r,rp) function c1995985.disop(e,tp,eg,ep,ev,re,r,rp)
if not re:GetHandler():IsType(TYPE_SPELL) or rp==tp then return end if not re:GetHandler():IsType(TYPE_SPELL) or rp==tp then return end
......
...@@ -20,9 +20,7 @@ function c23756165.initial_effect(c) ...@@ -20,9 +20,7 @@ function c23756165.initial_effect(c)
e2:SetLabelObject(e1) e2:SetLabelObject(e1)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c23756165.lvupcount=2
c23756165.lvup={50140163,87257460} c23756165.lvup={50140163,87257460}
c23756165.lvdncount=1
c23756165.lvdn={87257460} c23756165.lvdn={87257460}
function c23756165.regop(e,tp,eg,ep,ev,re,r,rp) function c23756165.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -14,15 +14,12 @@ function c25290459.costfilter(c,e,tp) ...@@ -14,15 +14,12 @@ function c25290459.costfilter(c,e,tp)
if not c:IsSetCard(0x41) or not c:IsAbleToGraveAsCost() or not c:IsFaceup() then return false end if not c:IsSetCard(0x41) or not c:IsAbleToGraveAsCost() or not c:IsFaceup() then return false end
local code=c:GetCode() local code=c:GetCode()
local class=_G["c"..code] local class=_G["c"..code]
if class==nil or class.lvupcount==nil then return false end if class==nil or class.lvup==nil then return false end
return Duel.IsExistingMatchingCard(c25290459.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,class,e,tp) return Duel.IsExistingMatchingCard(c25290459.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,class,e,tp)
end end
function c25290459.spfilter(c,class,e,tp) function c25290459.spfilter(c,class,e,tp)
local code=c:GetCode() local code=c:GetCode()
for i=1,class.lvupcount do return c:IsCode(table.unpack(class.lvup)) and c:IsCanBeSpecialSummoned(e,0,tp,true,true)
if code==class.lvup[i] then return c:IsCanBeSpecialSummoned(e,0,tp,true,true) end
end
return false
end end
function c25290459.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c25290459.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c25290459.costfilter,tp,LOCATION_MZONE,0,1,nil,e,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c25290459.costfilter,tp,LOCATION_MZONE,0,1,nil,e,tp) end
...@@ -39,7 +36,7 @@ function c25290459.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +36,7 @@ function c25290459.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local code=e:GetLabel() local code=e:GetLabel()
local class=_G["c"..code] local class=_G["c"..code]
if class==nil or class.lvupcount==nil then return end if class==nil or class.lvup==nil then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c25290459.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,class,e,tp) local g=Duel.SelectMatchingCard(tp,c25290459.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,class,e,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
......
...@@ -47,7 +47,6 @@ function c33776734.initial_effect(c) ...@@ -47,7 +47,6 @@ function c33776734.initial_effect(c)
Duel.RegisterEffect(ge2,0) Duel.RegisterEffect(ge2,0)
end end
end end
c33776734.lvupcount=1
c33776734.lvup={33776734} c33776734.lvup={33776734}
function c33776734.checkop1(e,tp,eg,ep,ev,re,r,rp) function c33776734.checkop1(e,tp,eg,ep,ev,re,r,rp)
if re and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL) then if re and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL) then
......
...@@ -34,9 +34,7 @@ function c34088136.initial_effect(c) ...@@ -34,9 +34,7 @@ function c34088136.initial_effect(c)
e5:SetCode(EVENT_FLIP) e5:SetCode(EVENT_FLIP)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c34088136.lvupcount=2
c34088136.lvup={49441499,34830502} c34088136.lvup={49441499,34830502}
c34088136.lvdncount=1
c34088136.lvdn={49441499} c34088136.lvdn={49441499}
function c34088136.con(e) function c34088136.con(e)
return e:GetHandler():GetFlagEffect(34088136)~=0 return e:GetHandler():GetFlagEffect(34088136)~=0
......
...@@ -34,9 +34,7 @@ function c34830502.initial_effect(c) ...@@ -34,9 +34,7 @@ function c34830502.initial_effect(c)
e5:SetCode(EVENT_FLIP) e5:SetCode(EVENT_FLIP)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c34830502.lvupcount=2
c34830502.lvup={34088136,19877898} c34830502.lvup={34088136,19877898}
c34830502.lvdncount=2
c34830502.lvdn={49441499,34088136} c34830502.lvdn={49441499,34088136}
function c34830502.con(e) function c34830502.con(e)
return e:GetHandler():GetFlagEffect(34830502)~=0 return e:GetHandler():GetFlagEffect(34830502)~=0
......
...@@ -24,9 +24,7 @@ function c37267041.initial_effect(c) ...@@ -24,9 +24,7 @@ function c37267041.initial_effect(c)
e3:SetOperation(c37267041.disop) e3:SetOperation(c37267041.disop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c37267041.lvupcount=1
c37267041.lvup={74388798} c37267041.lvup={74388798}
c37267041.lvdncount=2
c37267041.lvdn={1995985,74388798} c37267041.lvdn={1995985,74388798}
function c37267041.distg(e,c) function c37267041.distg(e,c)
return c:IsType(TYPE_SPELL) return c:IsType(TYPE_SPELL)
......
...@@ -31,9 +31,7 @@ function c46384672.initial_effect(c) ...@@ -31,9 +31,7 @@ function c46384672.initial_effect(c)
e3:SetOperation(c46384672.spop) e3:SetOperation(c46384672.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c46384672.lvupcount=1
c46384672.lvup={73879377} c46384672.lvup={73879377}
c46384672.lvdncount=1
c46384672.lvdn={980973} c46384672.lvdn={980973}
function c46384672.bdop(e,tp,eg,ep,ev,re,r,rp) function c46384672.bdop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(46384672,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) e:GetHandler():RegisterFlagEffect(46384672,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
......
...@@ -30,7 +30,6 @@ function c47507260.initial_effect(c) ...@@ -30,7 +30,6 @@ function c47507260.initial_effect(c)
e3:SetOperation(c47507260.spop) e3:SetOperation(c47507260.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c47507260.lvupcount=1
c47507260.lvup={74591968} c47507260.lvup={74591968}
function c47507260.bdop(e,tp,eg,ep,ev,re,r,rp) function c47507260.bdop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(47507260,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) e:GetHandler():RegisterFlagEffect(47507260,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
......
...@@ -21,9 +21,7 @@ function c48229808.initial_effect(c) ...@@ -21,9 +21,7 @@ function c48229808.initial_effect(c)
e2:SetOperation(c48229808.operation) e2:SetOperation(c48229808.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c48229808.lvupcount=1
c48229808.lvup={11224103} c48229808.lvup={11224103}
c48229808.lvdncount=2
c48229808.lvdn={75830094,11224103} c48229808.lvdn={75830094,11224103}
function c48229808.condition(e,tp,eg,ep,ev,re,r,rp) function c48229808.condition(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and re:IsHasType(EFFECT_TYPE_ACTIVATE) return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and re:IsHasType(EFFECT_TYPE_ACTIVATE)
......
...@@ -33,7 +33,6 @@ function c49441499.initial_effect(c) ...@@ -33,7 +33,6 @@ function c49441499.initial_effect(c)
e5:SetCode(EVENT_FLIP) e5:SetCode(EVENT_FLIP)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c49441499.lvupcount=1
c49441499.lvup={34088136} c49441499.lvup={34088136}
function c49441499.efilter(e,te) function c49441499.efilter(e,te)
return te:IsActiveType(TYPE_SPELL) return te:IsActiveType(TYPE_SPELL)
......
...@@ -7,9 +7,7 @@ function c50140163.initial_effect(c) ...@@ -7,9 +7,7 @@ function c50140163.initial_effect(c)
e1:SetOperation(c50140163.regop) e1:SetOperation(c50140163.regop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c50140163.lvupcount=1
c50140163.lvup={23756165} c50140163.lvup={23756165}
c50140163.lvdncount=2
c50140163.lvdn={23756165,87257460} c50140163.lvdn={23756165,87257460}
function c50140163.regop(e,tp,eg,ep,ev,re,r,rp) function c50140163.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -16,9 +16,7 @@ function c58206034.initial_effect(c) ...@@ -16,9 +16,7 @@ function c58206034.initial_effect(c)
e2:SetValue(LOCATION_REMOVED) e2:SetValue(LOCATION_REMOVED)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c58206034.lvupcount=1
c58206034.lvup={12817939} c58206034.lvup={12817939}
c58206034.lvdncount=2
c58206034.lvdn={85313220,12817939} c58206034.lvdn={85313220,12817939}
function c58206034.discon(e) function c58206034.discon(e)
return e:GetHandler():GetFlagEffect(12817939)~=0 return e:GetHandler():GetFlagEffect(12817939)~=0
......
...@@ -28,9 +28,7 @@ function c59464593.initial_effect(c) ...@@ -28,9 +28,7 @@ function c59464593.initial_effect(c)
e3:SetOperation(c59464593.desop) e3:SetOperation(c59464593.desop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c59464593.lvupcount=1
c59464593.lvup={73879377} c59464593.lvup={73879377}
c59464593.lvdncount=3
c59464593.lvdn={73879377,46384672,980973} c59464593.lvdn={73879377,46384672,980973}
function c59464593.spfilter(c,ft,tp) function c59464593.spfilter(c,ft,tp)
return c:IsCode(73879377) return c:IsCode(73879377)
......
...@@ -17,7 +17,6 @@ function c60482781.initial_effect(c) ...@@ -17,7 +17,6 @@ function c60482781.initial_effect(c)
e2:SetCondition(c60482781.sumcon) e2:SetCondition(c60482781.sumcon)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c60482781.lvdncount=2
c60482781.lvdn={47507260,74591968} c60482781.lvdn={47507260,74591968}
function c60482781.descon(e,tp,eg,ep,ev,re,r,rp) function c60482781.descon(e,tp,eg,ep,ev,re,r,rp)
local d=Duel.GetAttackTarget() local d=Duel.GetAttackTarget()
......
...@@ -17,9 +17,7 @@ function c72443568.initial_effect(c) ...@@ -17,9 +17,7 @@ function c72443568.initial_effect(c)
e2:SetValue(c72443568.efilter) e2:SetValue(c72443568.efilter)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c72443568.lvupcount=1
c72443568.lvup={73665146} c72443568.lvup={73665146}
c72443568.lvdncount=1
c72443568.lvdn={73665146} c72443568.lvdn={73665146}
function c72443568.efilter(e,te) function c72443568.efilter(e,te)
return te:IsActiveType(TYPE_SPELL) and te:GetOwnerPlayer()~=e:GetHandlerPlayer() return te:IsActiveType(TYPE_SPELL) and te:GetOwnerPlayer()~=e:GetHandlerPlayer()
......
...@@ -30,7 +30,6 @@ function c73665146.initial_effect(c) ...@@ -30,7 +30,6 @@ function c73665146.initial_effect(c)
e3:SetOperation(c73665146.spop) e3:SetOperation(c73665146.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c73665146.lvupcount=1
c73665146.lvup={72443568} c73665146.lvup={72443568}
function c73665146.addc(e,tp,eg,ep,ev,re,r,rp) function c73665146.addc(e,tp,eg,ep,ev,re,r,rp)
if ep~=tp then if ep~=tp then
......
...@@ -19,9 +19,7 @@ function c73879377.initial_effect(c) ...@@ -19,9 +19,7 @@ function c73879377.initial_effect(c)
e2:SetOperation(c73879377.desop) e2:SetOperation(c73879377.desop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c73879377.lvupcount=1
c73879377.lvup={46384672} c73879377.lvup={46384672}
c73879377.lvdncount=2
c73879377.lvdn={46384672,980973} c73879377.lvdn={46384672,980973}
function c73879377.cfilter(c,tp) function c73879377.cfilter(c,tp)
local atk=c:GetAttack() local atk=c:GetAttack()
......
...@@ -26,9 +26,7 @@ function c74388798.initial_effect(c) ...@@ -26,9 +26,7 @@ function c74388798.initial_effect(c)
e3:SetOperation(c74388798.spop) e3:SetOperation(c74388798.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c74388798.lvupcount=1
c74388798.lvup={37267041} c74388798.lvup={37267041}
c74388798.lvdncount=1
c74388798.lvdn={1995985} c74388798.lvdn={1995985}
function c74388798.efilter(e,te) function c74388798.efilter(e,te)
return te:IsActiveType(TYPE_SPELL) and te:GetOwnerPlayer()~=e:GetHandlerPlayer() return te:IsActiveType(TYPE_SPELL) and te:GetOwnerPlayer()~=e:GetHandlerPlayer()
......
...@@ -36,9 +36,7 @@ function c74591968.initial_effect(c) ...@@ -36,9 +36,7 @@ function c74591968.initial_effect(c)
e4:SetCondition(c74591968.sumcon) e4:SetCondition(c74591968.sumcon)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c74591968.lvupcount=1
c74591968.lvup={60482781} c74591968.lvup={60482781}
c74591968.lvdncount=1
c74591968.lvdn={47507260} c74591968.lvdn={47507260}
function c74591968.bdop(e,tp,eg,ep,ev,re,r,rp) function c74591968.bdop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(74591968,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) e:GetHandler():RegisterFlagEffect(74591968,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
......
...@@ -21,7 +21,6 @@ function c74713516.initial_effect(c) ...@@ -21,7 +21,6 @@ function c74713516.initial_effect(c)
e2:SetOperation(c74713516.spop) e2:SetOperation(c74713516.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c74713516.lvupcount=1
c74713516.lvup={1102515} c74713516.lvup={1102515}
function c74713516.target(e,tp,eg,ep,ev,re,r,rp,chk) function c74713516.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -27,7 +27,6 @@ function c75830094.initial_effect(c) ...@@ -27,7 +27,6 @@ function c75830094.initial_effect(c)
e3:SetOperation(c75830094.spop) e3:SetOperation(c75830094.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c75830094.lvupcount=1
c75830094.lvup={11224103} c75830094.lvup={11224103}
function c75830094.bdop(e,tp,eg,ep,ev,re,r,rp) function c75830094.bdop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(75830094,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) e:GetHandler():RegisterFlagEffect(75830094,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
......
...@@ -26,7 +26,6 @@ function c85313220.initial_effect(c) ...@@ -26,7 +26,6 @@ function c85313220.initial_effect(c)
e3:SetOperation(c85313220.spop) e3:SetOperation(c85313220.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c85313220.lvupcount=1
c85313220.lvup={12817939} c85313220.lvup={12817939}
function c85313220.disop(e,tp,eg,ep,ev,re,r,rp) function c85313220.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -26,7 +26,6 @@ function c87257460.initial_effect(c) ...@@ -26,7 +26,6 @@ function c87257460.initial_effect(c)
e2:SetLabelObject(e1) e2:SetLabelObject(e1)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c87257460.lvupcount=1
c87257460.lvup={23756165} c87257460.lvup={23756165}
function c87257460.eqcon(e,tp,eg,ep,ev,re,r,rp) function c87257460.eqcon(e,tp,eg,ep,ev,re,r,rp)
local ec=e:GetLabelObject() local ec=e:GetLabelObject()
......
...@@ -19,15 +19,12 @@ function c90500169.filter(c,e,tp) ...@@ -19,15 +19,12 @@ function c90500169.filter(c,e,tp)
if op~=cp and locct<=0 then return false end if op~=cp and locct<=0 then return false end
local code=c:GetCode() local code=c:GetCode()
local class=_G["c"..code] local class=_G["c"..code]
return class and class.lvdncount~=nil and Duel.IsExistingMatchingCard(c90500169.spfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,class,e,tp,op) return class and class.lvdn~=nil and Duel.IsExistingMatchingCard(c90500169.spfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,class,e,tp,op)
end end
function c90500169.spfilter(c,class,e,tp,op) function c90500169.spfilter(c,class,e,tp,op)
if not c:IsControler(op) then return false end if not c:IsControler(op) then return false end
local code=c:GetCode() local code=c:GetCode()
for i=1,class.lvdncount do return c:IsCode(table.unpack(class.lvdn)) and c:IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEUP,op)
if code==class.lvdn[i] then return c:IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEUP,op) end
end
return false
end end
function c90500169.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c90500169.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c90500169.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c90500169.filter(chkc,e,tp) end
...@@ -45,7 +42,7 @@ function c90500169.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +42,7 @@ function c90500169.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)==0 then return end if Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)==0 then return end
if Duel.GetLocationCount(op,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(op,LOCATION_MZONE)<=0 then return end
local class=_G["c"..code] local class=_G["c"..code]
if class==nil or class.lvdncount==nil then return end if class==nil or class.lvdn==nil then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c90500169.spfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,class,e,tp,op) local g=Duel.SelectMatchingCard(tp,c90500169.spfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,class,e,tp,op)
if g:GetCount()>0 then if g:GetCount()>0 then
......
...@@ -13,7 +13,6 @@ function c980973.initial_effect(c) ...@@ -13,7 +13,6 @@ function c980973.initial_effect(c)
e1:SetOperation(c980973.spop) e1:SetOperation(c980973.spop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c980973.lvupcount=1
c980973.lvup={46384672} c980973.lvup={46384672}
function c980973.spcon(e,tp,eg,ep,ev,re,r,rp) function c980973.spcon(e,tp,eg,ep,ev,re,r,rp)
return tp==Duel.GetTurnPlayer() return tp==Duel.GetTurnPlayer()
......
...@@ -22,7 +22,6 @@ function c98585345.initial_effect(c) ...@@ -22,7 +22,6 @@ function c98585345.initial_effect(c)
e2:SetOperation(c98585345.desop) e2:SetOperation(c98585345.desop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c98585345.lvdncount=1
c98585345.lvdn={33776734} c98585345.lvdn={33776734}
function c98585345.descon(e,tp,eg,ep,ev,re,r,rp) function c98585345.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp and (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE) return Duel.GetTurnPlayer()~=tp and (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)
......
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