Commit 2049f6d0 authored by REIKAI's avatar REIKAI 💬

Merge branch '2023.01.08' into 'master'

2023.01.08

See merge request !4
parents 7e1d1098 d525b981
Pipeline #19255 passed with stages
in 27 minutes and 41 seconds
No preview for this file type
...@@ -1513,6 +1513,8 @@ ...@@ -1513,6 +1513,8 @@
60152803 0 --素晴的飞檐走壁的盗贼 60152803 0 --素晴的飞檐走壁的盗贼
60152811 1 --素晴的惠惠好友 60152811 1 --素晴的惠惠好友
60153101 0 --甜食派对 百江渚 60153101 0 --甜食派对 百江渚
60153104 0 --淘气精灵 百江渚
60153105 0 --梦游亡灵 百江渚
60159907 0 --极夜的龙骑士 60159907 0 --极夜的龙骑士
60159912 1 --连锁束缚 60159912 1 --连锁束缚
60159914 0 --地狱使者比尔姬 60159914 0 --地狱使者比尔姬
...@@ -1621,6 +1623,8 @@ ...@@ -1621,6 +1623,8 @@
65011004 0 --时终夜的坠落者 65011004 0 --时终夜的坠落者
#665 #665
66510022 1 --铁血工造 侦察者 66510022 1 --铁血工造 侦察者
#666
66660010 0 --幻星集 命运之轮
#669 #669
66911000 0 --寒灵刻使 雾水 66911000 0 --寒灵刻使 雾水
66912000 1 --Unicorn Gundam 66912000 1 --Unicorn Gundam
...@@ -1641,6 +1645,7 @@ ...@@ -1641,6 +1645,7 @@
67200610 1 --征冥天的灰羽姬 67200610 1 --征冥天的灰羽姬
67210102 0 --夏乡追忆 伊甸逐梦 67210102 0 --夏乡追忆 伊甸逐梦
67210104 0 --夏乡追忆 初遇花田 67210104 0 --夏乡追忆 初遇花田
67220003 0 --忘却之剑
#696 #696
69601003 0 --算命蟾蜍 69601003 0 --算命蟾蜍
69696005 0 --钟馗大神 69696005 0 --钟馗大神
...@@ -1666,6 +1671,7 @@ ...@@ -1666,6 +1671,7 @@
71401001 0 --蝶现-「启」 71401001 0 --蝶现-「启」
71401008 0 --蝶幻-「胧」 71401008 0 --蝶幻-「胧」
71401009 0 --蝶蚀-「巡」 71401009 0 --蝶蚀-「巡」
71402004 0 --风来之国的旅者 约翰与珊
#724 #724
72404123 1 --大庭院的慈萼 邦巴妮亚 72404123 1 --大庭院的慈萼 邦巴妮亚
72404127 1 --大庭院的蝶舞 佩露露 72404127 1 --大庭院的蝶舞 佩露露
...@@ -1797,6 +1803,10 @@ ...@@ -1797,6 +1803,10 @@
81902063 0 --TC.62 空想之上的人格保持者 古明地恋 81902063 0 --TC.62 空想之上的人格保持者 古明地恋
#854 #854
85402300 0 --栞 85402300 0 --栞
#888
88888244 0 --轮回崩坏 梅比乌斯
88888255 0 --妖相百斩 SP洪荒无极
88888277 0 --GOD•无冕之王
#889 #889
88946426 1 --折幸 智语 88946426 1 --折幸 智语
#923 #923
......
expansions/pics/20000050.jpg

39.4 KB | W: | H:

expansions/pics/20000050.jpg

76.2 KB | W: | H:

expansions/pics/20000050.jpg
expansions/pics/20000050.jpg
expansions/pics/20000050.jpg
expansions/pics/20000050.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/35700410.jpg

14.7 KB | W: | H:

expansions/pics/35700410.jpg

52.6 KB | W: | H:

expansions/pics/35700410.jpg
expansions/pics/35700410.jpg
expansions/pics/35700410.jpg
expansions/pics/35700410.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/35700411.jpg

14.5 KB | W: | H:

expansions/pics/35700411.jpg

52.4 KB | W: | H:

expansions/pics/35700411.jpg
expansions/pics/35700411.jpg
expansions/pics/35700411.jpg
expansions/pics/35700411.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/35700412.jpg

13.3 KB | W: | H:

expansions/pics/35700412.jpg

48.4 KB | W: | H:

