Commit b8db1a8c authored by Huangnan's avatar Huangnan

setname fix

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