Commit cdd33643 authored by Tachibana's avatar Tachibana

ndyd

parent 22eb9cf5
No preview for this file type
...@@ -107,7 +107,7 @@ function cm.initial_effect(c) ...@@ -107,7 +107,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function cm.scfilter(c) function cm.scfilter(c)
return c:IsSynchroSummonable(nil) and c:IsSetCard(0xfa6) return c:IsSynchroSummonable(nil) and c:IsSetCard(0x3fa6)
end end
function cm.sctg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.scfilter,tp,LOCATION_EXTRA,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.scfilter,tp,LOCATION_EXTRA,0,1,nil) end
...@@ -123,7 +123,7 @@ function cm.scop(e,tp,eg,ep,ev,re,r,rp) ...@@ -123,7 +123,7 @@ function cm.scop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.xyzfilter(c) function cm.xyzfilter(c)
return c:IsXyzSummonable(nil) and c:IsSetCard(0xfa6) return c:IsXyzSummonable(nil) and c:IsSetCard(0x3fa6)
end end
function cm.xyztg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.xyztg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.xyzfilter,tp,LOCATION_EXTRA,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.xyzfilter,tp,LOCATION_EXTRA,0,1,nil) end
...@@ -139,7 +139,7 @@ function cm.xyzop(e,tp,eg,ep,ev,re,r,rp) ...@@ -139,7 +139,7 @@ function cm.xyzop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.lkfilter(c) function cm.lkfilter(c)
return c:IsLinkSummonable(nil) and c:IsSetCard(0xfa6) return c:IsLinkSummonable(nil) and c:IsSetCard(0x3fa6)
end end
function cm.lktg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.lktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.lkfilter,tp,LOCATION_EXTRA,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.lkfilter,tp,LOCATION_EXTRA,0,1,nil) end
......
...@@ -32,14 +32,14 @@ function cm.initial_effect(c) ...@@ -32,14 +32,14 @@ function cm.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.costfilter(c) function cm.costfilter(c)
return c:IsSetCard(0xfa6) and c:IsDiscardable() return c:IsSetCard(0x3fa6) and c:IsDiscardable()
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_HAND,0,1,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
Duel.DiscardHand(tp,cm.costfilter,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,cm.costfilter,1,1,REASON_COST+REASON_DISCARD)
end end
function cm.filter(c,e,tp) function cm.filter(c,e,tp)
return c:IsSetCard(0xfa6) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x3fa6) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133) if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133)
......
...@@ -31,7 +31,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,7 +31,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_DECK) return e:GetHandler():IsPreviousLocation(LOCATION_DECK)
end end
function cm.filter(c,e,tp) function cm.filter(c,e,tp)
return c:IsSetCard(0xfa6) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x3fa6) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133) if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133)
......
...@@ -4,7 +4,7 @@ local m=12038011 ...@@ -4,7 +4,7 @@ local m=12038011
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--synchro summon --synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0xfa6),aux.NonTuner(nil),1) aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x3fa6),aux.NonTuner(nil),1)
c:EnableReviveLimit() c:EnableReviveLimit()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0)) e1:SetDescription(aux.Stringid(m,0))
...@@ -45,7 +45,7 @@ function cm.initial_effect(c) ...@@ -45,7 +45,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function cm.stfilter1(c,tc) function cm.stfilter1(c,tc)
return c:IsSynchroType(TYPE_TUNER) and c:IsSetCard(0xfa6) and c:IsPosition(POS_FACEUP) and c:IsCanBeSynchroMaterial(tc) return c:IsSynchroType(TYPE_TUNER) and c:IsSetCard(0x3fa6) and c:IsPosition(POS_FACEUP) and c:IsCanBeSynchroMaterial(tc)
end end
function cm.stfilter2(c,tc) function cm.stfilter2(c,tc)
return not c:IsSynchroType(TYPE_TUNER) and c:IsPosition(POS_FACEUP) and c:IsCanBeSynchroMaterial(tc) return not c:IsSynchroType(TYPE_TUNER) and c:IsPosition(POS_FACEUP) and c:IsCanBeSynchroMaterial(tc)
......
...@@ -50,7 +50,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,7 +50,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.mfilter(c,xyzc) function cm.mfilter(c,xyzc)
return c:IsFaceup() and c:IsRace(RACE_PSYCHO) and ( c:GetLevel()==2 or c:IsSetCard(0xfa6) ) return c:IsFaceup() and c:IsRace(RACE_PSYCHO) and ( c:GetLevel()==2 or c:IsSetCard(0x3fa6) )
end end
function cm.spcon1(e,tp,eg,ep,ev,re,r,rp) function cm.spcon1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -38,7 +38,7 @@ function cm.initial_effect(c) ...@@ -38,7 +38,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function cm.lcheck(g) function cm.lcheck(g)
return g:IsExists(Card.IsLinkSetCard,1,nil,0xfa6) return g:IsExists(Card.IsLinkSetCard,1,nil,0x3fa6)
end end
function cm.cost1(e,c,tp,st) function cm.cost1(e,c,tp,st)
if bit.band(st,SUMMON_TYPE_LINK)~=SUMMON_TYPE_LINK then return true end if bit.band(st,SUMMON_TYPE_LINK)~=SUMMON_TYPE_LINK then return true end
...@@ -91,7 +91,7 @@ function cm.redisop(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,7 +91,7 @@ function cm.redisop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
function cm.spfilter1(c,e,tp) function cm.spfilter1(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0xfa6) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsSetCard(0x3fa6) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function cm.sptg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.sptg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
......
...@@ -46,7 +46,7 @@ function cm.cost1(e,c,tp,st) ...@@ -46,7 +46,7 @@ function cm.cost1(e,c,tp,st)
end end
function cm.ovfilter(c) function cm.ovfilter(c)
local tp=c:GetControler() local tp=c:GetControler()
return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsSetCard(0xfa6) and c:GetOverlayCount()==0 return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsSetCard(0x3fa6) and c:GetOverlayCount()==0
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.IsPlayerCanDraw(tp,1) end if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
......
...@@ -42,20 +42,34 @@ function cm.initial_effect(c) ...@@ -42,20 +42,34 @@ function cm.initial_effect(c)
e4:SetOperation(cm.spop) e4:SetOperation(cm.spop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function cm.matfilter(c) function cm.tgrfilter(c)
return c:IsCanOverlay() and c:IsType(TYPE_TUNER) and c:IsLevelAbove(1) and c:IsFaceup() return c:IsFaceup() and c:IsLevelAbove(1) and c:IsCanOverlay()
end end
function cm.gcheck(g,tp,c) function cm.tgrfilter1(c)
return g:CheckWithSumEqual(Card.GetLevel,8,2,2) and Duel.GetLocationCountFromEx(tp,tp,g,c)>0 return c:IsType(TYPE_TUNER) and c:IsLevelAbove(1)
end end
function cm.con(e,c,tp) function cm.mnfilter(c,g)
local g=Duel.GetMatchingGroup(cm.matfilter,tp,LOCATION_MZONE,0,nil) return g:IsExists(cm.mnfilter2,1,c,c)
return g:CheckSubGroup(cm.gcheck,2,2,tp,c) end
function cm.mnfilter2(c,mc)
return c:GetLevel()+mc:GetLevel()==8
end
function cm.fselect(g,tp,sc)
return g:GetCount()==2
and g:IsExists(cm.tgrfilter1,2,nil)
and g:IsExists(cm.mnfilter,1,nil,g)
and Duel.GetLocationCountFromEx(tp,tp,g,sc)>0
end
function cm.con(e,c)
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetMatchingGroup(cm.tgrfilter,tp,LOCATION_MZONE,0,nil)
return g:CheckSubGroup(cm.fselect,2,2,tp,c)
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp,c) function cm.op(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.GetMatchingGroup(cm.matfilter,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(cm.tgrfilter,tp,LOCATION_MZONE,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local matg=g:SelectSubGroup(tp,cm.gcheck,false,2,2,tp,c) local matg=g:SelectSubGroup(tp,cm.fselect,false,2,2,tp,c)
local og = Group.CreateGroup() local og = Group.CreateGroup()
for tc in aux.Next(matg) do for tc in aux.Next(matg) do
og:Merge(tc:GetOverlayGroup()) og:Merge(tc:GetOverlayGroup())
......
...@@ -38,20 +38,34 @@ function cm.initial_effect(c) ...@@ -38,20 +38,34 @@ function cm.initial_effect(c)
e4:SetOperation(cm.rmop) e4:SetOperation(cm.rmop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function cm.matfilter(c) function cm.tgrfilter(c)
return c:IsCanOverlay() and c:IsType(TYPE_TUNER) and c:IsLevelAbove(1) and c:IsFaceup() return c:IsFaceup() and c:IsLevelAbove(1) and c:IsCanOverlay()
end end
function cm.gcheck(g,tp,c) function cm.tgrfilter1(c)
return g:CheckWithSumEqual(Card.GetLevel,11,2,2) and Duel.GetLocationCountFromEx(tp,tp,g,c)>0 return c:IsType(TYPE_TUNER) and c:IsLevelAbove(1)
end end
function cm.con(e,c,tp) function cm.mnfilter(c,g)
local g=Duel.GetMatchingGroup(cm.matfilter,tp,LOCATION_MZONE,0,nil) return g:IsExists(cm.mnfilter2,1,c,c)
return g:CheckSubGroup(cm.gcheck,2,2,tp,c) end
function cm.mnfilter2(c,mc)
return c:GetLevel()+mc:GetLevel()==11
end
function cm.fselect(g,tp,sc)
return g:GetCount()==2
and g:IsExists(cm.tgrfilter1,2,nil)
and g:IsExists(cm.mnfilter,1,nil,g)
and Duel.GetLocationCountFromEx(tp,tp,g,sc)>0
end
function cm.con(e,c)
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetMatchingGroup(cm.tgrfilter,tp,LOCATION_MZONE,0,nil)
return g:CheckSubGroup(cm.fselect,2,2,tp,c)
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp,c) function cm.op(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.GetMatchingGroup(cm.matfilter,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(cm.tgrfilter,tp,LOCATION_MZONE,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local matg=g:SelectSubGroup(tp,cm.gcheck,false,2,2,tp,c) local matg=g:SelectSubGroup(tp,cm.fselect,false,2,2,tp,c)
local og = Group.CreateGroup() local og = Group.CreateGroup()
for tc in aux.Next(matg) do for tc in aux.Next(matg) do
og:Merge(tc:GetOverlayGroup()) og:Merge(tc:GetOverlayGroup())
......
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
!setname 0x1fb5 迦陵频伽 !setname 0x1fb5 迦陵频伽
!setname 0x2fb5 火売 !setname 0x2fb5 火売
!setname 0x4fb5 极丽六鸟 !setname 0x4fb5 极丽六鸟
!setname 0xfa6 普利兹姆 !setname 0x3fa6 普利兹姆
!setname 0xfa7 苍波 !setname 0xfa7 苍波
!setname 0x3fa7 苍波玲那 !setname 0x3fa7 苍波玲那
!setname 0x5fa7 苍波茅圣 !setname 0x5fa7 苍波茅圣
......
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