Commit 22e7fa38 authored by Nemo Ma's avatar Nemo Ma

wild

parent 8bb6b986
expansions/pics/25000000.jpg

161 KB | W: | H:

expansions/pics/25000000.jpg

165 KB | W: | H:

expansions/pics/25000000.jpg
expansions/pics/25000000.jpg
expansions/pics/25000000.jpg
expansions/pics/25000000.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700001.jpg

10.7 KB | W: | H:

expansions/pics/90700001.jpg

722 KB | W: | H:

expansions/pics/90700001.jpg
expansions/pics/90700001.jpg
expansions/pics/90700001.jpg
expansions/pics/90700001.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700002.jpg

11.4 KB | W: | H:

expansions/pics/90700002.jpg

736 KB | W: | H:

expansions/pics/90700002.jpg
expansions/pics/90700002.jpg
expansions/pics/90700002.jpg
expansions/pics/90700002.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700003.jpg

11.9 KB | W: | H:

expansions/pics/90700003.jpg

759 KB | W: | H:

expansions/pics/90700003.jpg
expansions/pics/90700003.jpg
expansions/pics/90700003.jpg
expansions/pics/90700003.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700004.jpg

12.2 KB | W: | H:

expansions/pics/90700004.jpg

768 KB | W: | H:

expansions/pics/90700004.jpg
expansions/pics/90700004.jpg
expansions/pics/90700004.jpg
expansions/pics/90700004.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700005.jpg

12.1 KB | W: | H:

expansions/pics/90700005.jpg

753 KB | W: | H:

expansions/pics/90700005.jpg
expansions/pics/90700005.jpg
expansions/pics/90700005.jpg
expansions/pics/90700005.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700006.jpg

11.8 KB | W: | H:

expansions/pics/90700006.jpg

749 KB | W: | H:

expansions/pics/90700006.jpg
expansions/pics/90700006.jpg
expansions/pics/90700006.jpg
expansions/pics/90700006.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700007.jpg

11.9 KB | W: | H:

expansions/pics/90700007.jpg

747 KB | W: | H:

expansions/pics/90700007.jpg
expansions/pics/90700007.jpg
expansions/pics/90700007.jpg
expansions/pics/90700007.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700008.jpg

11.9 KB | W: | H:

expansions/pics/90700008.jpg

750 KB | W: | H:

expansions/pics/90700008.jpg
expansions/pics/90700008.jpg
expansions/pics/90700008.jpg
expansions/pics/90700008.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700009.jpg

11.2 KB | W: | H:

expansions/pics/90700009.jpg

735 KB | W: | H:

expansions/pics/90700009.jpg
expansions/pics/90700009.jpg
expansions/pics/90700009.jpg
expansions/pics/90700009.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700010.jpg

12 KB | W: | H:

expansions/pics/90700010.jpg

990 KB | W: | H:

expansions/pics/90700010.jpg
expansions/pics/90700010.jpg
expansions/pics/90700010.jpg
expansions/pics/90700010.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700021.jpg

11.2 KB | W: | H:

expansions/pics/90700021.jpg

742 KB | W: | H:

expansions/pics/90700021.jpg
expansions/pics/90700021.jpg
expansions/pics/90700021.jpg
expansions/pics/90700021.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700030.jpg

373 KB | W: | H:

expansions/pics/90700030.jpg

1.51 MB | W: | H:

expansions/pics/90700030.jpg
expansions/pics/90700030.jpg
expansions/pics/90700030.jpg
expansions/pics/90700030.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700031.jpg

9.33 KB | W: | H:

expansions/pics/90700031.jpg

626 KB | W: | H:

expansions/pics/90700031.jpg
expansions/pics/90700031.jpg
expansions/pics/90700031.jpg
expansions/pics/90700031.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700032.jpg

9.11 KB | W: | H:

expansions/pics/90700032.jpg

620 KB | W: | H:

expansions/pics/90700032.jpg
expansions/pics/90700032.jpg
expansions/pics/90700032.jpg
expansions/pics/90700032.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700033.jpg

8.35 KB | W: | H:

expansions/pics/90700033.jpg

544 KB | W: | H:

expansions/pics/90700033.jpg
expansions/pics/90700033.jpg
expansions/pics/90700033.jpg
expansions/pics/90700033.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700034.jpg

8.84 KB | W: | H:

expansions/pics/90700034.jpg

598 KB | W: | H:

expansions/pics/90700034.jpg
expansions/pics/90700034.jpg
expansions/pics/90700034.jpg
expansions/pics/90700034.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700035.jpg

8.89 KB | W: | H:

expansions/pics/90700035.jpg

610 KB | W: | H:

expansions/pics/90700035.jpg
expansions/pics/90700035.jpg
expansions/pics/90700035.jpg
expansions/pics/90700035.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700036.jpg

9.15 KB | W: | H:

expansions/pics/90700036.jpg

616 KB | W: | H:

expansions/pics/90700036.jpg
expansions/pics/90700036.jpg
expansions/pics/90700036.jpg
expansions/pics/90700036.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700037.jpg

9.22 KB | W: | H:

expansions/pics/90700037.jpg

612 KB | W: | H:

expansions/pics/90700037.jpg
expansions/pics/90700037.jpg
expansions/pics/90700037.jpg
expansions/pics/90700037.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700038.jpg

9.21 KB | W: | H:

expansions/pics/90700038.jpg

617 KB | W: | H:

expansions/pics/90700038.jpg
expansions/pics/90700038.jpg
expansions/pics/90700038.jpg
expansions/pics/90700038.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700039.jpg

9.28 KB | W: | H:

expansions/pics/90700039.jpg

618 KB | W: | H:

