Commit b8db1a8c authored by Huangnan's avatar Huangnan

setname fix

parent 59d22903
......@@ -40,7 +40,7 @@ function cm.initial_effect(c)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
return rc:IsSetCard(0x642) and rc:IsControler(tp) and not rc:IsCode(m)
return rc:IsSetCard(0x6629) and rc:IsControler(tp) and not rc:IsCode(m)
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......@@ -69,7 +69,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_COST) or e:GetHandler():IsReason(REASON_SPSUMMON)
end
function cm.thfilter(c)
return c:IsSetCard(0x642) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
return c:IsSetCard(0x6629) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -40,7 +40,7 @@ function cm.initial_effect(c)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
return rc:IsSetCard(0x642) and rc:IsControler(tp) and not rc:IsCode(m)
return rc:IsSetCard(0x6629) and rc:IsControler(tp) and not rc:IsCode(m)
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......@@ -55,7 +55,7 @@ function cm.chainlm(e,rp,tp)
end
function cm.filter(c,e,tp)
return c:IsSetCard(0x642) and c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(0x6629) and c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.dtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
......@@ -40,7 +40,7 @@ function cm.initial_effect(c)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
return rc:IsSetCard(0x642) and rc:IsControler(tp) and not rc:IsCode(m)
return rc:IsSetCard(0x6629) and rc:IsControler(tp) and not rc:IsCode(m)
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......@@ -56,7 +56,7 @@ end
function cm.thfilter(c)
return c:IsSetCard(0x642) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
return c:IsSetCard(0x6629) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
end
function cm.dtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -25,7 +25,7 @@ function cm.initial_effect(c)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
return rc:IsSetCard(0x642) and rc:IsControler(tp) and not rc:IsCode(m)
return rc:IsSetCard(0x6629) and rc:IsControler(tp) and not rc:IsCode(m)
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......@@ -43,7 +43,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_COST) or e:GetHandler():IsReason(REASON_SPSUMMON)
end
function cm.filter(c)
return c:IsSetCard(0x642) and c:IsType(TYPE_MONSTER) and not c:IsCode(m) and c:IsAbleToHand()
return c:IsSetCard(0x6629) and c:IsType(TYPE_MONSTER) and not c:IsCode(m) and c:IsAbleToHand()
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,2,nil) end
......
......@@ -40,7 +40,7 @@ function cm.initial_effect(c)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
return rc:IsSetCard(0x642) and rc:IsControler(tp) and not rc:IsCode(m)
return rc:IsSetCard(0x6629) and rc:IsControler(tp) and not rc:IsCode(m)
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -67,7 +67,7 @@ function cm.chainlm(e,rp,tp)
end
function cm.thfilter(c,e)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x642) and c:IsAbleToHand() and c:IsCanBeEffectTarget(e)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x6629) and c:IsAbleToHand() and c:IsCanBeEffectTarget(e)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and cm.thfilter(chkc,e) end
......
......@@ -24,7 +24,7 @@ function cm.initial_effect(c)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
return rc:IsSetCard(0x642) and rc:IsControler(tp) and not rc:IsCode(m)
return rc:IsSetCard(0x6629) and rc:IsControler(tp) and not rc:IsCode(m)
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......@@ -38,7 +38,7 @@ function cm.chainlm(e,rp,tp)
return tp==rp
end
function cm.costfilter(c)
return c:IsSetCard(0x642) and c:IsType(TYPE_MONSTER) and not c:IsCode(m) and c:IsAbleToGraveAsCost()
return c:IsSetCard(0x6629) and c:IsType(TYPE_MONSTER) and not c:IsCode(m) and c:IsAbleToGraveAsCost()
end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -23,7 +23,7 @@ function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function cm.thfilter(c)
return c:IsSetCard(0x642) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
return c:IsSetCard(0x6629) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_HAND,0,5,nil) end
......
......@@ -37,13 +37,13 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
end
function cm.lcheck(g,lc)
return g:IsExists(Card.IsSetCard,1,nil,0x643)
return g:IsExists(Card.IsSetCard,1,nil,0x9629)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end
function cm.thfilter(c)
return c:IsSetCard(0x643) and c:IsLevelBelow(4) and c:IsAbleToHand()
return c:IsSetCard(0x9629) and c:IsLevelBelow(4) and c:IsAbleToHand()
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_GRAVE+LOCATION_DECK,0,1,nil) end
......
......@@ -54,7 +54,7 @@ end
function cm.sfilter(c,tp)
return c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousControler(tp)
and c:IsSetCard(0x643)
and c:IsSetCard(0x9629)
and c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsPreviousLocation(LOCATION_ONFIELD)
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -3,7 +3,7 @@ local cm,m,o=GetID()
function cm.initial_effect(c)
--link summon
c:EnableReviveLimit()
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0x643),2,2)
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0x9629),2,2)
--untargetable
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -35,7 +35,7 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function cm.filter(c)
return c:IsSetCard(0x643) and c:IsAbleToHand()
return c:IsSetCard(0x9629) and c:IsAbleToHand()
end
function cm.hsptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -32,7 +32,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.sfilter(c,tp)
return c:IsSetCard(0x643) and c:IsControler(tp)
return c:IsSetCard(0x9629) and c:IsControler(tp)
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.sfilter,1,nil,tp) and not eg:IsContains(e:GetHandler())
......
......@@ -81,7 +81,7 @@ function cm.spop2(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.thfilter(c)
return c:IsSetCard(0x643) and c:IsLevelBelow(7) and c:IsAbleToHand()
return c:IsSetCard(0x9629) and c:IsLevelBelow(7) and c:IsAbleToHand()
end
function cm.thtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -34,7 +34,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
end
function cm.effspfilter(c,e,tp)
return c:IsSetCard(0x643) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(0x9629) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......@@ -73,7 +73,7 @@ function cm.spop2(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.thfilter(c)
return c:IsSetCard(0x643) and c:IsLevelBelow(7) and c:IsAbleToHand()
return c:IsSetCard(0x9629) and c:IsLevelBelow(7) and c:IsAbleToHand()
end
function cm.thtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -139,7 +139,7 @@ function cm.activate2(e,tp,eg,ep,ev,re,r,rp)
end
function cm.thfilter(c)
return c:IsSetCard(0x643) and c:IsLevelBelow(7) and c:IsAbleToHand()
return c:IsSetCard(0x9629) and c:IsLevelBelow(7) and c:IsAbleToHand()
end
function cm.thtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -72,7 +72,7 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function cm.filter(c)
return c:IsSetCard(0x643) and c:IsAbleToHand()
return c:IsSetCard(0x9629) and c:IsAbleToHand()
end
function cm.hsptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -11,7 +11,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
end
function cm.filter(c)
return c:IsSetCard(0x643) and not c:IsCode(m) and c:IsAbleToHand()
return c:IsSetCard(0x9629) and not c:IsCode(m) and c:IsAbleToHand()
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -27,7 +27,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.filter(c)
return c:IsSetCard(0x644) and c:IsType(TYPE_MONSTER) and c:IsFaceup()
return c:IsSetCard(0xa629) and c:IsType(TYPE_MONSTER) and c:IsFaceup()
end
function cm.spcon2(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_EFFECT)~=0 and e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_MZONE,0,1,nil)
......
......@@ -34,7 +34,7 @@ function cm.filter(c)
return c:IsCode(60040052) and c:IsAbleToHand()
end
function cm.filter2(c)
return c:IsSetCard(0x645) and not c:IsCode(m) and c:IsAbleToHand()
return c:IsSetCard(0xc629) and not c:IsCode(m) and c:IsAbleToHand()
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
......
......@@ -34,7 +34,7 @@ function cm.filter(c)
return c:IsCode(60040052) and c:IsAbleToHand()
end
function cm.filter2(c)
return c:IsSetCard(0x644) and c:IsLevelBelow(5) and c:IsAbleToHand()
return c:IsSetCard(0xa629) and c:IsLevelBelow(5) and c:IsAbleToHand()
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
......
......@@ -34,7 +34,7 @@ function cm.filter(c)
return c:IsCode(60040052) and c:IsAbleToHand()
end
function cm.filter2(c,e,tp)
return c:IsSetCard(0x645) and c:IsLevelBelow(5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(0xc629) and c:IsLevelBelow(5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
......
......@@ -52,7 +52,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
--end
end
function cm.drfilter(c,e)
return c:IsSetCard(0x644) and c:IsAbleToDeck() and c:IsCanBeEffectTarget(e)
return c:IsSetCard(0xa629) and c:IsAbleToDeck() and c:IsCanBeEffectTarget(e)
end
function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
......
......@@ -52,11 +52,11 @@ end
function cm.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_HAND,0,nil,0x645)
local g=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_HAND,0,nil,0xc629)
return g:GetClassCount(Card.GetCode)>=3
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_HAND,0,nil,0x645)
local g=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_HAND,0,nil,0xc629)
local cg=Group.CreateGroup()
for i=1,3 do
local sg=g:Select(tp,1,1,nil)
......@@ -73,7 +73,7 @@ function cm.thfilter1(c)
return c:IsCode(60040052) and c:IsAbleToHand()
end
function cm.thfilter2(c)
return c:IsSetCard(0x645) and c:IsAbleToHand()
return c:IsSetCard(0xc629) and c:IsAbleToHand()
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter1,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(cm.thfilter2,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -12,7 +12,7 @@ function cm.initial_effect(c)
end
function cm.cpfilter(c)
return c:IsType(TYPE_SPELL) and c:IsSetCard(0x645) and c:IsAbleToRemoveAsCost()
return c:IsType(TYPE_SPELL) and c:IsSetCard(0xc629) and c:IsAbleToRemoveAsCost()
and c:CheckActivateEffect(true,true,false)~=nil
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -19,12 +19,12 @@ function cm.initial_effect(c)
--atk up
local e3=e2:Clone()
e3:SetCode(EFFECT_UPDATE_ATTACK)
e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x644))
e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xa629))
e3:SetValue(1600)
c:RegisterEffect(e3)
end
function cm.desfilter(c)
return c:IsFaceup() and c:IsSetCard(0x644)
return c:IsFaceup() and c:IsSetCard(0xa629)
end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
......
......@@ -30,7 +30,7 @@ function cm.initial_effect(c)
end
end
function cm.filter(c)
return c:IsSetCard(0x644) and c:IsType(TYPE_MONSTER)-- and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(0xa629) and c:IsType(TYPE_MONSTER)-- and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Debug.Message("1")
......
......@@ -33,7 +33,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.ntlfil,tp,LOCATION_ONFIELD,0,1,e:GetHandler())
end
function cm.ntlfil(c)
return c:IsSetCard(0x644) and c:IsFaceup()
return c:IsSetCard(0xa629) and c:IsFaceup()
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.ntlfil,tp,LOCATION_ONFIELD,0,1,e:GetHandler()) 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