expansions/pics/35700412.jpg
expansions/pics/35700412.jpg
expansions/pics/35700412.jpg
expansions/pics/35700412.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/35700413.jpg

13.7 KB | W: | H:

expansions/pics/35700413.jpg

49.4 KB | W: | H:

expansions/pics/35700413.jpg
expansions/pics/35700413.jpg
expansions/pics/35700413.jpg
expansions/pics/35700413.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/35700414.jpg

13.9 KB | W: | H:

expansions/pics/35700414.jpg

50.1 KB | W: | H:

expansions/pics/35700414.jpg
expansions/pics/35700414.jpg
expansions/pics/35700414.jpg
expansions/pics/35700414.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/35700415.jpg

14.1 KB | W: | H:

expansions/pics/35700415.jpg

50.2 KB | W: | H:

expansions/pics/35700415.jpg
expansions/pics/35700415.jpg
expansions/pics/35700415.jpg
expansions/pics/35700415.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/35700416.jpg

11.9 KB | W: | H:

expansions/pics/35700416.jpg

45.1 KB | W: | H:

expansions/pics/35700416.jpg
expansions/pics/35700416.jpg
expansions/pics/35700416.jpg
expansions/pics/35700416.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/35700417.jpg

13.9 KB | W: | H:

expansions/pics/35700417.jpg

52.7 KB | W: | H:

expansions/pics/35700417.jpg
expansions/pics/35700417.jpg
expansions/pics/35700417.jpg
expansions/pics/35700417.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/35700418.jpg

14 KB | W: | H:

expansions/pics/35700418.jpg

50.6 KB | W: | H:

expansions/pics/35700418.jpg
expansions/pics/35700418.jpg
expansions/pics/35700418.jpg
expansions/pics/35700418.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/35700419.jpg

13.6 KB | W: | H:

expansions/pics/35700419.jpg

50.2 KB | W: | H:

expansions/pics/35700419.jpg
expansions/pics/35700419.jpg
expansions/pics/35700419.jpg
expansions/pics/35700419.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/35700420.jpg

12 KB | W: | H:

expansions/pics/35700420.jpg

44.5 KB | W: | H:

expansions/pics/35700420.jpg
expansions/pics/35700420.jpg
expansions/pics/35700420.jpg
expansions/pics/35700420.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/50218149.jpg

15.4 KB | W: | H:

expansions/pics/50218149.jpg

79 KB | W: | H:

expansions/pics/50218149.jpg
expansions/pics/50218149.jpg
expansions/pics/50218149.jpg
expansions/pics/50218149.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/50218150.jpg

17.6 KB | W: | H:

expansions/pics/50218150.jpg

75 KB | W: | H:

expansions/pics/50218150.jpg
expansions/pics/50218150.jpg
expansions/pics/50218150.jpg
expansions/pics/50218150.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/50221200.jpg

91.3 KB | W: | H:

expansions/pics/50221200.jpg

91.3 KB | W: | H:

expansions/pics/50221200.jpg
expansions/pics/50221200.jpg
expansions/pics/50221200.jpg
expansions/pics/50221200.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/50221220.jpg

60.1 KB | W: | H:

expansions/pics/50221220.jpg

60.2 KB | W: | H:

expansions/pics/50221220.jpg
expansions/pics/50221220.jpg
expansions/pics/50221220.jpg
expansions/pics/50221220.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/50221225.jpg

68.8 KB | W: | H:

expansions/pics/50221225.jpg

68.9 KB | W: | H:

expansions/pics/50221225.jpg
expansions/pics/50221225.jpg
expansions/pics/50221225.jpg
expansions/pics/50221225.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/67200403.jpg

48.3 KB | W: | H:

expansions/pics/67200403.jpg

51.5 KB | W: | H:

expansions/pics/67200403.jpg
expansions/pics/67200403.jpg
expansions/pics/67200403.jpg
expansions/pics/67200403.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/71400058.jpg

49.4 KB | W: | H:

expansions/pics/71400058.jpg

41.6 KB | W: | H:

expansions/pics/71400058.jpg
expansions/pics/71400058.jpg
expansions/pics/71400058.jpg
expansions/pics/71400058.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/9310000.jpg

49 KB | W: | H:

expansions/pics/9310000.jpg

41.5 KB | W: | H:

expansions/pics/9310000.jpg
expansions/pics/9310000.jpg
expansions/pics/9310000.jpg
expansions/pics/9310000.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/9310033.jpg