expansions/pics/90700039.jpg
expansions/pics/90700039.jpg
expansions/pics/90700039.jpg
expansions/pics/90700039.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700040.jpg

8.86 KB | W: | H:

expansions/pics/90700040.jpg

607 KB | W: | H:

expansions/pics/90700040.jpg
expansions/pics/90700040.jpg
expansions/pics/90700040.jpg
expansions/pics/90700040.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700041.jpg

9.01 KB | W: | H:

expansions/pics/90700041.jpg

566 KB | W: | H:

expansions/pics/90700041.jpg
expansions/pics/90700041.jpg
expansions/pics/90700041.jpg
expansions/pics/90700041.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700042.jpg

9.56 KB | W: | H:

expansions/pics/90700042.jpg

579 KB | W: | H:

expansions/pics/90700042.jpg
expansions/pics/90700042.jpg
expansions/pics/90700042.jpg
expansions/pics/90700042.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700048.jpg

8.58 KB | W: | H:

expansions/pics/90700048.jpg

711 KB | W: | H:

expansions/pics/90700048.jpg
expansions/pics/90700048.jpg
expansions/pics/90700048.jpg
expansions/pics/90700048.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700049.jpg

9.35 KB | W: | H:

expansions/pics/90700049.jpg

719 KB | W: | H:

expansions/pics/90700049.jpg
expansions/pics/90700049.jpg
expansions/pics/90700049.jpg
expansions/pics/90700049.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700050.jpg

8.89 KB | W: | H:

expansions/pics/90700050.jpg

671 KB | W: | H:

expansions/pics/90700050.jpg
expansions/pics/90700050.jpg
expansions/pics/90700050.jpg
expansions/pics/90700050.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700051.jpg

8.26 KB | W: | H:

expansions/pics/90700051.jpg

626 KB | W: | H:

expansions/pics/90700051.jpg
expansions/pics/90700051.jpg
expansions/pics/90700051.jpg
expansions/pics/90700051.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700054.jpg

11 KB | W: | H:

expansions/pics/90700054.jpg

770 KB | W: | H:

expansions/pics/90700054.jpg
expansions/pics/90700054.jpg
expansions/pics/90700054.jpg
expansions/pics/90700054.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700056.jpg

55.8 KB | W: | H:

expansions/pics/90700056.jpg

428 KB | W: | H:

expansions/pics/90700056.jpg
expansions/pics/90700056.jpg
expansions/pics/90700056.jpg
expansions/pics/90700056.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700057.jpg

48.8 KB | W: | H:

expansions/pics/90700057.jpg

378 KB | W: | H:

expansions/pics/90700057.jpg
expansions/pics/90700057.jpg
expansions/pics/90700057.jpg
expansions/pics/90700057.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700058.jpg

57.2 KB | W: | H:

expansions/pics/90700058.jpg

427 KB | W: | H:

expansions/pics/90700058.jpg
expansions/pics/90700058.jpg
expansions/pics/90700058.jpg
expansions/pics/90700058.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700059.jpg

42.4 KB | W: | H:

expansions/pics/90700059.jpg

390 KB | W: | H:

expansions/pics/90700059.jpg
expansions/pics/90700059.jpg
expansions/pics/90700059.jpg
expansions/pics/90700059.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700061.jpg

12.8 KB | W: | H:

expansions/pics/90700061.jpg

914 KB | W: | H:

expansions/pics/90700061.jpg
expansions/pics/90700061.jpg
expansions/pics/90700061.jpg
expansions/pics/90700061.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700062.jpg

52.9 KB | W: | H:

expansions/pics/90700062.jpg

891 KB | W: | H:

expansions/pics/90700062.jpg
expansions/pics/90700062.jpg
expansions/pics/90700062.jpg
expansions/pics/90700062.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700063.jpg

48 KB | W: | H:

expansions/pics/90700063.jpg

727 KB | W: | H:

expansions/pics/90700063.jpg
expansions/pics/90700063.jpg
expansions/pics/90700063.jpg
expansions/pics/90700063.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700064.jpg

54 KB | W: | H:

expansions/pics/90700064.jpg

907 KB | W: | H:

expansions/pics/90700064.jpg
expansions/pics/90700064.jpg
expansions/pics/90700064.jpg
expansions/pics/90700064.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700065.jpg

60.2 KB | W: | H:

expansions/pics/90700065.jpg

926 KB | W: | H:

expansions/pics/90700065.jpg
expansions/pics/90700065.jpg
expansions/pics/90700065.jpg
expansions/pics/90700065.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700066.jpg

55.3 KB | W: | H:

expansions/pics/90700066.jpg

882 KB | W: | H:

expansions/pics/90700066.jpg
expansions/pics/90700066.jpg
expansions/pics/90700066.jpg
expansions/pics/90700066.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700067.jpg

51.8 KB | W: | H:

expansions/pics/90700067.jpg

897 KB | W: | H:

expansions/pics/90700067.jpg
expansions/pics/90700067.jpg
expansions/pics/90700067.jpg
expansions/pics/90700067.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700068.jpg

57.1 KB | W: | H:

expansions/pics/90700068.jpg

961 KB | W: | H:

expansions/pics/90700068.jpg
expansions/pics/90700068.jpg
expansions/pics/90700068.jpg
expansions/pics/90700068.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700069.jpg

57 KB | W: | H:

expansions/pics/90700069.jpg

864 KB | W: | H:

expansions/pics/90700069.jpg
expansions/pics/90700069.jpg
expansions/pics/90700069.jpg
expansions/pics/90700069.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700071.jpg

49.8 KB | W: | H:

expansions/pics/90700071.jpg

851 KB | W: | H:

