Commit 2d34abba authored by mercury233's avatar mercury233 Committed by DailyShana

update setcode

0x17 -> 0x1017
parent 005ed049
...@@ -35,7 +35,7 @@ function c1003840.cfilter(c,e,tp) ...@@ -35,7 +35,7 @@ function c1003840.cfilter(c,e,tp)
and Duel.IsExistingMatchingCard(c1003840.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp,lv) and Duel.IsExistingMatchingCard(c1003840.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp,lv)
end end
function c1003840.spfilter(c,e,tp,lv) function c1003840.spfilter(c,e,tp,lv)
return c:IsSetCard(0x17) and c:GetLevel()~=lv and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x1017) and c:GetLevel()~=lv and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c1003840.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c1003840.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c1003840.cfilter,1,nil,e,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,c1003840.cfilter,1,nil,e,tp) end
......
...@@ -22,7 +22,7 @@ function c18013090.initial_effect(c) ...@@ -22,7 +22,7 @@ function c18013090.initial_effect(c)
e3:SetOperation(c18013090.caop) e3:SetOperation(c18013090.caop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c18013090.material_setcode=0x17 c18013090.material_setcode=0x1017
function c18013090.tfilter(c) function c18013090.tfilter(c)
return c:IsCode(96182448) or c:IsHasEffect(20932152) return c:IsCode(96182448) or c:IsHasEffect(20932152)
end end
......
...@@ -25,7 +25,7 @@ function c20932152.initial_effect(c) ...@@ -25,7 +25,7 @@ function c20932152.initial_effect(c)
end end
function c20932152.synlimit(e,c) function c20932152.synlimit(e,c)
if not c then return false end if not c then return false end
return not aux.IsMaterialListSetCard(c,0x17) return not aux.IsMaterialListSetCard(c,0x1017)
end end
function c20932152.spfilter(c) function c20932152.spfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost() return c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost()
......
...@@ -14,7 +14,7 @@ function c2322421.initial_effect(c) ...@@ -14,7 +14,7 @@ function c2322421.initial_effect(c)
e1:SetOperation(c2322421.op) e1:SetOperation(c2322421.op)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c2322421.material_setcode=0x17 c2322421.material_setcode=0x1017
function c2322421.tfilter(c) function c2322421.tfilter(c)
return c:IsCode(71971554) or c:IsHasEffect(20932152) return c:IsCode(71971554) or c:IsHasEffect(20932152)
end end
......
...@@ -29,7 +29,7 @@ function c25148255.mfilter(c,e,tp,mc) ...@@ -29,7 +29,7 @@ function c25148255.mfilter(c,e,tp,mc)
and Duel.IsExistingMatchingCard(c25148255.scfilter,tp,LOCATION_EXTRA,0,1,nil,mg) and Duel.IsExistingMatchingCard(c25148255.scfilter,tp,LOCATION_EXTRA,0,1,nil,mg)
end end
function c25148255.scfilter(c,mg) function c25148255.scfilter(c,mg)
return aux.IsMaterialListSetCard(c,0x17) and c:IsSynchroSummonable(nil,mg) return aux.IsMaterialListSetCard(c,0x1017) and c:IsSynchroSummonable(nil,mg)
end end
function c25148255.sctg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c25148255.sctg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c25148255.mfilter(chkc,e,tp,e:GetHandler()) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c25148255.mfilter(chkc,e,tp,e:GetHandler()) end
......
...@@ -25,7 +25,7 @@ function c286392.initial_effect(c) ...@@ -25,7 +25,7 @@ function c286392.initial_effect(c)
e2:SetOperation(c286392.spop) e2:SetOperation(c286392.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c286392.material_setcode=0x17 c286392.material_setcode=0x1017
function c286392.tfilter(c) function c286392.tfilter(c)
return c:IsCode(9742784) or c:IsHasEffect(20932152) return c:IsCode(9742784) or c:IsHasEffect(20932152)
end end
......
...@@ -35,7 +35,7 @@ function c3429238.initial_effect(c) ...@@ -35,7 +35,7 @@ function c3429238.initial_effect(c)
e3:SetOperation(c3429238.spop) e3:SetOperation(c3429238.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c3429238.material_setcode=0x17 c3429238.material_setcode=0x1017
function c3429238.tfilter(c) function c3429238.tfilter(c)
return c:IsCode(56286179) or c:IsHasEffect(20932152) return c:IsCode(56286179) or c:IsHasEffect(20932152)
end end
......
...@@ -12,7 +12,7 @@ function c36643046.initial_effect(c) ...@@ -12,7 +12,7 @@ function c36643046.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c36643046.filter(c,e,tp) function c36643046.filter(c,e,tp)
return c:IsSetCard(0x17) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x1017) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c36643046.sumtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c36643046.sumtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c36643046.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c36643046.filter(chkc,e,tp) end
......
...@@ -51,7 +51,7 @@ function c36736723.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -51,7 +51,7 @@ function c36736723.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c36736723.filter(c) function c36736723.filter(c)
return c:IsSetCard(0x17) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x1017) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c36736723.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c36736723.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c36736723.filter(chkc) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c36736723.filter(chkc) end
......
...@@ -51,7 +51,7 @@ function c37675907.splimit(e,c,sump,sumtype,sumpos,targetp,se) ...@@ -51,7 +51,7 @@ function c37675907.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsCode(37675907) and bit.band(sumtype,SUMMON_TYPE_SYNCHRO)==SUMMON_TYPE_SYNCHRO return c:IsCode(37675907) and bit.band(sumtype,SUMMON_TYPE_SYNCHRO)==SUMMON_TYPE_SYNCHRO
end end
function c37675907.filter(c) function c37675907.filter(c)
return c:GetLevel()>0 and c:IsSetCard(0x17) and c:IsAbleToGraveAsCost() return c:GetLevel()>0 and c:IsSetCard(0x1017) and c:IsAbleToGraveAsCost()
end end
function c37675907.tgcost(e,tp,eg,ep,ev,re,r,rp,chk) function c37675907.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c37675907.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c37675907.filter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -27,7 +27,7 @@ function c37993923.initial_effect(c) ...@@ -27,7 +27,7 @@ function c37993923.initial_effect(c)
e2:SetOperation(c37993923.operation) e2:SetOperation(c37993923.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c37993923.material_setcode=0x17 c37993923.material_setcode=0x1017
function c37993923.tfilter(c) function c37993923.tfilter(c)
return c:IsCode(63977008) or c:IsHasEffect(20932152) return c:IsCode(63977008) or c:IsHasEffect(20932152)
end end
......
...@@ -15,7 +15,7 @@ function c42810973.initial_effect(c) ...@@ -15,7 +15,7 @@ function c42810973.initial_effect(c)
e1:SetOperation(c42810973.operation) e1:SetOperation(c42810973.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c42810973.material_setcode=0x17 c42810973.material_setcode=0x1017
function c42810973.tfilter(c) function c42810973.tfilter(c)
return c:IsCode(63977008) or c:IsHasEffect(20932152) return c:IsCode(63977008) or c:IsHasEffect(20932152)
end end
......
...@@ -17,7 +17,7 @@ function c44236692.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -17,7 +17,7 @@ function c44236692.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
end end
function c44236692.filter(c,e,tp) function c44236692.filter(c,e,tp)
return c:IsSetCard(0x17) and c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x1017) and c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c44236692.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c44236692.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c44236692.filter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c44236692.filter(chkc,e,tp) end
......
...@@ -17,7 +17,7 @@ function c45037489.initial_effect(c) ...@@ -17,7 +17,7 @@ function c45037489.initial_effect(c)
e1:SetOperation(c45037489.disop) e1:SetOperation(c45037489.disop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c45037489.material_setcode=0x17 c45037489.material_setcode=0x1017
function c45037489.tfilter(c) function c45037489.tfilter(c)
return c:IsCode(19642774) or c:IsHasEffect(20932152) return c:IsCode(19642774) or c:IsHasEffect(20932152)
end end
......
...@@ -21,7 +21,7 @@ function c46195773.initial_effect(c) ...@@ -21,7 +21,7 @@ function c46195773.initial_effect(c)
e2:SetValue(c46195773.efilter) e2:SetValue(c46195773.efilter)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c46195773.material_setcode=0x17 c46195773.material_setcode=0x1017
function c46195773.tfilter(c) function c46195773.tfilter(c)
return c:IsCode(67270095) or c:IsHasEffect(20932152) return c:IsCode(67270095) or c:IsHasEffect(20932152)
end end
......
...@@ -25,7 +25,7 @@ function c59771339.initial_effect(c) ...@@ -25,7 +25,7 @@ function c59771339.initial_effect(c)
e2:SetOperation(c59771339.desop) e2:SetOperation(c59771339.desop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c59771339.material_setcode=0x17 c59771339.material_setcode=0x1017
function c59771339.tfilter(c) function c59771339.tfilter(c)
return c:IsCode(63977008) or c:IsHasEffect(20932152) return c:IsCode(63977008) or c:IsHasEffect(20932152)
end end
......
...@@ -13,7 +13,7 @@ function c60800381.initial_effect(c) ...@@ -13,7 +13,7 @@ function c60800381.initial_effect(c)
e1:SetOperation(c60800381.op) e1:SetOperation(c60800381.op)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c60800381.material_setcode=0x17 c60800381.material_setcode=0x1017
function c60800381.tfilter(c) function c60800381.tfilter(c)
return c:IsCode(63977008) or c:IsHasEffect(20932152) return c:IsCode(63977008) or c:IsHasEffect(20932152)
end end
......
...@@ -6,7 +6,7 @@ function c62125438.initial_effect(c) ...@@ -6,7 +6,7 @@ function c62125438.initial_effect(c)
e1:SetCode(EFFECT_EXTRA_SUMMON_COUNT) e1:SetCode(EFFECT_EXTRA_SUMMON_COUNT)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0) e1:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x17)) e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x1017))
c:RegisterEffect(e1) c:RegisterEffect(e1)
--search --search
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
...@@ -22,20 +22,20 @@ function c62125438.initial_effect(c) ...@@ -22,20 +22,20 @@ function c62125438.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c62125438.filter(c,tp) function c62125438.filter(c,tp)
return c:IsSetCard(0x17) and c:IsType(TYPE_MONSTER) and c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) return c:IsSetCard(0x1017) and c:IsType(TYPE_MONSTER) and c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE)
end end
function c62125438.spcon(e,tp,eg,ep,ev,re,r,rp) function c62125438.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c62125438.filter,1,nil,tp) and r==REASON_SYNCHRO and re:GetHandler():IsRace(RACE_WARRIOR+RACE_MACHINE) return eg:IsExists(c62125438.filter,1,nil,tp) and r==REASON_SYNCHRO and re:GetHandler():IsRace(RACE_WARRIOR+RACE_MACHINE)
end end
function c62125438.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c62125438.sptg(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
and Duel.IsPlayerCanSpecialSummonMonster(tp,62125439,0x17,0x4011,1000,0,2,RACE_MACHINE,ATTRIBUTE_EARTH) end and Duel.IsPlayerCanSpecialSummonMonster(tp,62125439,0x1017,0x4011,1000,0,2,RACE_MACHINE,ATTRIBUTE_EARTH) end
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end end
function c62125438.spop(e,tp,eg,ep,ev,re,r,rp) function c62125438.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
or not Duel.IsPlayerCanSpecialSummonMonster(tp,62125439,0x17,0x4011,1000,0,2,RACE_MACHINE,ATTRIBUTE_EARTH) then return end or not Duel.IsPlayerCanSpecialSummonMonster(tp,62125439,0x1017,0x4011,1000,0,2,RACE_MACHINE,ATTRIBUTE_EARTH) then return end
local token=Duel.CreateToken(tp,62125439) local token=Duel.CreateToken(tp,62125439)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP)
end end
...@@ -15,7 +15,7 @@ function c74860293.initial_effect(c) ...@@ -15,7 +15,7 @@ function c74860293.initial_effect(c)
e1:SetOperation(c74860293.op) e1:SetOperation(c74860293.op)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c74860293.material_setcode=0x17 c74860293.material_setcode=0x1017
function c74860293.tfilter(c) function c74860293.tfilter(c)
return c:IsCode(63977008) or c:IsHasEffect(20932152) return c:IsCode(63977008) or c:IsHasEffect(20932152)
end end
......
...@@ -10,7 +10,7 @@ function c96363153.initial_effect(c) ...@@ -10,7 +10,7 @@ function c96363153.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c96363153.filter(c) function c96363153.filter(c)
return c:IsSetCard(0x17) and c:IsType(TYPE_TUNER) and c:IsAbleToHand() return c:IsSetCard(0x1017) and c:IsType(TYPE_TUNER) and c:IsAbleToHand()
end end
function c96363153.target(e,tp,eg,ep,ev,re,r,rp,chk) function c96363153.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1)
......
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