Commit 68ed7426 authored by mercury233's avatar mercury233

fix

parent 33221871
...@@ -31,7 +31,7 @@ function c100417013.filter(c) ...@@ -31,7 +31,7 @@ function c100417013.filter(c)
return c:IsPreviousLocation(LOCATION_GRAVE) return c:IsPreviousLocation(LOCATION_GRAVE)
end end
function c100417013.cfilter(c) function c100417013.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x270) return c:IsFaceup() and c:IsSetCard(0x271)
end end
function c100417013.cfilter1(c) function c100417013.cfilter1(c)
return c:IsFaceup() and c:IsCode(100417014) return c:IsFaceup() and c:IsCode(100417014)
......
...@@ -30,7 +30,7 @@ function c100417014.filter(c) ...@@ -30,7 +30,7 @@ function c100417014.filter(c)
return c:IsPreviousLocation(LOCATION_GRAVE) return c:IsPreviousLocation(LOCATION_GRAVE)
end end
function c100417014.effspfilter(c,e,tp) function c100417014.effspfilter(c,e,tp)
return c:IsSetCard(0x270) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x271) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c100417014.efftg(e,tp,eg,ep,ev,re,r,rp,chk) function c100417014.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
...@@ -54,7 +54,7 @@ function c100417014.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,7 @@ function c100417014.spcon(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and eg:IsExists(c100417014.filter,1,nil) return rp~=tp and eg:IsExists(c100417014.filter,1,nil)
end end
function c100417014.spfilter(c,e,tp,mc) function c100417014.spfilter(c,e,tp,mc)
return c:IsSetCard(0x270) and c:IsType(TYPE_XYZ) and mc:IsCanBeXyzMaterial(c) return c:IsSetCard(0x271) and c:IsType(TYPE_XYZ) and mc:IsCanBeXyzMaterial(c)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0
end end
function c100417014.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c100417014.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -31,7 +31,7 @@ function c100417015.filter(c) ...@@ -31,7 +31,7 @@ function c100417015.filter(c)
return c:IsPreviousLocation(LOCATION_GRAVE) return c:IsPreviousLocation(LOCATION_GRAVE)
end end
function c100417015.cfilter(c) function c100417015.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x270) return c:IsFaceup() and c:IsSetCard(0x271)
end end
function c100417015.effcon(e,tp,eg,ep,ev,re,r,rp,chk) function c100417015.effcon(e,tp,eg,ep,ev,re,r,rp,chk)
return Duel.IsExistingMatchingCard(c100417015.cfilter,tp,LOCATION_MZONE,0,1,e:GetHandler()) return Duel.IsExistingMatchingCard(c100417015.cfilter,tp,LOCATION_MZONE,0,1,e:GetHandler())
...@@ -57,7 +57,7 @@ function c100417015.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +57,7 @@ function c100417015.spcon(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and eg:IsExists(c100417015.filter,1,nil) return rp~=tp and eg:IsExists(c100417015.filter,1,nil)
end end
function c100417015.spfilter(c,e,tp,mc) function c100417015.spfilter(c,e,tp,mc)
return c:IsSetCard(0x270) and c:IsType(TYPE_XYZ) and mc:IsCanBeXyzMaterial(c) return c:IsSetCard(0x271) and c:IsType(TYPE_XYZ) and mc:IsCanBeXyzMaterial(c)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0
end end
function c100417015.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c100417015.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -57,7 +57,7 @@ function c100417016.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +57,7 @@ function c100417016.spcon(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and eg:IsExists(c100417016.filter,1,nil) return rp~=tp and eg:IsExists(c100417016.filter,1,nil)
end end
function c100417016.spfilter(c,e,tp,mc) function c100417016.spfilter(c,e,tp,mc)
return c:IsSetCard(0x270) and c:IsType(TYPE_XYZ) and mc:IsCanBeXyzMaterial(c) return c:IsSetCard(0x271) and c:IsType(TYPE_XYZ) and mc:IsCanBeXyzMaterial(c)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0
end end
function c100417016.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c100417016.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -58,7 +58,7 @@ function c100417017.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,7 +58,7 @@ function c100417017.regop(e,tp,eg,ep,ev,re,r,rp)
end end
function c100417017.valcheck(e,c) function c100417017.valcheck(e,c)
local g=c:GetMaterial() local g=c:GetMaterial()
if g:IsExists(Card.IsSetCard,1,nil,0x270) then if g:IsExists(Card.IsSetCard,1,nil,0x271) then
e:GetLabelObject():SetLabel(1) e:GetLabelObject():SetLabel(1)
else else
e:GetLabelObject():SetLabel(0) e:GetLabelObject():SetLabel(0)
...@@ -88,7 +88,7 @@ function c100417017.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -88,7 +88,7 @@ function c100417017.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
function c100417017.thfilter(c) function c100417017.thfilter(c)
return c:IsSetCard(0x270) and c:IsAbleToHand() and c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsSetCard(0x271) and c:IsAbleToHand() and c:IsType(TYPE_SPELL+TYPE_TRAP)
end end
function c100417017.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c100417017.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c100417017.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c100417017.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -41,7 +41,7 @@ function c100417018.initial_effect(c) ...@@ -41,7 +41,7 @@ function c100417018.initial_effect(c)
end end
function c100417018.valcheck(e,c) function c100417018.valcheck(e,c)
local g=c:GetMaterial() local g=c:GetMaterial()
if g:IsExists(Card.IsSetCard,1,nil,0x270) then if g:IsExists(Card.IsSetCard,1,nil,0x271) then
e:GetLabelObject():SetLabel(1) e:GetLabelObject():SetLabel(1)
else else
e:GetLabelObject():SetLabel(0) e:GetLabelObject():SetLabel(0)
...@@ -72,7 +72,7 @@ function c100417018.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -72,7 +72,7 @@ function c100417018.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
function c100417018.thfilter(c) function c100417018.thfilter(c)
return c:IsSetCard(0x270) and c:IsAbleToHand() and c:IsType(TYPE_MONSTER) return c:IsSetCard(0x271) and c:IsAbleToHand() and c:IsType(TYPE_MONSTER)
end end
function c100417018.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c100417018.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c100417018.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c100417018.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -59,7 +59,7 @@ function c100417019.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,7 +59,7 @@ function c100417019.regop(e,tp,eg,ep,ev,re,r,rp)
end end
function c100417019.valcheck(e,c) function c100417019.valcheck(e,c)
local g=c:GetMaterial() local g=c:GetMaterial()
if g:IsExists(Card.IsSetCard,1,nil,0x270) then if g:IsExists(Card.IsSetCard,1,nil,0x271) then
e:GetLabelObject():SetLabel(1) e:GetLabelObject():SetLabel(1)
else else
e:GetLabelObject():SetLabel(0) e:GetLabelObject():SetLabel(0)
......
...@@ -44,7 +44,7 @@ function c100417020.initial_effect(c) ...@@ -44,7 +44,7 @@ function c100417020.initial_effect(c)
end end
function c100417020.valcheck(e,c) function c100417020.valcheck(e,c)
local g=c:GetMaterial() local g=c:GetMaterial()
if g:IsExists(Card.IsSetCard,1,nil,0x270) then if g:IsExists(Card.IsSetCard,1,nil,0x271) then
e:GetLabelObject():SetLabel(1) e:GetLabelObject():SetLabel(1)
else else
e:GetLabelObject():SetLabel(0) e:GetLabelObject():SetLabel(0)
......
...@@ -30,12 +30,12 @@ function c100417022.cfilter(c,code) ...@@ -30,12 +30,12 @@ function c100417022.cfilter(c,code)
return c:IsFaceup() and c:IsCode(code) return c:IsFaceup() and c:IsCode(code)
end end
function c100417022.spfilter1(c,e,tp) function c100417022.spfilter1(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x270) return c:IsFaceup() and c:IsSetCard(0x271)
and Duel.IsExistingMatchingCard(c100417022.spfilter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c) and Duel.IsExistingMatchingCard(c100417022.spfilter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c)
and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL) and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL)
end end
function c100417022.spfilter2(c,e,tp,mc,att) function c100417022.spfilter2(c,e,tp,mc,att)
return c:IsType(TYPE_XYZ) and c:IsSetCard(0x270) and mc:IsCanBeXyzMaterial(c) return c:IsType(TYPE_XYZ) and c:IsSetCard(0x271) and mc:IsCanBeXyzMaterial(c)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0
and not Duel.IsExistingMatchingCard(c100417022.cfilter,tp,LOCATION_ONFIELD,0,1,nil,c:GetCode()) and not Duel.IsExistingMatchingCard(c100417022.cfilter,tp,LOCATION_ONFIELD,0,1,nil,c:GetCode())
end end
......
...@@ -44,13 +44,13 @@ function c100417023.initial_effect(c) ...@@ -44,13 +44,13 @@ function c100417023.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c100417023.eftg(e,c) function c100417023.eftg(e,c)
return c:IsFaceup() and c:IsSetCard(0x270) return c:IsFaceup() and c:IsSetCard(0x271)
end end
function c100417023.efilter(e,re,rp) function c100417023.efilter(e,re,rp)
return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsSummonLocation(LOCATION_GRAVE) and re:GetActivateLocation()==LOCATION_MZONE return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsSummonLocation(LOCATION_GRAVE) and re:GetActivateLocation()==LOCATION_MZONE
end end
function c100417023.cfilter(c,tp,sumt) function c100417023.cfilter(c,tp,sumt)
return c:IsFaceup() and c:IsSetCard(0x270) and c:IsSummonType(sumt) and c:IsSummonPlayer(tp) return c:IsFaceup() and c:IsSetCard(0x271) and c:IsSummonType(sumt) and c:IsSummonPlayer(tp)
end end
function c100417023.bancon(e,tp,eg,ep,ev,re,r,rp) function c100417023.bancon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c100417023.cfilter,1,nil,tp,SUMMON_TYPE_XYZ) return eg:IsExists(c100417023.cfilter,1,nil,tp,SUMMON_TYPE_XYZ)
...@@ -112,7 +112,7 @@ function c100417023.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -112,7 +112,7 @@ function c100417023.disop(e,tp,eg,ep,ev,re,r,rp)
end end
function c100417023.descon(e,tp,eg,ep,ev,re,r,rp) function c100417023.descon(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttacker() local tc=Duel.GetAttacker()
return tc:IsSetCard(0x270) and tc:IsControler(tp) return tc:IsSetCard(0x271) and tc:IsControler(tp)
end end
function c100417023.desfilter(c) function c100417023.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP)
......
...@@ -19,11 +19,11 @@ function c100417024.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -19,11 +19,11 @@ function c100417024.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.PayLPCost(tp,800) Duel.PayLPCost(tp,800)
end end
function c100417024.spfilter1(c,e,tp) function c100417024.spfilter1(c,e,tp)
return c:IsSetCard(0x270) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x271) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.IsExistingMatchingCard(c100417024.spfilter2,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetCode()) and Duel.IsExistingMatchingCard(c100417024.spfilter2,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetCode())
end end
function c100417024.spfilter2(c,e,tp,code) function c100417024.spfilter2(c,e,tp,code)
return c:IsSetCard(0x270) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x271) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and aux.IsCodeListed(c,code) and aux.IsCodeListed(c,code)
end end
function c100417024.target(e,tp,eg,ep,ev,re,r,rp,chk) function c100417024.target(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -83,5 +83,5 @@ function c100417024.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -83,5 +83,5 @@ function c100417024.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT) Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)
end end
function c100417024.splimit(e,c) function c100417024.splimit(e,c)
return not c:IsSetCard(0x270) and c:IsLocation(LOCATION_EXTRA) return not c:IsSetCard(0x271) and c:IsLocation(LOCATION_EXTRA)
end end
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