expansions/pics/90700071.jpg
expansions/pics/90700071.jpg
expansions/pics/90700071.jpg
expansions/pics/90700071.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700072.jpg

42.5 KB | W: | H:

expansions/pics/90700072.jpg

683 KB | W: | H:

expansions/pics/90700072.jpg
expansions/pics/90700072.jpg
expansions/pics/90700072.jpg
expansions/pics/90700072.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700073.jpg

14.4 KB | W: | H:

expansions/pics/90700073.jpg

1.84 MB | W: | H:

expansions/pics/90700073.jpg
expansions/pics/90700073.jpg
expansions/pics/90700073.jpg
expansions/pics/90700073.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700078.jpg

14.1 KB | W: | H:

expansions/pics/90700078.jpg

2.05 MB | W: | H:

expansions/pics/90700078.jpg
expansions/pics/90700078.jpg
expansions/pics/90700078.jpg
expansions/pics/90700078.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700079.jpg

14 KB | W: | H:

expansions/pics/90700079.jpg

2.85 MB | W: | H:

expansions/pics/90700079.jpg
expansions/pics/90700079.jpg
expansions/pics/90700079.jpg
expansions/pics/90700079.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700080.jpg

9.74 KB | W: | H:

expansions/pics/90700080.jpg

668 KB | W: | H:

expansions/pics/90700080.jpg
expansions/pics/90700080.jpg
expansions/pics/90700080.jpg
expansions/pics/90700080.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700081.jpg

9.23 KB | W: | H:

expansions/pics/90700081.jpg

538 KB | W: | H:

expansions/pics/90700081.jpg
expansions/pics/90700081.jpg
expansions/pics/90700081.jpg
expansions/pics/90700081.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700084.jpg

46.3 KB | W: | H:

expansions/pics/90700084.jpg

721 KB | W: | H:

expansions/pics/90700084.jpg
expansions/pics/90700084.jpg
expansions/pics/90700084.jpg
expansions/pics/90700084.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/90700085.jpg

502 KB | W: | H:

expansions/pics/90700085.jpg

769 KB | W: | H:

expansions/pics/90700085.jpg
expansions/pics/90700085.jpg
expansions/pics/90700085.jpg
expansions/pics/90700085.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/field/90700048.jpg

63.1 KB | W: | H:

expansions/pics/field/90700048.jpg

992 KB | W: | H:

expansions/pics/field/90700048.jpg
expansions/pics/field/90700048.jpg
expansions/pics/field/90700048.jpg
expansions/pics/field/90700048.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -115,14 +115,14 @@ function cm.econ2(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,m)==0 and Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0 and (ph==PHASE_MAIN1 or ph==PHASE_MAIN2) and Duel.GetCurrentChain()==0 and Duel.GetTurnPlayer()==tp
end
function cm.ceoperation(e,tp,eg,ep,ev,re,r,rp)
if rp==tp then return end
if rp==tp or not re:IsActiveType(TYPE_MONSTER) then return end
local g=Group.CreateGroup()
Duel.ChangeTargetCard(ev,g)
Duel.ChangeChainOperation(ev,cm.repop)
end
function cm.repop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then Duel.Destroy(c,REASON_EFFECT) end
if c:IsFaceup() and c:IsRelateToEffect(e) then Duel.Destroy(c,REASON_EFFECT) end
end
function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,m)
......
--卫星闪灵 怒焰精灵
local m=60002084
local cm=_G["c"..m]
cm.name="卫星闪灵 怒焰精灵"
function cm.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_EXTRA)
e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(cm.spcon)
c:RegisterEffect(e1)
--disable
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,1))
e2:SetCategory(CATEGORY_DESTROY+CATEGORY_DISABLE)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_CHAINING)
e2:SetCountLimit(1,m+10000000)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(cm.discon)
e2:SetCost(cm.discost)
e2:SetTarget(cm.distg)
e2:SetOperation(cm.disop)
c:RegisterEffect(e2)
end
function cm.filter(c)
return (c:IsLevel(2) or c:IsLink(2)) and c:IsFaceup()
end
function cm.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(cm.filter,c:GetControler(),LOCATION_MZONE,0,1,nil)
end
function cm.discon(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and Duel.IsChainDisablable(ev)
end
function cm.cfilter(c)
return c:IsLevel(2) or c:IsRank(2) or c:IsLink(2)
end
function cm.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,cm.cfilter,1,e:GetHandler()) end
local g=Duel.SelectReleaseGroup(tp,cm.cfilter,1,1,e:GetHandler())
Duel.Release(g,REASON_COST)
local tc=Duel.GetOperatedGroup():GetFirst()
e:SetLabelObject(tc)
end
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DISABLE,eg,1,0,0)
end
function cm.disop(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
if Duel.NegateEffect(ev) and rc:IsRelateToEffect(re) and rc:IsDestructable()
and (e:GetLabelObject():IsRank(2) or e:GetLabelObject():IsLink(2))
and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
Duel.BreakEffect()
Duel.Destroy(rc,REASON_EFFECT)
end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetTargetRange(1,1)
e1:SetTarget(cm.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function cm.splimit(e,c)
return not c:IsLevel(2) and not c:IsRank(2) and not c:IsLink(2)
end
\ No newline at end of file
......@@ -45,7 +45,7 @@ function cm.actop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(field,REASON_RULE)
end
local tc=e:GetHandler()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.MoveToField(tc,tp,tp,LOCATION_FZONE,POS_FACEUP,true)
end
function cm.atktgfilter(e,c)
return c:IsSetCard(0x5ac0)
......
......@@ -65,8 +65,8 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
if op==0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local g=Duel.SelectMatchingCard(tp,cm.gravemtfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil)
local tc=g:GetFirst()
local m=_G["c"..tc:GetCode()]
local tc=g:GetFirst()
local m=_G["c"..tc:GetOriginalCode()]
local te=m.act
local op=te:GetOperation()
te:SetLabel(1)
......
......@@ -338,7 +338,7 @@ end
function cm.spcostfliter(c)
return c:IsSetCard(0x8d) and c:IsAbleToGraveAsCost()
end
function cm.spfilter(c)
function cm.spfliter(c)
return c:IsSetCard(0x8d) and c:IsDiscardable() and c:IsType(TYPE_MONSTER) and Duel.GetMatchingGroupCount(cm.spcostfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,nil)>=c:GetLevel()
end
function cm.spcon(e,c)
......@@ -352,7 +352,8 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
local tc=g:GetFirst()
local lv=tc:GetLevel()
Duel.SendtoGrave(g,REASON_DISCARD+REASON_COST)
e:GetHandler():RegisterFlagEffect(m+100,RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD,0,1,lv)
local g2=Duel.SelectMatchingCard(tp,cm.spcostfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,lv,lv,nil)
Duel.SendtoGrave(g2,REASON_COST)
end
function cm.serstfilter(c)
return c:IsSetCard(0x8d) and c:IsType(TYPE_SPELL+TYPE_TRAP)
......@@ -361,16 +362,19 @@ function cm.serstfilter2(c)
return c:IsSetCard(0x8d) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsPosition(POS_FACEUP)
end
function cm.serstcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonLocation()==LOCATION_EXTRA and e:GetHandler():GetFlagEffect(m+100)>0
return e:GetHandler():GetSummonLocation()==LOCATION_EXTRA and Duel.GetMatchingGroupCount(cm.serstfilter2,tp,LOCATION_ONFIELD,0,nil)==0
end
function cm.sersttg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
if chk==0 then return Duel.IsExistingMatchingCard(cm.serstfilter,tp,LOCATION_DECK,0,1,nil) end
end
function cm.serstop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(90700010,1))
local lv=e:GetHandler():GetFlagEffectLabel(m+100)
local g2=Duel.SelectMatchingCard(tp,cm.spcostfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,lv,lv,nil)
Duel.Overlay(e:GetHandler(),g2)
local g=Duel.SelectMatchingCard(tp,cm.serstfilter,tp,LOCATION_DECK,0,1,2,nil)
local tc=g:GetFirst()
while tc do
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
tc=g:GetNext()
end
end
function cm.sermfilter1(c)
return c:IsPosition(POS_FACEUP) and c:IsSetCard(0x8d) and c:IsAbleToGraveAsCost()
......
local m=90700011
local cm=_G["c"..m]
cm.name="鬼计妖魔·德拉古拉"
function cm.initial_effect(c)
c:EnableReviveLimit()
aux.AddLinkProcedure(c,cm.linkfilter,1)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(90700011,0))
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetRange(LOCATION_EXTRA)
e1:SetCondition(cm.spcon)
e1:SetOperation(cm.spop)
e1:SetValue(SUMMON_TYPE_LINK)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOHAND)
e2:SetDescription(aux.Stringid(90700011,1))
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_TO_GRAVE)
e2:SetTarget(cm.rectg)
e2:SetOperation(cm.recop)
c:RegisterEffect(e2)
if c90700011.counter==nil then
c90700011.counter=true
c90700011[0]=0
c90700011[1]=0
c90700011[2]=0
c90700011[3]=0
local ec1=Effect.CreateEffect(c)
ec1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
ec1:SetCode(EVENT_PHASE_START+PHASE_DRAW)
ec1:SetOperation(cm.resetcount)
Duel.RegisterEffect(ec1,0)
local ec2=Effect.CreateEffect(c)
ec2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
ec2:SetCode(EVENT_FLIP)
ec2:SetOperation(cm.addcount1)
Duel.RegisterEffect(ec2,0)
local ec3=Effect.CreateEffect(c)
ec3:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
ec3:SetCode(EVENT_CHAINING)
ec3:SetOperation(cm.addcount2)
Duel.RegisterEffect(ec3,0)
end
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetDescription(aux.Stringid(90700011,2))
e3:SetCondition(cm.con)
e3:SetTarget(cm.tg)
e3:SetLabel(1)
e3:SetOperation(cm.op)
e3:SetRange(LOCATION_MZONE)
c:RegisterEffect(e3)
local e4=e3:Clone()
e3:SetDescription(aux.Stringid(90700011,3))
e3:SetLabel(2)
c:RegisterEffect(e4)
local e5=e3:Clone()
e3:SetDescription(aux.Stringid(90700011,4))
e3:SetLabel(3)
c:RegisterEffect(e5)
local e6=Effect.CreateEffect(c)
e6:SetType(EFFECT_TYPE_FIELD)
e6:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e6:SetCode(EFFECT_CANNOT_ACTIVATE)
e6:SetRange(LOCATION_MZONE)
e6:SetTargetRange(1,1)
e6:SetValue(cm.actlimit)
c:RegisterEffect(e6)
end
function cm.resetcount(e,tp,eg,ep,ev,re,r,rp)
c90700011[0]=0
c90700011[1]=0
c90700011[2]=0
c90700011[3]=0
end
function cm.addcount1(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst()
while tc do
if tc:IsSetCard(0x8d) then
local p=tc:GetControler()
c90700011[p]=c90700011[p]+1
end
tc=eg:GetNext()
end
end
function cm.addcount2(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst()
while tc do
if tc:IsType(TYPE_SPELL+TYPE_TRAP) and tc:IsPreviousPosition(POS_FACEDOWN) then
local p=tc:GetControler()
c90700011[p]=c90700011[p]+1
end
tc=eg:GetNext()
end
end
function cm.linkfilter(c)
return c:IsAttribute(ATTRIBUTE_DARK) and not c:IsType(TYPE_FLIP) and not c:IsType(TYPE_LINK)
end
function cm.spfilter(c,tp)
return c:IsReleasable() and c:IsAttribute(ATTRIBUTE_DARK) and c:IsPosition(POS_FACEDOWN_DEFENSE) and Duel.GetLocationCountFromEx(tp,tp,c)>0
end
function cm.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_MZONE,0,1,nil,tp)
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_MZONE,0,1,1,nil,tp)
if g then
Duel.Release(g,REASON_COST)
end
end
function cm.recfilter(c)
return c:IsSetCard(0x8d) and c:IsAbleToHand()
end
function cm.rectg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.recfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(cm.recfilter,tp,LOCATION_GRAVE,0,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectTarget(tp,cm.recfilter,tp,LOCATION_GRAVE,0,1,1,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end
function cm.recop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
end
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
local p=e:GetHandlerPlayer()
return c90700011[p+2]<c90700011[p]
end
function cm.rectg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
if e:GetLabel()==1 then return Duel.IsExistingTarget(cm.recfilter,tp,LOCATION_GRAVE,0,1,e:GetHandler()) end
if e:GetLabel()==2 then return Duel.IsExistingTarget(cm.recfilter,tp,LOCATION_GRAVE,0,1,e:GetHandler()) end
if e:GetLabel()==3 then return Duel.IsExistingTarget(cm.recfilter,tp,LOCATION_GRAVE,0,1,e:GetHandler()) end
end
if e:GetLabel()==1 then
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end
if e:GetLabel()==2 then
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end
if e:GetLabel()==3 then
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
if e:GetLabel()==1 then
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end
if e:GetLabel()==2 then
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end
if e:GetLabel()==3 then
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end
local p=e:GetHandlerPlayer()
c90700011[p+2]=c90700011[p+2]+1
end
function cm.actfilter(c)
return c:IsSetCard(0x8d) and c:GetSequence()<5
end
function cm.actlimit(e,re,tp)
return Duel.IsExistingMatchingCard(cm.actfilter,tp,LOCATION_MZONE,0,1,nil) and not re:GetHandler():IsSetCard(0x8d) and e:GetHandler():GetSequence()>=5
end
\ No newline at end of file
local m=90700013
local cm=_G["c"..m]
cm.name="钟楼使徒 乌洛恩"
if not pcall(function() require("expansions/script/c90700019") end) then require("expansions/script/c90700019") end
function cm.initial_effect(c)
Seine_clock_tower.enable(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetRange(LOCATION_HAND)
e1:SetTargetRange(1,0)
e1:SetCondition(cm.actcon)
e1:SetValue(cm.actlimit)
c:RegisterEffect(e1)
end
function cm.actcon(e)
return e:GetHandler():IsPublic()
end
function cm.actlimit(e,re,tp)
return re:IsActiveType(TYPE_SPELL) or re:IsActiveType(TYPE_TRAP)
end
\ No newline at end of file
local m=90700014
local cm=_G["c"..m]
cm.name="钟楼使徒 纳姆卡里"
if not pcall(function() require("expansions/script/c90700019") end) then require("expansions/script/c90700019") end
function cm.initial_effect(c)
Seine_clock_tower.enable(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetRange(LOCATION_HAND)
e1:SetTargetRange(1,0)
e1:SetCondition(cm.actcon)
e1:SetValue(cm.actlimit)
c:RegisterEffect(e1)
end
function cm.actcon(e)
return e:GetHandler():IsPublic()
end
function cm.actlimit(e,re,tp)
return re:IsActiveType(TYPE_MONSTER)
end
\ No newline at end of file
local m=90700015
local cm=_G["c"..m]
cm.name="钟楼使徒 伊东"
if not pcall(function() require("expansions/script/c90700019") end) then require("expansions/script/c90700019") end
function cm.initial_effect(c)
Seine_clock_tower.enable(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_SUMMON)
e1:SetRange(LOCATION_HAND)
e1:SetTargetRange(1,0)
e1:SetCondition(cm.actcon)
e1:SetValue(1)
c:RegisterEffect(e1)
local e2=Effect.Clone(e1)
e2:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
c:RegisterEffect(e2)
local e3=Effect.Clone(e1)
e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(e3)
end
function cm.actcon(e)
return e:GetHandler():IsPublic()
end
\ No newline at end of file
local m=90700016
local cm=_G["c"..m]
cm.name="钟楼使徒 雷诺亚"
if not pcall(function() require("expansions/script/c90700019") end) then require("expansions/script/c90700019") end
function cm.initial_effect(c)
Seine_clock_tower.enable(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetRange(LOCATION_HAND)
e1:SetCode(EFFECT_CANNOT_TO_HAND)
e1:SetTarget(aux.TargetBoolFunction(Card.IsLocation,LOCATION_DECK))
e1:SetTargetRange(1,0)
e1:SetCondition(cm.actcon)
c:RegisterEffect(e1)
end
function cm.actcon(e)
return e:GetHandler():IsPublic()
end
\ No newline at end of file
local m=90700017
local cm=_G["c"..m]
cm.name="钟楼使徒 泣"
if not pcall(function() require("expansions/script/c90700019") end) then require("expansions/script/c90700019") end
function cm.initial_effect(c)
Seine_clock_tower.enable(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetRange(LOCATION_HAND)
e1:SetCode(EFFECT_SKIP_BP)
e1:SetTargetRange(1,0)
e1:SetCondition(cm.actcon)
c:RegisterEffect(e1)
end
function cm.actcon(e)
return e:GetHandler():IsPublic()
end
\ No newline at end of file
local m=90700018
local cm=_G["c"..m]
cm.name="钟楼使徒 玛夏"
if not pcall(function() require("expansions/script/c90700019") end) then require("expansions/script/c90700019") end
function cm.initial_effect(c)
Seine_clock_tower.enable(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_RANGE+EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetRange(LOCATION_HAND)
e1:SetCode(EFFECT_TO_GRAVE_REDIRECT)
e1:SetTargetRange(0xff,0xfe)
e1:SetValue(LOCATION_REMOVED)
e1:SetCondition(cm.actcon)
e1:SetTarget(cm.rmtg)
c:RegisterEffect(e1)
end
function cm.actcon(e)
return e:GetHandler():IsPublic()
end
function cm.rmtg(e,c)
return c:GetOwner()==e:GetHandlerPlayer()
end
\ No newline at end of file
This diff is collapsed.
local m=90700020
local cm=_G["c"..m]
cm.name="钟楼使徒 海斗"
function cm.initial_effect(c)
aux.AddCodeList(c,90700019)
aux.EnablePendulumAttribute(c,false)
c:EnableReviveLimit()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_EXTRA)
e1:SetTarget(cm.acttg)
e1:SetOperation(cm.actop)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetRange(LOCATION_PZONE)
e2:SetCode(EFFECT_CHANGE_LSCALE)
e2:SetValue(5)
c:RegisterEffect(e2)
local e3=Effect.Clone(e2)
e3:SetCode(EFFECT_CHANGE_RSCALE)
e3:SetValue(7)
c:RegisterEffect(e3)
end
function cm.acttg(e,tp,eg,ep,ev,re,r,rp,chk)
local con1=Duel.CheckLocation(tp,LOCATION_PZONE,0) or Duel.CheckLocation(tp,LOCATION_PZONE,1)
local con2=e:GetHandler():IsForbidden()
local con3=Duel.GetTurnPlayer()==tp
local con4=Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
local con5=Duel.GetFieldGroup(tp,LOCATION_HAND,0):Filter(Card.IsPublic,nil):FilterCount(aux.IsCodeListed,nil,90700019)>0
return con1 and not con2 and con3 and con4 and con5
end
function cm.actop(e,tp,eg,ep,ev,re,r,rp)
Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end
\ No newline at end of file
local m=90700021
local cm=_G["c"..m]
cm.name="魔轰神兽 卡尔卡丹"
cm.name="未界域的魔轰神兽 尤尼科"
function cm.initial_effect(c)
c:EnableReviveLimit()
local e0=Effect.CreateEffect(c)
......@@ -21,14 +21,13 @@ function cm.initial_effect(c)
e1:SetLabelObject(e0)
c:RegisterEffect(e1)
--aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x35),aux.NonTuner(nil),1)
c:EnableReviveLimit()
local egain=Effect.CreateEffect(c)
egain:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
egain:SetCode(EVENT_ADJUST)
egain:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE)
egain:SetRange(LOCATION_EXTRA)
egain:SetOperation(cm.egainop)
egain:SetCountLimit(1,EFFECT_COUNT_CODE_DUEL)
egain:SetCountLimit(1,m+EFFECT_COUNT_CODE_DUEL)
c:RegisterEffect(egain)
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_FIELD)
......
local m=90700022
local cm=_G["c"..m]
cm.name="多元霜火要塞"
function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(90700022,4))
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE)
e2:SetRange(LOCATION_HAND)
--e2:SetCondition(cm.actcon)
e2:SetOperation(cm.actop)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetRange(LOCATION_DECK)
e3:SetTarget(cm.acttg)
c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e4:SetCode(EVENT_MOVE)
e4:SetProperty(EFFECT_FLAG_DELAY)
e4:SetRange(LOCATION_FZONE)
e4:SetOperation(cm.addcop)
c:RegisterEffect(e4)
end
function cm.actcon(e,tp,eg,ep,ev,re,r,rp,chk)
return not e:GetHandler():IsForbidden() and Duel.GetTurnPlayer()==tp and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2)
end
function cm.dtoffilter(c)
return c:IsAbleToDeckAsCost()
end
function cm.acttg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.dtoffilter,tp,LOCATION_HAND,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,cm.dtoffilter,tp,LOCATION_HAND,0,1,1,nil)
Duel.SendtoDeck(g,tp,-1,REASON_COST)
end
function cm.actop(e,tp,eg,ep,ev,re,r,rp)
local field=Duel.GetFieldGroup(tp,LOCATION_FZONE,0):GetFirst()
if field then
Duel.SendtoGrave(field,REASON_RULE)
end
local tc=e:GetHandler()
Duel.MoveToField(tc,tp,tp,LOCATION_FZONE,POS_FACEUP,true)
end
function cm.atktgfilter(e,c)
return c:IsSetCard(0x5ac0)
end
function cm.cfilter(c)
return c:IsPosition(POS_FACEUP)
end
function cm.serfilter(c)
return c:IsSetCard(0x5ac0) and c:IsAbleToHand()
end
function cm.addcop(e,tp,eg,ep,ev,re,r,rp)
local c=eg:GetFirst()
while c do
if not c:IsLocation(LOCATION_FZONE) and c:IsLocation(LOCATION_ONFIELD) and c:IsPosition(POS_FACEUP) and c:IsSetCard(0x5ac0) then
e:GetHandler():AddCounter(0x5ac0,1)
c:AddCounter(0x5ac0,3)
e:GetHandler():AddCounter(0x5ac0,3)
local Counters=Duel.GetCounter(tp,1,0,0x5ac0)
local adcon=Counters>0
local countercon=Counters>2 and Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
local sercon=Counters>5 and Duel.IsExistingMatchingCard(cm.serfilter,tp,LOCATION_DECK,0,1,nil)
if (adcon or countercon or sercon) and Duel.SelectYesNo(tp,aux.Stringid(90700022,5)) then
local ope=-1
if adcon then
if countercon then
if sercon then
ope=Duel.SelectOption(tp,aux.Stringid(90700022,0),aux.Stringid(90700022,1),aux.Stringid(90700022,2))
else
ope=Duel.SelectOption(tp,aux.Stringid(90700022,0),aux.Stringid(90700022,1))
end
else
if sercon then
ope=Duel.SelectOption(tp,aux.Stringid(90700022,0),aux.Stringid(90700022,2))
if ope==1 then
ope=2
end
else
ope=0
end
end
else
if countercon then
if sercon then
ope=Duel.SelectOption(tp,aux.Stringid(90700022,1),aux.Stringid(90700022,2))
ope=ope+1
else
ope=2
end
else
ope=2
end
end
if ope==0 then
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(90700022,3))
local opt={}
for i=1,Counters do
opt[i]=i
end
opt[Counters+1]=nil
local adnum=Duel.AnnounceNumber(tp,table.unpack(opt))
Duel.RemoveCounter(tp,1,0,0x5ac0,adnum,REASON_EFFECT)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(cm.atktgfilter)
e1:SetValue(100*adnum)
e1:SetReset(RESET_PHASE+PHASE_END,2)
Duel.RegisterEffect(e1,tp)
local e2=e1:Clone()
e2:SetCode(EFFECT_UPDATE_DEFENSE)
Duel.RegisterEffect(e2,tp)
end
if ope==1 then
Duel.RemoveCounter(tp,1,0,0x5ac0,3,REASON_EFFECT)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELF)
local g=Duel.SelectMatchingCard(tp,cm.cfilter,tp,LOCATION_ONFIELD,0,1,1,nil)
if g then
local tc=g:GetFirst()
tc:AddCounter(0x5ac0,1)
end
end
if ope==2 then
Duel.RemoveCounter(tp,1,0,0x5ac0,6,REASON_EFFECT)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.serfilter,tp,LOCATION_DECK,0,1,1,nil)
if g then
Duel.SendtoHand(g,tp,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
end
end
c=eg:GetNext()
end
end
\ No newline at end of file
local m=90700023
local cm=_G["c"..m]
cm.name="多元霜火公爵"
function cm.initial_effect(c)
c:EnableReviveLimit()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetRange(LOCATION_HAND)
e1:SetTarget(cm.acttg)
e1:SetOperation(cm.actop)
c:RegisterEffect(e1)
c90700023.act=e1
local e2=e1:Clone()
e2:SetCondition(cm.actcon)
e2:SetRange(LOCATION_DECK)
c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE)
e3:SetCode(EFFECT_SPSUMMON_PROC)
e3:SetRange(LOCATION_SZONE)
e3:SetValue(SUMMON_TYPE_RITUAL)
e3:SetCondition(cm.spcon)
e3:SetOperation(cm.spop)
c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
e4:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e4:SetCategory(CATEGORY_SPECIAL_SUMMON)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_SPSUMMON_SUCCESS)
e4:SetProperty(EFFECT_FLAG_DELAY)
e4:SetTarget(cm.sertg)
e4:SetOperation(cm.serop)
c:RegisterEffect(e4)
end
function cm.acttg(e,tp,eg,ep,ev,re,r,rp,chk)
return Duel.GetLocationCount(tp,LOCATION_SZONE,tp,LOCATION_REASON_TOFIELD)>0-- and not e:GetHandler():IsForbidden() and Duel.GetTurnPlayer()==tp and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2)
end
function cm.actcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)==0
end
function cm.actfilter(c)
return c:IsSetCard(0x5ac0) and c:IsAbleToHand() and not c:IsCode(90700002)
end
function cm.actop(e,tp,eg,ep,ev,re,r,rp)
local tc
if e:GetLabel()==1 then
tc=eg:GetFirst()
else
tc=e:GetHandler()
end
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
local e1=Effect.CreateEffect(tc)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetCode(EFFECT_ADD_TYPE)
e1:SetRange(LOCATION_SZONE)
e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TEMP_REMOVE-RESET_TURN_SET)
tc:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_REMOVE_TYPE)
e2:SetValue(TYPE_MONSTER+TYPE_EFFECT)
tc:RegisterEffect(e2)
tc:AddCounter(0x5ac0,4)
Duel.BreakEffect()
local ffcount=Duel.GetCounter(tp,LOCATION_SZONE,0,0x5ac0)
local field=Duel.GetFieldGroup(tp,LOCATION_FZONE,0):GetFirst()
if field then
ffcount=ffcount-field:GetCounter(0x5ac0)
end
if ffcount>=7 and Duel.IsExistingMatchingCard(cm.actfilter,tp,LOCATION_DECK,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(90700023,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.actfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,tp,REASON_EFFECT)
Duel.RegisterFlagEffect(tp,90700023,RESET_PHASE+PHASE_END,0,1)
end
end
end
function cm.spcon(e,c)
if c==nil then return true end
return Duel.IsCanRemoveCounter(e:GetHandlerPlayer(),1,0,0x5ac0,9,REASON_COST) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.RemoveCounter(tp,1,0,0x5ac0,9,REASON_COST)
end
function cm.serfilter(c)
return c:IsCode(90700009) and c:IsAbleToHand() and (c:IsPosition(POS_FACEUP) or not c:IsLocation(LOCATION_REMOVED))
end
function cm.sertg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.serfilter,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND+CATEGORY_SEARCH,nil,1,tp,0)
end
function cm.serop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.serfilter,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil)
if g then
Duel.SendtoHand(g,tp,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
\ No newline at end of file
local m=90700024
local cm=_G["c"..m]
cm.name="多元霜火导师"
function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(cm.actcon)
e1:SetOperation(cm.actop)
c:RegisterEffect(e1)
c90700024.act=e1
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_MOVE)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetRange(LOCATION_SZONE+LOCATION_MZONE)
e2:SetOperation(cm.spop)
c:RegisterEffect(e2)
end
function cm.actcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLocationCount(tp,LOCATION_SZONE,tp,LOCATION_REASON_TOFIELD)>0-- and not e:GetHandler():IsForbidden() and Duel.GetTurnPlayer()==tp and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2)
end
function cm.actfilter(c)
return c:IsCode(90700004) and not c:IsForbidden()
end
function cm.actop(e,tp,eg,ep,ev,re,r,rp)
local tc
if e:GetLabel()==1 then
tc=eg:GetFirst()
else
tc=e:GetHandler()
end
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
local e1=Effect.CreateEffect(tc)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetCode(EFFECT_ADD_TYPE)
e1:SetRange(LOCATION_SZONE)
e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TEMP_REMOVE-RESET_TURN_SET)
tc:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_REMOVE_TYPE)
e2:SetValue(TYPE_MONSTER+TYPE_EFFECT)
tc:RegisterEffect(e2)
tc:AddCounter(0x5ac0,2)
Duel.BreakEffect()
if Duel.GetLocationCount(tp,LOCATION_SZONE,tp,LOCATION_REASON_TOFIELD)>0 and Duel.IsExistingMatchingCard(cm.actfilter,tp,LOCATION_DECK,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(90700024,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local g=Duel.SelectMatchingCard(tp,cm.actfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
local mc=g:GetFirst()
Duel.MoveToField(mc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
local e1=Effect.CreateEffect(tc)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetCode(EFFECT_ADD_TYPE)
e1:SetRange(LOCATION_SZONE)
e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TEMP_REMOVE-RESET_TURN_SET)
mc:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_REMOVE_TYPE)
e2:SetValue(TYPE_MONSTER+TYPE_EFFECT)
mc:RegisterEffect(e2)
mc:AddCounter(0x5ac0,3)
end
end
end
function cm.spfilter(c,e,tp)
return c:IsCode(90700004) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP)
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if eg:IsContains(e:GetHandler()) then return end
local con=false
local tc=eg:GetFirst()
while tc do
if tc:IsLocation(LOCATION_SZONE) and not tc:IsLocation(LOCATION_FZONE) and tc:IsPosition(POS_FACEUP) and tc:IsSetCard(0x5ac0) then
con=true
end
tc=eg:GetNext()
end
if con and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.SelectYesNo(tp,aux.Stringid(90700024,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
end
\ No newline at end of file
local m=90700025
local cm=_G["c"..m]
cm.name="多元霜火奴兽"
function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(cm.actcon)
e1:SetOperation(cm.actop)
e1:SetLabelObject(e0)
c:RegisterEffect(e1)
c90700025.act=e1
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(90700025,0))
e2:SetCategory(CATEGORY_SUMMON)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e2:SetRange(LOCATION_HAND)
e2:SetCode(EVENT_TO_HAND)
e2:SetCondition(cm.scon)
e2:SetTarget(cm.stg)
e2:SetOperation(cm.sop)
c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetCondition(cm.scon)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_PIERCE)
e3:SetLabel(1)
e3:SetCondition(cm.countcon)
c:RegisterEffect(e3)
local e4=e3:Clone()
e4:SetCode(EFFECT_DIRECT_ATTACK)
e4:SetLabel(2)
c:RegisterEffect(e4)
local e5=e3:Clone()
e5:SetCode(EFFECT_CHANGE_BATTLE_DAMAGE)
e5:SetValue(DOUBLE_DAMAGE)
e5:SetLabel(3)
c:RegisterEffect(e5)
end
function cm.countcon(e,tp,eg,ep,ev,re,r,rp)
local l=e:GetLabel()
return Duel.GetMatchingGroupCount(Card.IsCode,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,nil,90700004)>=l
end
function cm.actcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLocationCount(tp,LOCATION_SZONE,tp,LOCATION_REASON_TOFIELD)>0-- and not e:GetHandler():IsForbidden() and Duel.GetTurnPlayer()==tp and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2)
end
function cm.actop(e,tp,eg,ep,ev,re,r,rp)
local tc
if e:GetLabel()==1 then
tc=eg:GetFirst()
else
tc=e:GetHandler()
end
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
local e1=Effect.CreateEffect(tc)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetCode(EFFECT_ADD_TYPE)
e1:SetRange(LOCATION_SZONE)
e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TEMP_REMOVE-RESET_TURN_SET)
tc:RegisterEffect(e1)
tc:AddCounter(0x5ac0,3)
local e2=e1:Clone()
e2:SetCode(EFFECT_REMOVE_TYPE)
e2:SetValue(TYPE_MONSTER+TYPE_EFFECT)
tc:RegisterEffect(e2)
end
function cm.scon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousLocation(LOCATION_ONFIELD)
end
function cm.stg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsSummonable(true,e,0) end
Duel.SetOperationInfo(0,CATEGORY_SUMMON,e:GetHandler(),1,tp,LOCATION_HAND)
end
function cm.sop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not e:GetHandler():IsRelateToEffect(e) then return end
Duel.Summon(tp,e:GetHandler(),true,e,0)
end
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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