Commit abe3633e authored by TanakaKotoha's avatar TanakaKotoha

tnndx

parent ba84897c
Pipeline #2570 passed with stages
in 24 minutes and 47 seconds
No preview for this file type
expansions/pics/40009178.jpg

44.2 KB | W: | H:

expansions/pics/40009178.jpg

43.2 KB | W: | H:

expansions/pics/40009178.jpg
expansions/pics/40009178.jpg
expansions/pics/40009178.jpg
expansions/pics/40009178.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40009181.jpg

47.3 KB | W: | H:

expansions/pics/40009181.jpg

46.9 KB | W: | H:

expansions/pics/40009181.jpg
expansions/pics/40009181.jpg
expansions/pics/40009181.jpg
expansions/pics/40009181.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40009184.jpg

49.8 KB | W: | H:

expansions/pics/40009184.jpg

48.4 KB | W: | H:

expansions/pics/40009184.jpg
expansions/pics/40009184.jpg
expansions/pics/40009184.jpg
expansions/pics/40009184.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40009187.jpg

49.3 KB | W: | H:

expansions/pics/40009187.jpg

48.4 KB | W: | H:

expansions/pics/40009187.jpg
expansions/pics/40009187.jpg
expansions/pics/40009187.jpg
expansions/pics/40009187.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40009190.jpg

50.1 KB | W: | H:

expansions/pics/40009190.jpg

49.3 KB | W: | H:

expansions/pics/40009190.jpg
expansions/pics/40009190.jpg
expansions/pics/40009190.jpg
expansions/pics/40009190.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40009193.jpg

51.4 KB | W: | H:

expansions/pics/40009193.jpg

50.7 KB | W: | H:

expansions/pics/40009193.jpg
expansions/pics/40009193.jpg
expansions/pics/40009193.jpg
expansions/pics/40009193.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40009196.jpg

48.8 KB | W: | H:

expansions/pics/40009196.jpg

49.4 KB | W: | H:

expansions/pics/40009196.jpg
expansions/pics/40009196.jpg
expansions/pics/40009196.jpg
expansions/pics/40009196.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40009199.jpg

49.1 KB | W: | H:

expansions/pics/40009199.jpg

49.6 KB | W: | H:

expansions/pics/40009199.jpg
expansions/pics/40009199.jpg
expansions/pics/40009199.jpg
expansions/pics/40009199.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40009202.jpg

53.9 KB | W: | H:

expansions/pics/40009202.jpg

53.9 KB | W: | H:

expansions/pics/40009202.jpg
expansions/pics/40009202.jpg
expansions/pics/40009202.jpg
expansions/pics/40009202.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40009205.jpg

53.1 KB | W: | H:

expansions/pics/40009205.jpg

53.3 KB | W: | H:

expansions/pics/40009205.jpg
expansions/pics/40009205.jpg
expansions/pics/40009205.jpg
expansions/pics/40009205.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40009207.jpg

45.1 KB | W: | H:

expansions/pics/40009207.jpg

44.9 KB | W: | H:

expansions/pics/40009207.jpg
expansions/pics/40009207.jpg
expansions/pics/40009207.jpg
expansions/pics/40009207.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40009208.jpg

49.1 KB | W: | H:

expansions/pics/40009208.jpg

49.1 KB | W: | H:

expansions/pics/40009208.jpg
expansions/pics/40009208.jpg
expansions/pics/40009208.jpg
expansions/pics/40009208.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40009209.jpg

50.5 KB | W: | H:

expansions/pics/40009209.jpg

50.7 KB | W: | H:

