Commit 1e5236f2 authored by salix5's avatar salix5 Committed by GitHub

update setcode (#1750)

!setname 0x83 Puppet
!setname 0x1083 Gimmick Puppet
parent 76be882d
...@@ -27,7 +27,7 @@ function c1969506.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -27,7 +27,7 @@ function c1969506.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c1969506.filter(c,e,tp) function c1969506.filter(c,e,tp)
return c:IsSetCard(0x83) and c:IsLevel(8) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x1083) and c:IsLevel(8) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c1969506.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c1969506.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c1969506.filter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c1969506.filter(chkc,e,tp) end
......
...@@ -11,7 +11,7 @@ function c20032555.initial_effect(c) ...@@ -11,7 +11,7 @@ function c20032555.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c20032555.cfilter(c) function c20032555.cfilter(c)
return c:IsSetCard(0x83) and c:IsType(TYPE_MONSTER) and c:IsDiscardable() return c:IsSetCard(0x1083) and c:IsType(TYPE_MONSTER) and c:IsDiscardable()
end end
function c20032555.efftg(e,tp,eg,ep,ev,re,r,rp,chk) function c20032555.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c20032555.cfilter,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c20032555.cfilter,tp,LOCATION_HAND,0,1,nil) end
......
...@@ -12,7 +12,7 @@ function c29216967.initial_effect(c) ...@@ -12,7 +12,7 @@ function c29216967.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c29216967.tgfilter(c) function c29216967.tgfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x83) and c:IsAbleToGrave() return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x1083) and c:IsAbleToGrave()
end end
function c29216967.target(e,tp,eg,ep,ev,re,r,rp,chk) function c29216967.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c29216967.tgfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c29216967.tgfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -12,7 +12,7 @@ function c32875265.initial_effect(c) ...@@ -12,7 +12,7 @@ function c32875265.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c32875265.spfilter(c,e,tp) function c32875265.spfilter(c,e,tp)
return c:IsSetCard(0x83) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x1083) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c32875265.target(e,tp,eg,ep,ev,re,r,rp,chk) function c32875265.target(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
...@@ -53,5 +53,5 @@ function c32875265.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,5 +53,5 @@ function c32875265.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c32875265.splimit(e,c) function c32875265.splimit(e,c)
return not c:IsSetCard(0x83) return not c:IsSetCard(0x1083)
end end
...@@ -18,5 +18,5 @@ function c39806198.spcon(e,c) ...@@ -18,5 +18,5 @@ function c39806198.spcon(e,c)
and not Duel.IsExistingMatchingCard(c39806198.cfilter,tp,LOCATION_MZONE,0,1,nil) and not Duel.IsExistingMatchingCard(c39806198.cfilter,tp,LOCATION_MZONE,0,1,nil)
end end
function c39806198.cfilter(c) function c39806198.cfilter(c)
return c:IsFacedown() or not c:IsSetCard(0x83) return c:IsFacedown() or not c:IsSetCard(0x1083)
end end
...@@ -20,7 +20,7 @@ function c43598843.initial_effect(c) ...@@ -20,7 +20,7 @@ function c43598843.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c43598843.spfilter(c,e,tp) function c43598843.spfilter(c,e,tp)
return c:IsSetCard(0x83) and not c:IsCode(43598843) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) return c:IsSetCard(0x1083) and not c:IsCode(43598843) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c43598843.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c43598843.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c43598843.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c43598843.spfilter(chkc,e,tp) end
...@@ -46,7 +46,7 @@ function c43598843.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,7 +46,7 @@ function c43598843.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c43598843.actop(e,tp,eg,ep,ev,re,r,rp) function c43598843.actop(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler() local rc=re:GetHandler()
if re:IsActiveType(TYPE_MONSTER) and rc:IsSetCard(0x83) and ep==tp then if re:IsActiveType(TYPE_MONSTER) and rc:IsSetCard(0x1083) and ep==tp then
Duel.SetChainLimit(c43598843.chainlm) Duel.SetChainLimit(c43598843.chainlm)
end end
end end
......
...@@ -75,5 +75,5 @@ function c55204071.spop3(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -75,5 +75,5 @@ function c55204071.spop3(e,tp,eg,ep,ev,re,r,rp,c)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c55204071.splimit(e,c) function c55204071.splimit(e,c)
return not c:IsSetCard(0x83) return not c:IsSetCard(0x1083)
end end
...@@ -19,7 +19,7 @@ function c56427559.initial_effect(c) ...@@ -19,7 +19,7 @@ function c56427559.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c56427559.lvfilter(c,lv) function c56427559.lvfilter(c,lv)
return c:IsFaceup() and c:IsSetCard(0x83) and not c:IsLevel(lv) and c:IsLevelAbove(1) return c:IsFaceup() and c:IsSetCard(0x1083) and not c:IsLevel(lv) and c:IsLevelAbove(1)
end end
function c56427559.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c56427559.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c56427559.lvfilter(chkc,e:GetHandler():GetLevel()) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c56427559.lvfilter(chkc,e:GetHandler():GetLevel()) end
......
...@@ -23,7 +23,7 @@ function c57093995.initial_effect(c) ...@@ -23,7 +23,7 @@ function c57093995.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c57093995.tgfilter(c) function c57093995.tgfilter(c)
return c:IsSetCard(0x83) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave() return c:IsSetCard(0x1083) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end end
function c57093995.target(e,tp,eg,ep,ev,re,r,rp,chk) function c57093995.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c57093995.tgfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c57093995.tgfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -28,7 +28,7 @@ function c6471156.initial_effect(c) ...@@ -28,7 +28,7 @@ function c6471156.initial_effect(c)
end end
function c6471156.cfilter(c,tp) function c6471156.cfilter(c,tp)
local lv=c:GetLevel() local lv=c:GetLevel()
return lv>0 and c:IsSetCard(0x83) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost() return lv>0 and c:IsSetCard(0x1083) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
and Duel.IsExistingMatchingCard(c6471156.lvfilter,tp,LOCATION_MZONE,0,1,nil,lv) and Duel.IsExistingMatchingCard(c6471156.lvfilter,tp,LOCATION_MZONE,0,1,nil,lv)
end end
function c6471156.lvfilter(c,lv) function c6471156.lvfilter(c,lv)
...@@ -57,7 +57,7 @@ function c6471156.lvop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +57,7 @@ function c6471156.lvop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c6471156.cfilter2(c,tp) function c6471156.cfilter2(c,tp)
return c:IsSetCard(0x83) and c:IsReason(REASON_DESTROY) return c:IsSetCard(0x1083) and c:IsReason(REASON_DESTROY)
and (c:IsReason(REASON_BATTLE) or c:GetReasonPlayer()==1-tp and c:IsReason(REASON_DESTROY)) and (c:IsReason(REASON_BATTLE) or c:GetReasonPlayer()==1-tp and c:IsReason(REASON_DESTROY))
and c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP)
end end
...@@ -65,7 +65,7 @@ function c6471156.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,7 +65,7 @@ function c6471156.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c6471156.cfilter2,1,nil,tp) return eg:IsExists(c6471156.cfilter2,1,nil,tp)
end end
function c6471156.spfilter(c,e,tp) function c6471156.spfilter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x83) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsSetCard(0x1083) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c6471156.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c6471156.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c6471156.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c6471156.spfilter(chkc,e,tp) end
......
...@@ -12,7 +12,7 @@ function c67968069.initial_effect(c) ...@@ -12,7 +12,7 @@ function c67968069.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c67968069.filter(c,e,tp) function c67968069.filter(c,e,tp)
return c:IsSetCard(0x83) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x1083) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c67968069.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c67968069.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c67968069.filter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c67968069.filter(chkc,e,tp) end
......
--ギミック・パペット-ギガンテス・ドール --ギミック・パペット-ギガンテス・ドール
function c7593748.initial_effect(c) function c7593748.initial_effect(c)
--xyz summon --xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x83),4,2) aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x1083),4,2)
c:EnableReviveLimit() c:EnableReviveLimit()
--control --control
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -64,7 +64,7 @@ function c7593748.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,7 +64,7 @@ function c7593748.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
function c7593748.splimit(e,c) function c7593748.splimit(e,c)
return not c:IsSetCard(0x83) return not c:IsSetCard(0x1083)
end end
function c7593748.atktg(e,c) function c7593748.atktg(e,c)
return not c:IsType(TYPE_XYZ) return not c:IsType(TYPE_XYZ)
......
...@@ -24,7 +24,7 @@ function c76543119.initial_effect(c) ...@@ -24,7 +24,7 @@ function c76543119.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c76543119.filter(c) function c76543119.filter(c)
return c:IsFaceup() and c:IsSetCard(0x83) return c:IsFaceup() and c:IsSetCard(0x1083)
end end
function c76543119.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c76543119.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c76543119.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c76543119.filter(chkc) end
...@@ -43,7 +43,7 @@ function c76543119.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,7 +43,7 @@ function c76543119.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end end
function c76543119.spfilter(c,e,tp) function c76543119.spfilter(c,e,tp)
return c:IsSetCard(0x83) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x1083) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c76543119.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c76543119.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
......
...@@ -20,7 +20,7 @@ function c79086452.initial_effect(c) ...@@ -20,7 +20,7 @@ function c79086452.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c79086452.spfilter(c) function c79086452.spfilter(c)
return c:IsSetCard(0x83) and c:IsType(TYPE_MONSTER) return c:IsSetCard(0x1083) and c:IsType(TYPE_MONSTER)
end end
function c79086452.spcon(e,c) function c79086452.spcon(e,c)
if c==nil then return true end if c==nil then return true end
...@@ -45,5 +45,5 @@ function c79086452.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,5 +45,5 @@ function c79086452.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c79086452.efftg(e,c) function c79086452.efftg(e,c)
return c:IsSetCard(0x83) return c:IsSetCard(0x1083)
end end
...@@ -16,7 +16,7 @@ function c8226374.initial_effect(c) ...@@ -16,7 +16,7 @@ function c8226374.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c8226374.filter(c,e,tp) function c8226374.filter(c,e,tp)
return c:IsSetCard(0x83) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x1083) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c8226374.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c8226374.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
......
...@@ -20,7 +20,7 @@ function c92418590.initial_effect(c) ...@@ -20,7 +20,7 @@ function c92418590.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c92418590.cfilter(c) function c92418590.cfilter(c)
return c:IsSetCard(0x83) and c:IsAbleToRemoveAsCost() and c:IsType(TYPE_MONSTER) return c:IsSetCard(0x1083) and c:IsAbleToRemoveAsCost() and c:IsType(TYPE_MONSTER)
end end
function c92418590.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c92418590.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c92418590.cfilter,tp,LOCATION_GRAVE,0,1,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(c92418590.cfilter,tp,LOCATION_GRAVE,0,1,e:GetHandler()) end
...@@ -41,5 +41,5 @@ function c92418590.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,5 +41,5 @@ function c92418590.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c92418590.xyzlimit(e,c) function c92418590.xyzlimit(e,c)
if not c then return false end if not c then return false end
return not c:IsSetCard(0x83) return not c:IsSetCard(0x1083)
end end
...@@ -14,7 +14,7 @@ function c92821268.initial_effect(c) ...@@ -14,7 +14,7 @@ function c92821268.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c92821268.cfilter(c,tp) function c92821268.cfilter(c,tp)
return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) and c:IsSetCard(0x83) return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) and c:IsSetCard(0x1083)
and c:IsPreviousControler(tp) and c:IsAbleToRemoveAsCost() and c:IsPreviousControler(tp) and c:IsAbleToRemoveAsCost()
end end
function c92821268.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c92821268.cost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -19,7 +19,7 @@ function c97520532.thcon(e) ...@@ -19,7 +19,7 @@ function c97520532.thcon(e)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end end
function c97520532.thfilter(c) function c97520532.thfilter(c)
return c:IsSetCard(0x83) and c:IsType(TYPE_MONSTER) and (c:IsAbleToHand() or c:IsAbleToGrave()) return c:IsSetCard(0x1083) and c:IsType(TYPE_MONSTER) and (c:IsAbleToHand() or c:IsAbleToGrave())
end end
function c97520532.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c97520532.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c97520532.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c97520532.thfilter,tp,LOCATION_DECK,0,1,nil) end
...@@ -27,10 +27,10 @@ function c97520532.thtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -27,10 +27,10 @@ function c97520532.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
end end
function c97520532.cfilter(c) function c97520532.cfilter(c)
return c:IsFacedown() or not c:IsSetCard(0x83) return c:IsFacedown() or not c:IsSetCard(0x1083)
end end
function c97520532.spfilter(c,e,tp) function c97520532.spfilter(c,e,tp)
return c:IsSetCard(0x83) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x1083) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c97520532.thop(e,tp,eg,ep,ev,re,r,rp) function c97520532.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
......
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