42.2 KB | W: | H:

expansions/pics/9310033.jpg

42.4 KB | W: | H:

expansions/pics/9310033.jpg
expansions/pics/9310033.jpg
expansions/pics/9310033.jpg
expansions/pics/9310033.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/96010105.jpg

114 KB | W: | H:

expansions/pics/96010105.jpg

34.9 KB | W: | H:

expansions/pics/96010105.jpg
expansions/pics/96010105.jpg
expansions/pics/96010105.jpg
expansions/pics/96010105.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/field/35700417.jpg

39.2 KB | W: | H:

expansions/pics/field/35700417.jpg

47.1 KB | W: | H:

expansions/pics/field/35700417.jpg
expansions/pics/field/35700417.jpg
expansions/pics/field/35700417.jpg
expansions/pics/field/35700417.jpg
  • 2-up
  • Swipe
  • Onion skin
--藏于心之Chein --幻梦帝无亘龙
function c20000050.initial_effect(c) local cm,m,o=GetID()
function cm.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_DRAW) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetRange(LOCATION_HAND) e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetCost(c20000050.co1) e1:SetValue(aux.FALSE)
e1:SetTarget(c20000050.tg1)
e1:SetOperation(c20000050.op1)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
if not c20000050.global_check then e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
c20000050.global_check=true e2:SetCode(EVENT_FREE_CHAIN)
c20000050[0]=9 e2:SetRange(LOCATION_HAND)
local ge1=Effect.CreateEffect(c) e2:SetCondition(cm.con2)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetOperation(cm.op2)
ge1:SetCode(EVENT_CHAINING) c:RegisterEffect(e2)
ge1:SetOperation(c20000050.checkop) local e3=Effect.CreateEffect(c)
Duel.RegisterEffect(ge1,0) e3:SetType(EFFECT_TYPE_SINGLE)
end e3:SetCode(EFFECT_IMMUNE_EFFECT)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE)
e3:SetValue(cm.val3)
c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e4:SetCode(EVENT_PHASE+PHASE_BATTLE_START)
e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1)
e4:SetCondition(cm.con4)
e4:SetOperation(cm.op4)
c:RegisterEffect(e4)
end end
function c20000050.checkop(e,tp,eg,ep,ev,re,r,rp) --e2
c20000050[0] = c20000050[0] + 1 function cm.con2(e,tp)
return (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) and e:GetHandler():IsSummonable(true,nil,1)
end end
function c20000050.co1(e,tp,eg,ep,ev,re,r,rp,chk) function cm.opf2(g,rc,minc,maxc)
return Duel.CheckTribute(rc,minc,maxc,g) and (g:GetCount()==minc or g:GetCount()==maxc)
end
function cm.op2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToDeckAsCost() and not c:IsPublic() end local g=Duel.GetTributeGroup(c)
Duel.SendtoDeck(c,tp,1,REASON_COST) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
g=g:SelectSubGroup(tp,cm.opf2,true,1,#g,c,c:GetTributeRequirement())
if not g then return end
g:KeepAlive()
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetLabelObject(g)
e1:SetOperation(function (ce,ctp,ceg,cep,cev,cre,cr,crp,cc)
cc:SetMaterial(g)
Duel.Release(g,REASON_SUMMON+REASON_MATERIAL)
e1:Reset()
end)
e1:SetValue(SUMMON_TYPE_ADVANCE)
c:RegisterEffect(e1)
Duel.Summon(tp,c,true,e1,0)
end end
function c20000050.tg1(e,tp,eg,ep,ev,re,r,rp,chk) --e3
if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end function cm.val3(e,te)
Duel.SetTargetPlayer(tp) return te:GetOwner():IsType(TYPE_MONSTER) and te:GetOwner():IsLevelBelow(5) and te:GetOwner():IsLevelAbove(1)
Duel.SetTargetParam(2)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2)
end end
function c20000050.optg1(c) --e4
return c:IsCode(20000050) function cm.con4(e)
return Duel.GetTurnPlayer()==e:GetHandlerPlayer()
end end
function c20000050.op1(e,tp,eg,ep,ev,re,r,rp) function cm.op4(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) local n=Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)
Duel.Draw(p,d,REASON_EFFECT) local e1=Effect.CreateEffect(e:GetHandler())
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)==0 then return end e1:SetType(EFFECT_TYPE_SINGLE)
local g=c20000050[0] e1:SetCode(EFFECT_EXTRA_ATTACK)
Duel.ConfirmDecktop(tp,g) e1:SetValue(n-1)
local g1=Duel.GetDecktopGroup(tp,g) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_BATTLE)
local ct=g1:FilterCount(Card.IsCode,c20000050.optg1,20000050) e:GetHandler():RegisterEffect(e1)
if ct~=0 then
Duel.SetLP(tp,0)
end
end end
\ No newline at end of file
...@@ -9,27 +9,44 @@ function cm.initial_effect(c) ...@@ -9,27 +9,44 @@ function cm.initial_effect(c)
--cannot special summon --cannot special summon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_DECK+LOCATION_HAND)
e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetCode(EFFECT_SPSUMMON_CONDITION)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--summon with s/t --summon with 3 tribute
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e4:SetCode(EFFECT_ADD_EXTRA_TRIBUTE) e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetTargetRange(LOCATION_HAND,0) e4:SetCode(EFFECT_LIMIT_SUMMON_PROC)
e4:SetTarget(cm.refilter) e4:SetCondition(cm.ttcon)
e4:SetValue(POS_FACEUP_ATTACK) e4:SetOperation(cm.ttop)
e4:SetValue(SUMMON_TYPE_ADVANCE)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--tribute limit local e5=e4:Clone()
e5:SetCode(EFFECT_LIMIT_SET_PROC)
c:RegisterEffect(e5)
--
mh.hunters(c,m)
mh.lives(c,m,2)
mh.battle(c,m,800)
--indes
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_TRIBUTE_LIMIT) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e2:SetValue(cm.tlimit) e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(mh.ctcon)
e2:SetValue(cm.efilter)
c:RegisterEffect(e2) c:RegisterEffect(e2)
mh.hunters(c,m) --cannot remove
mh.lives(c,m,3) local e6=Effect.CreateEffect(c)
mh.battle(c,m,800) e6:SetType(EFFECT_TYPE_SINGLE)
e6:SetCode(EFFECT_CANNOT_REMOVE)
e6:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e6:SetRange(LOCATION_MZONE)
e6:SetCondition(mh.ctcon)
e6:SetValue(cm.rmlimit)
--c:RegisterEffect(e6)
--atk --atk
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,1)) e3:SetDescription(aux.Stringid(m,1))
...@@ -41,33 +58,48 @@ function cm.initial_effect(c) ...@@ -41,33 +58,48 @@ function cm.initial_effect(c)
e3:SetOperation(cm.atkop) e3:SetOperation(cm.atkop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function cm.refilter(e,c) --summon
return c:IsSetCard(0x5b76) and c:IsType(TYPE_MONSTER) and c~=e:GetHandler() function cm.cfilter(c,ct)
return c:IsCode(35700410) and c:IsReleasable() and (ct>0 or c:IsLocation(LOCATION_MZONE))
end
function cm.ttcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
local ct=Duel.GetLocationCount(tp,LOCATION_MZONE)
return minc<=1 and Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,c,ct)
end end
function cm.tlimit(e,c) function cm.ttop(e,tp,eg,ep,ev,re,r,rp,c)
return not c:IsSetCard(0x5b76) local ct=Duel.GetLocationCount(tp,LOCATION_MZONE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectMatchingCard(tp,cm.cfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,c,ct)
c:SetMaterial(g)
Duel.Release(g,REASON_SUMMON+REASON_MATERIAL)
end
--indes
function cm.efilter(e,re)
return re:GetHandler():IsType(TYPE_SPELL)
end
--cannot remove
function cm.rmcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetCounter(0xb76)>0 and re and re:GetHandler():IsType(TYPE_MONSTER+TYPE_SPELL)
end
function cm.rmlimit(e,re)
return re:IsActiveType(TYPE_MONSTER+TYPE_SPELL)
end end
--atk --atk
function cm.atkcon(e,tp,eg,ep,ev,re,r,rp) function cm.atkcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
if not bc then return bc end e:SetLabelObject(bc)
if not bc:IsLocation(LOCATION_MZONE) then return c==Duel.GetAttacker() and aux.dsercon(e)
return (bc:IsPosition(POS_ATTACK) and bc:GetPreviousAttackOnField()>c:GetAttack()) and bc and c:IsStatus(STATUS_OPPO_BATTLE) and bc:IsOnField() and bc:IsRelateToBattle()
or (bc:IsPosition(POS_DEFENSE) and bc:GetPreviousDefenseOnField()>c:GetAttack())
end
return (bc:IsPosition(POS_ATTACK) and bc:GetAttack()>c:GetAttack())
or (bc:IsPosition(POS_DEFENSE) and bc:GetDefense()>c:GetAttack())
end end
function cm.atktg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() if chk==0 then return c:GetCounter(0xb76)>0 end
local bc=c:GetBattleTarget()
if chk==0 then return c:IsStatus(STATUS_OPPO_BATTLE) and bc~=nil and c:GetCounter(0xb76)>0 end
end end
function cm.atkop(e,tp,eg,ep,ev,re,r,rp) function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local bc=c:GetBattleTarget() local bc=e:GetLabelObject()
local bc=e:GetHandler():GetBattleTarget()
if bc:IsRelateToBattle() then if bc:IsRelateToBattle() then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -11,7 +11,6 @@ function cm.initial_effect(c) ...@@ -11,7 +11,6 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,m+m)
e2:SetCondition(cm.condition) e2:SetCondition(cm.condition)
e2:SetCost(cm.cost) e2:SetCost(cm.cost)
e2:SetTarget(cm.target) e2:SetTarget(cm.target)
...@@ -29,33 +28,35 @@ function cm.setfilter(c) ...@@ -29,33 +28,35 @@ function cm.setfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable() return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable()
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(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
or Duel.IsExistingMatchingCard(cm.setfilter,tp,0,LOCATION_GRAVE,1,nil) end
end end
function cm.operation(e,tp,eg,ep,ev,re,r,rp) function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
local b=Duel.IsExistingMatchingCard(cm.setfilter,tp,0,LOCATION_GRAVE,1,nil) local tc=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil):GetFirst()
local op=-1 if tc then
if a and b then op=Duel.SelectOption(tp,aux.Stringid(m,2),aux.Stringid(m,3)) local c=e:GetHandler()
elseif a then op=Duel.SelectOption(tp,aux.Stringid(m,2)) local e1=Effect.CreateEffect(c)
elseif b then op=Duel.SelectOption(tp,aux.Stringid(m,3))+1 e1:SetType(EFFECT_TYPE_SINGLE)
else return end e1:SetCode(EFFECT_CANNOT_TRIGGER)
if op==0 then e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD) tc:RegisterEffect(e1)
local tc=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil):GetFirst() if tc:IsType(TYPE_MONSTER) then
if tc then local e3=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(e:GetHandler()) e3:SetType(EFFECT_TYPE_SINGLE)
e1:SetType(EFFECT_TYPE_SINGLE) e3:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetCode(EFFECT_CANNOT_TRIGGER) e3:SetValue(-500)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1) tc:RegisterEffect(e3)
end local e2=e1:Clone()
end e2:SetCode(EFFECT_UPDATE_DEFENSE)
if op==1 then tc:RegisterEffect(e2)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) --cannot announce
local tc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.setfilter),tp,0,LOCATION_GRAVE,1,1,nil):GetFirst() local e8=Effect.CreateEffect(c)
if tc then e8:SetType(EFFECT_TYPE_SINGLE)
Duel.SSet(tp,tc) e8:SetRange(LOCATION_MZONE)
e8:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE)
e8:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e8)
end end
end end
end end
......
...@@ -25,21 +25,16 @@ function cm.setfilter(c) ...@@ -25,21 +25,16 @@ function cm.setfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable() return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable()
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(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 end
or Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 end
end end
function cm.operation(e,tp,eg,ep,ev,re,r,rp) function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
local b=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 if g:GetCount()>0 then
local op=-1 Duel.ConfirmCards(tp,g)
if a and b then op=Duel.SelectOption(tp,aux.Stringid(m,2),aux.Stringid(m,3)) Duel.ShuffleHand(1-tp)
elseif a then op=Duel.SelectOption(tp,aux.Stringid(m,2)) if Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(m,3)) then
elseif b then op=Duel.SelectOption(tp,aux.Stringid(m,3))+1 Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
else return end local tc=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_MZONE,1,1,nil):GetFirst()
if op==0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local tc=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_MZONE,1,1,nil):GetFirst()
if tc then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetCode(EFFECT_UPDATE_ATTACK)
...@@ -51,9 +46,4 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,9 +46,4 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end end
end end
if op==1 then
local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
Duel.ConfirmCards(tp,g)
Duel.ShuffleHand(1-tp)
end
end 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.
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.
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.
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