expansions/pics/40009209.jpg
expansions/pics/40009209.jpg
expansions/pics/40009209.jpg
expansions/pics/40009209.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -32,6 +32,7 @@ function cm.cfilter(c)
return c:IsFacedown() or not c:IsSetCard(0x304)
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local tp=e:GetHandlerPlayer()
return not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
end
function cm.ntop(e,tp,eg,ep,ev,re,r,rp,c)
......
......@@ -29,7 +29,7 @@ function c30553102.initial_effect(c)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e3)
end
function cm.costfil(c)
function cm.costfil(c,tp)
return c:IsSetCard(0x304) and c:IsType(TYPE_MONSTER) and not c:IsPublic()
and Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_DECK,0,1,nil,c:GetCode())
end
......@@ -37,8 +37,9 @@ function cm.costfilter(c,code)
return c:IsSetCard(0x304) and not c:IsCode(code) and c:IsAbleToHand()
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.costfil,tp,LOCATION_HAND,0,1,nil) end
local g=Duel.SelectMatchingCard(tp,cm.costfil,tp,LOCATION_HAND,0,1,1,nil)
local tp=e:GetHandlerPlayer()
if chk==0 then return Duel.IsExistingMatchingCard(cm.costfil,tp,LOCATION_HAND,0,1,nil,tp) end
local g=Duel.SelectMatchingCard(tp,cm.costfil,tp,LOCATION_HAND,0,1,1,nil,tp)
e:SetLabelObject(g:GetFirst())
Duel.ConfirmCards(1-tp,g)
Duel.ShuffleHand(tp)
......@@ -47,6 +48,7 @@ function cm.thfil(c)
return c:IsSetCard(0x304) and not c:IsCode(m) and c:IsAbleToHand()
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
local tp=e:GetHandlerPlayer()
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
......
......@@ -21,7 +21,7 @@ function c30553106.initial_effect(c)
e3:SetDescription(aux.Stringid(m,1))
e3:SetCategory(CATEGORY_CONTROL)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_BATTLE_START)
e3:SetCode(EVENT_ATTACK_ANNOUNCE)
e3:SetRange(LOCATION_GRAVE)
e3:SetCondition(cm.descon)
e3:SetCost(aux.bfgcost)
......@@ -63,9 +63,12 @@ end
function cm.descon(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttacker()
if tc:IsControler(1-tp) then tc=Duel.GetAttackTarget() end
e:SetLabelObject(tc)
return tc and tc:IsFaceup() and tc:IsSetCard(0x304)
local ac=Duel.GetAttackTarget()
if ac then
if tc:IsControler(1-tp) then tc=Duel.GetAttackTarget() end
e:SetLabelObject(tc)
return tc and tc:IsFaceup() and tc:IsSetCard(0x304)
end
end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local a=Duel.GetAttacker()
......
......@@ -144,10 +144,10 @@ function cm.stop(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_PHASE+ph)
Duel.RegisterEffect(e2,tp)
else
if Duel.IsExistingMatchingCard(cm.setfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil)
if Duel.IsExistingMatchingCard(cm.setfilter,tp,LOCATION_DECK+LOCATION_REMOVED,0,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(m,1))then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g=Duel.SelectMatchingCard(tp,cm.setfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,cm.setfilter,tp,LOCATION_DECK+LOCATION_REMOVED,0,1,1,nil)
local tc=g:GetFirst()
if Duel.SSet(tp,tc)~=0 then
local e1=Effect.CreateEffect(e:GetHandler())
......
......@@ -35,7 +35,7 @@ function cm.initial_effect(c)
end
function cm.cfilter(c,tp)
return c:GetSummonPlayer()==tp
return c:GetSummonPlayer()==tp and c:IsSetCard(0xa341)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.cfilter,1,nil,tp)
......
......@@ -63,10 +63,10 @@ function c40009178.nnegcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RemoveCounter(tp,1,0,0xf1c,3,REASON_COST)
end
function c40009178.setcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(nil,tp,LOCATION_PZONE,0,1,e:GetHandler()) and not Duel.IsPlayerAffectedByEffect(tp,40009208)
return not Duel.IsExistingMatchingCard(nil,tp,LOCATION_PZONE,0,1,e:GetHandler()) and (not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208)))
end
function c40009178.setcon2(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(nil,tp,LOCATION_PZONE,0,1,e:GetHandler()) and Duel.IsPlayerAffectedByEffect(tp,40009208)
return not Duel.IsExistingMatchingCard(nil,tp,LOCATION_PZONE,0,1,e:GetHandler()) and Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009178.setfilter(c)
return c:IsSetCard(0xf1c) and c:IsType(TYPE_PENDULUM) and not c:IsForbidden() and c:IsFaceup()
......@@ -99,10 +99,10 @@ function c40009178.splimit(e,c)
return not (c:IsType(TYPE_XYZ) or c:IsSetCard(0xf1c)) and c:IsLocation(LOCATION_EXTRA)
end
function c40009178.spcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,40009208)
return not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208))
end
function c40009178.spcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,40009208)
return Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009178.rmfilter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0xf1c) and c:IsAbleToRemove() and c:IsLevelAbove(1) and Duel.IsExistingMatchingCard(c40009178.spfilter,tp,LOCATION_DECK,0,1,nil,c:GetLevel(),e,tp)
......@@ -185,10 +185,10 @@ function c40009178.retop2(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)
end
function c40009178.tdcon1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsFaceup() and not Duel.IsPlayerAffectedByEffect(tp,40009208)
return e:GetHandler():IsFaceup() and (not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208)))
end
function c40009178.tdcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsFaceup() and Duel.IsPlayerAffectedByEffect(tp,40009208)
return e:GetHandler():IsFaceup() and Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009178.tdfilter(c)
return c:IsSetCard(0xf1c) and c:IsAbleToDeck() and c:IsFaceup()
......
......@@ -63,10 +63,10 @@ function c40009181.nnegcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RemoveCounter(tp,1,0,0xf1c,3,REASON_COST)
end
function c40009181.setcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,40009208)
return not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208))
end
function c40009181.setcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,40009208)
return Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009181.filter(c)
return c:IsSetCard(0xf1c) and c:IsAbleToHand() and c:IsType(TYPE_SPELL+TYPE_TRAP)
......@@ -95,10 +95,10 @@ function c40009181.splimit(e,c)
return not (c:IsType(TYPE_XYZ) or c:IsSetCard(0xf1c)) and c:IsLocation(LOCATION_EXTRA)
end
function c40009181.spcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,40009208)
return not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208))
end
function c40009181.spcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,40009208)
return Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009181.rmfilter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0xf1c) and c:IsAbleToRemove() and c:IsLevelAbove(1) and Duel.IsExistingMatchingCard(c40009181.spfilter,tp,LOCATION_DECK,0,1,nil,c:GetLevel(),e,tp)
......@@ -181,10 +181,10 @@ function c40009181.retop2(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)
end
function c40009181.tdcon1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsFaceup() and not Duel.IsPlayerAffectedByEffect(tp,40009208)
return e:GetHandler():IsFaceup() and (not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208)))
end
function c40009181.tdcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsFaceup() and Duel.IsPlayerAffectedByEffect(tp,40009208)
return e:GetHandler():IsFaceup() and Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009181.tdfilter(c)
return c:IsSetCard(0xf1c) and c:IsAbleToDeck() and c:IsFaceup()
......
......@@ -63,10 +63,10 @@ function c40009184.nnegcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RemoveCounter(tp,1,0,0xf1c,3,REASON_COST)
end
function c40009184.setcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,40009208)
return not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208))
end
function c40009184.setcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,40009208)
return Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009184.filter(c)
return c:IsSetCard(0xf1c) and c:IsAbleToHand() and c:IsType(TYPE_MONSTER) and not c:IsCode(40009184)
......@@ -95,10 +95,10 @@ function c40009184.splimit(e,c)
return not (c:IsType(TYPE_XYZ) or c:IsSetCard(0xf1c)) and c:IsLocation(LOCATION_EXTRA)
end
function c40009184.spcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,40009208)
return not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208))
end
function c40009184.spcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,40009208)
return Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009184.rmfilter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0xf1c) and c:IsAbleToRemove() and c:IsLevelAbove(1) and Duel.IsExistingMatchingCard(c40009184.spfilter,tp,LOCATION_DECK,0,1,nil,c:GetLevel(),e,tp)
......@@ -181,10 +181,10 @@ function c40009184.retop2(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)
end
function c40009184.tdcon1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsFaceup() and not Duel.IsPlayerAffectedByEffect(tp,40009208)
return e:GetHandler():IsFaceup() and (not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208)))
end
function c40009184.tdcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsFaceup() and Duel.IsPlayerAffectedByEffect(tp,40009208)
return e:GetHandler():IsFaceup() and Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009184.tdfilter(c)
return c:IsSetCard(0xf1c) and c:IsAbleToDeck() and c:IsFaceup()
......
......@@ -64,10 +64,10 @@ function c40009187.nnegcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RemoveCounter(tp,1,0,0xf1c,3,REASON_COST)
end
function c40009187.setcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,40009208)
return not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208))
end
function c40009187.setcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,40009208)
return Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009187.setfilter(c,e,tp)
return c:IsSetCard(0xf1c) and (not c:IsCode(40009187)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......@@ -98,10 +98,10 @@ function c40009187.splimit(e,c)
return not (c:IsType(TYPE_XYZ) or c:IsSetCard(0xf1c)) and c:IsLocation(LOCATION_EXTRA)
end
function c40009187.spcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,40009208)
return not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208))
end
function c40009187.spcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,40009208)
return Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009187.rmfilter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0xf1c) and c:IsAbleToRemove() and c:IsLevelAbove(1) and Duel.IsExistingMatchingCard(c40009187.spfilter,tp,LOCATION_DECK,0,1,nil,c:GetLevel(),e,tp)
......@@ -184,10 +184,10 @@ function c40009187.retop2(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)
end
function c40009187.tdcon1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsFaceup() and not Duel.IsPlayerAffectedByEffect(tp,40009208)
return e:GetHandler():IsFaceup() and (not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208)))
end
function c40009187.tdcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsFaceup() and Duel.IsPlayerAffectedByEffect(tp,40009208)
return e:GetHandler():IsFaceup() and Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009187.tdfilter(c)
return c:IsSetCard(0xf1c) and c:IsAbleToDeck() and c:IsFaceup()
......
......@@ -64,10 +64,10 @@ function c40009190.nnegcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RemoveCounter(tp,1,0,0xf1c,3,REASON_COST)
end
function c40009190.setcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,40009208)
return not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208))
end
function c40009190.setcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,40009208)
return Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009190.setfilter(c,e,tp)
return c:IsSetCard(0xf1c) and c:IsLevel(3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......@@ -97,10 +97,10 @@ function c40009190.splimit(e,c)
return not (c:IsType(TYPE_XYZ) or c:IsSetCard(0xf1c)) and c:IsLocation(LOCATION_EXTRA)
end
function c40009190.spcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,40009208)
return not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208))
end
function c40009190.spcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,40009208)
return Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009190.filter1(c,e,tp)
return c:IsFaceup() and Duel.IsExistingMatchingCard(c40009190.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c) and c:IsSetCard(0xf1c) and c:IsType(TYPE_PENDULUM) and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL)
......@@ -159,10 +159,10 @@ function c40009190.retop2(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)
end
function c40009190.tdcon1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsFaceup() and not Duel.IsPlayerAffectedByEffect(tp,40009208)
return e:GetHandler():IsFaceup() and (not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208)))
end
function c40009190.tdcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsFaceup() and Duel.IsPlayerAffectedByEffect(tp,40009208)
return e:GetHandler():IsFaceup() and (Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208))
end
function c40009190.tdfilter(c)
return c:IsSetCard(0xf1c) and c:IsAbleToDeck() and c:IsFaceup()
......
......@@ -64,10 +64,10 @@ function c40009193.nnegcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RemoveCounter(tp,1,0,0xf1c,3,REASON_COST)
end
function c40009193.setcon1(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(nil,tp,LOCATION_PZONE,0,1,e:GetHandler()) and not Duel.IsPlayerAffectedByEffect(tp,40009208)
return Duel.IsExistingMatchingCard(nil,tp,LOCATION_PZONE,0,1,e:GetHandler()) and (not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208)))
end
function c40009193.setcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(nil,tp,LOCATION_PZONE,0,1,e:GetHandler()) and Duel.IsPlayerAffectedByEffect(tp,40009208)
return Duel.IsExistingMatchingCard(nil,tp,LOCATION_PZONE,0,1,e:GetHandler()) and Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009193.setfilter(c,e,tp)
return c:IsSetCard(0xf1c) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......@@ -98,10 +98,10 @@ function c40009193.splimit(e,c)
return not (c:IsType(TYPE_XYZ) or c:IsSetCard(0xf1c)) and c:IsLocation(LOCATION_EXTRA)
end
function c40009193.spcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,40009208)
return not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208))
end
function c40009193.spcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,40009208)
return Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009193.filter1(c,e,tp)
return c:IsFaceup() and Duel.IsExistingMatchingCard(c40009193.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c) and c:IsSetCard(0xf1c) and c:IsType(TYPE_PENDULUM) and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL)
......@@ -160,10 +160,10 @@ function c40009193.retop2(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)
end
function c40009193.tdcon1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsFaceup() and not Duel.IsPlayerAffectedByEffect(tp,40009208)
return e:GetHandler():IsFaceup() and (not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208)))
end
function c40009193.tdcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsFaceup() and Duel.IsPlayerAffectedByEffect(tp,40009208)
return e:GetHandler():IsFaceup() and Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009193.tdfilter(c)
return c:IsSetCard(0xf1c) and c:IsAbleToDeck() and c:IsFaceup()
......
......@@ -26,7 +26,7 @@ function c40009196.initial_effect(c)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_SZONE)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetCountLimit(1)
e3:SetCountLimit(1,EFFECT_COUNT_CODE_SINGLE)
e3:SetCondition(c40009196.spcon1)
e3:SetTarget(c40009196.destg)
e3:SetOperation(c40009196.desop)
......@@ -52,10 +52,10 @@ function c40009196.nnegcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RemoveCounter(tp,1,0,0xf1c,3,REASON_COST)
end
function c40009196.spcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,40009208)
return not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208))
end
function c40009196.spcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,40009208)
return Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009196.ctfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0xf1c) and c:IsControler(tp)
......@@ -67,7 +67,8 @@ function c40009196.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0xf1c,2)
end
function c40009196.val(e,c)
return e:GetHandler():GetCounter(0xf1c)*100
--return e:GetHandler():GetCounter(0xf1c)*100
return Duel.GetCounter(0,1,1,0xf1c)*100
end
function c40009196.desfilter(c)
return c:IsFaceup()
......
......@@ -108,7 +108,7 @@ function cm.xyzop(e,tp)
end
sc:SetMaterial(tg)
Duel.Overlay(sc,tg)
Duel.SpecialSummonStep(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP)
Duel.SpecialSummonStep(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP)
end
Duel.SpecialSummonComplete()
end
......@@ -146,7 +146,7 @@ function cm.setcon1(e,tp,eg,ep,ev,re,r,rp)
else
g=Duel.GetFieldGroup(tp,loc,0)
end
return g:IsExists(aux.PConditionFilter,1,nil,e,tp,lscale,rscale,eset) and not Duel.IsPlayerAffectedByEffect(tp,40009208)
return g:IsExists(aux.PConditionFilter,1,nil,e,tp,lscale,rscale,eset) and (not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208)))
end
function cm.setcon2(e,tp,eg,ep,ev,re,r,rp)
local lpz=Duel.GetFieldCard(tp,LOCATION_PZONE,0)
......@@ -165,7 +165,7 @@ function cm.setcon2(e,tp,eg,ep,ev,re,r,rp)
else
g=Duel.GetFieldGroup(tp,loc,0)
end
return g:IsExists(aux.PConditionFilter,1,nil,e,tp,lscale,rscale,eset) and Duel.IsPlayerAffectedByEffect(tp,40009208)
return g:IsExists(aux.PConditionFilter,1,nil,e,tp,lscale,rscale,eset) and Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function cm.pspop(e,tp,eg,ep,ev,re,r,rp,sg,og)
local rpz=Duel.GetFieldCard(tp,LOCATION_PZONE,0)
......
......@@ -25,7 +25,7 @@ function c40009207.initial_effect(c)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_SZONE)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetCountLimit(1)
e3:SetCountLimit(1,EFFECT_COUNT_CODE_SINGLE)
e3:SetCondition(c40009207.spcon1)
e3:SetTarget(c40009207.tdtg)
e3:SetOperation(c40009207.tdop)
......@@ -114,10 +114,10 @@ function c40009207.nnegcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RemoveCounter(tp,1,0,0xf1c,3,REASON_COST)
end
function c40009207.spcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,40009208)
return not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208))
end
function c40009207.spcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,40009208)
return Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009207.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0xf1c,5,REASON_COST) end
......
......@@ -24,7 +24,7 @@ function c40009208.initial_effect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetCode(40009208)
e3:SetRange(LOCATION_FZONE)
e3:SetRange(LOCATION_SZONE)
e3:SetTargetRange(1,0)
c:RegisterEffect(e3)
--remove
......@@ -34,7 +34,7 @@ function c40009208.initial_effect(c)
e5:SetProperty(EFFECT_FLAG_CARD_TARGET)
e5:SetType(EFFECT_TYPE_IGNITION)
e5:SetRange(LOCATION_SZONE)
e5:SetCountLimit(1)
e5:SetCountLimit(1,EFFECT_COUNT_CODE_SINGLE)
e5:SetCondition(c40009208.spcon1)
e5:SetTarget(c40009208.sptg)
e5:SetOperation(c40009208.spop)
......@@ -42,7 +42,6 @@ function c40009208.initial_effect(c)
local e6=e5:Clone()
e6:SetType(EFFECT_TYPE_QUICK_O)
e6:SetCode(EVENT_FREE_CHAIN)
e6:SetHintTiming(0,TIMING_END_PHASE)
e6:SetCost(c40009208.negcost)
e6:SetCondition(c40009208.spcon2)
c:RegisterEffect(e6)
......@@ -61,10 +60,10 @@ function c40009208.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0xf1c,2)
end
function c40009208.spcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,40009208)
return not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208))
end
function c40009208.spcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,40009208)
return Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009208.filter1(c,e,tp)
return c:IsFaceup() and Duel.IsExistingMatchingCard(c40009208.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c) and c:IsSetCard(0xf1c) and c:IsType(TYPE_PENDULUM) and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL)
......
......@@ -63,10 +63,10 @@ function c40009209.nnegcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RemoveCounter(tp,1,0,0xf2c,3,REASON_COST)
end
function c40009209.setcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,40009208)
return not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208))
end
function c40009209.setcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,40009208)
return Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208)
end
function c40009209.cfilter(c)
return c:IsAbleToGraveAsCost()
......@@ -101,10 +101,10 @@ function c40009209.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c40009209.tdcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,40009208) and e:GetHandler():GetFlagEffect(40009209)~=0
return (not Duel.IsPlayerAffectedByEffect(tp,40009208) or (Duel.GetCurrentChain()<1 and Duel.IsPlayerAffectedByEffect(tp,40009208))) and e:GetHandler():GetFlagEffect(40009209)~=0
end
function c40009209.tdcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,40009208) and e:GetHandler():GetFlagEffect(40009209)~=0
return Duel.GetCurrentChain()>0 and Duel.IsPlayerAffectedByEffect(tp,40009208) and e:GetHandler():GetFlagEffect(40009209)~=0
end
function c40009209.tdfilter(c)
return c:IsAbleToDeck()
......
......@@ -2,6 +2,9 @@
local m=64800015
local cm=_G["c"..m]
function cm.initial_effect(c)
--link summon
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkType,TYPE_EFFECT),3)
c:EnableReviveLimit()
c:SetSPSummonOnce(m)
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_FIELD)
......@@ -63,8 +66,8 @@ function cm.lkcon(e,c)
sg:AddCard(pc)
end
local ct=sg:GetCount()
local minc=2
local maxc=2
local minc=3
local maxc=4
if ct>maxc then return false end
return cm.lcheck(tp,sg,c,minc,ct) or mg:IsExists(cm.lkchenk,1,nil,tp,sg,mg,c,ct,minc,maxc)
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