Commit 1f486c78 authored by POLYMER's avatar POLYMER

update 251027 std

parent 303c263a
......@@ -2805,6 +2805,17 @@
98373992 0
98373995 0
98373998 0
#「化龙」 - 格林
95101210 0
95101211 0
95101212 0
95101213 0
95101214 0
95101215 0
95101216 0
95101217 0
95101218 0
95101219 0
#Tears are now in Japari Park Again!
572850 1
4928565 0
......@@ -3520,13 +3531,6 @@
67200432 1
67200455 1
#230122
14000301 0
14000302 0
14000303 0
14000304 0
14000305 0
14000306 0
14000307 0
14050002 0
15000904 0
33200712 0
......@@ -4175,7 +4179,7 @@
#220417
14010111 0
22520010 0
3000070 2
3000070 0
#220410
33701317 0
40009259 0
......@@ -7120,6 +7124,8 @@
95101174 0
95101180 0
71688208 0
22024690 0
71688492 0
#limit
33403513 1
82204250 0
......@@ -7319,6 +7325,11 @@
69015963 0 --Cyber-Stein
62320425 0 --Agido the Ancient Sentry
25926710 0 --Kelbek the Ancient Vanguard
6728559 0 --Archnemeses Protos
80237445 0 --Artifact Mjollnir
19740112 0 --Barrier Statue of the Drought
47961808 0 --Barrier Statue of the Inferno
42009836 0 --Fossil Dyna Pachycephalo
41855169 0
55204071 0
##EXTRA DECK MONSTERS
......@@ -7362,6 +7373,7 @@
04280258 0 --Apollousa, Bow of the Goddess
62242678 0 --Hot Red Dragon Archfiend King Calamity
27552504 0 --Beatrice, Lady of the Eternal
38273745 0 --Evilswarm Ouroboros
65330383 0
30342076 0
21044178 0
......@@ -7408,6 +7420,7 @@
43262273 0 --Appointer of the Red Lotus
1041278 0 --Branded Expulsion
23516703 0 --Summon Limit
83326048 0 --Dimensional Barrier
#Limited TCG
##MAIN DECK MONSTERS
7902349 1 --Left Arm of the forbidden one
......@@ -7442,7 +7455,6 @@
73539069 1 --Striker Dragon
93896655 1 --Sunavalon Dryas
65563871 1 --Sunvine Healer
6728559 1 --Archnemeses Protos
75433814 1 --Number 40: Gimmick Puppet of Strings
69170557 1 --Number C40: Gimmick Puppet of Dark Strings
46640168 1 --Fiendsmith's Lacrima
......@@ -7714,6 +7726,11 @@
69015963 1 --Cyber-Stein
62320425 1 --Agido the Ancient Sentry
25926710 1 --Kelbek the Ancient Vanguard
6728559 1 --Archnemeses Protos
80237445 1 --Artifact Mjollnir
19740112 1 --Barrier Statue of the Drought
47961808 1 --Barrier Statue of the Inferno
42009836 1 --Fossil Dyna Pachycephalo
41855169 1
55204071 1
71818935 1
......@@ -7761,6 +7778,7 @@
04280258 1 --Apollousa, Bow of the Goddess
62242678 1 --Hot Red Dragon Archfiend King Calamity
27552504 1 --Beatrice, Lady of the Eternal
38273745 1 --Evilswarm Ouroboros
65330383 1
30342076 1
21044178 1
......@@ -7803,6 +7821,7 @@
43262273 1 --Appointer of the Red Lotus
1041278 1 --Branded Expulsion
23516703 1 --Summon Limit
83326048 1 --Dimensional Barrier
98942051 0
53796106 0
14824018 0
......
No preview for this file type
expansions/pics/14000301.jpg

11.4 KB | W: | H:

expansions/pics/14000301.jpg

48.7 KB | W: | H:

expansions/pics/14000301.jpg
expansions/pics/14000301.jpg
expansions/pics/14000301.jpg
expansions/pics/14000301.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/14000302.jpg

10.9 KB | W: | H:

expansions/pics/14000302.jpg

49.2 KB | W: | H:

expansions/pics/14000302.jpg
expansions/pics/14000302.jpg
expansions/pics/14000302.jpg
expansions/pics/14000302.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/14000303.jpg

9.67 KB | W: | H:

expansions/pics/14000303.jpg

45.2 KB | W: | H:

expansions/pics/14000303.jpg
expansions/pics/14000303.jpg
expansions/pics/14000303.jpg
expansions/pics/14000303.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/14000304.jpg

11.9 KB | W: | H:

expansions/pics/14000304.jpg

51.2 KB | W: | H:

expansions/pics/14000304.jpg
expansions/pics/14000304.jpg
expansions/pics/14000304.jpg
expansions/pics/14000304.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/14000305.jpg

13.2 KB | W: | H:

expansions/pics/14000305.jpg

50.8 KB | W: | H:

expansions/pics/14000305.jpg
expansions/pics/14000305.jpg
expansions/pics/14000305.jpg
expansions/pics/14000305.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/14000306.jpg

11.8 KB | W: | H:

expansions/pics/14000306.jpg

52.7 KB | W: | H:

expansions/pics/14000306.jpg
expansions/pics/14000306.jpg
expansions/pics/14000306.jpg
expansions/pics/14000306.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/14000307.jpg

12.4 KB | W: | H:

expansions/pics/14000307.jpg

50.2 KB | W: | H:

expansions/pics/14000307.jpg
expansions/pics/14000307.jpg
expansions/pics/14000307.jpg
expansions/pics/14000307.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/66670310.jpg

55.3 KB | W: | H:

expansions/pics/66670310.jpg

56.6 KB | W: | H:

expansions/pics/66670310.jpg
expansions/pics/66670310.jpg
expansions/pics/66670310.jpg
expansions/pics/66670310.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/66690110.jpg

65.1 KB | W: | H:

expansions/pics/66690110.jpg

64.2 KB | W: | H:

expansions/pics/66690110.jpg
expansions/pics/66690110.jpg
expansions/pics/66690110.jpg
expansions/pics/66690110.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/66690130.jpg

62.7 KB | W: | H:

expansions/pics/66690130.jpg

61.6 KB | W: | H:

expansions/pics/66690130.jpg
expansions/pics/66690130.jpg
expansions/pics/66690130.jpg
expansions/pics/66690130.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/93050041.jpg

107 KB | W: | H:

expansions/pics/93050041.jpg

35.4 KB | W: | H:

expansions/pics/93050041.jpg
expansions/pics/93050041.jpg
expansions/pics/93050041.jpg
expansions/pics/93050041.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/93050043.jpg

76 KB | W: | H:

expansions/pics/93050043.jpg

35.7 KB | W: | H:

expansions/pics/93050043.jpg
expansions/pics/93050043.jpg
expansions/pics/93050043.jpg
expansions/pics/93050043.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/93050100.jpg

28.5 KB | W: | H:

expansions/pics/93050100.jpg

39.1 KB | W: | H:

expansions/pics/93050100.jpg
expansions/pics/93050100.jpg
expansions/pics/93050100.jpg
expansions/pics/93050100.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/93050101.jpg

25.9 KB | W: | H:

expansions/pics/93050101.jpg

37.8 KB | W: | H:

expansions/pics/93050101.jpg
expansions/pics/93050101.jpg
expansions/pics/93050101.jpg
expansions/pics/93050101.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/93050102.jpg

27.2 KB | W: | H:

expansions/pics/93050102.jpg

38 KB | W: | H:

expansions/pics/93050102.jpg
expansions/pics/93050102.jpg
expansions/pics/93050102.jpg
expansions/pics/93050102.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/93050103.jpg

26.6 KB | W: | H:

expansions/pics/93050103.jpg

36.3 KB | W: | H:

expansions/pics/93050103.jpg
expansions/pics/93050103.jpg
expansions/pics/93050103.jpg
expansions/pics/93050103.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/93050104.jpg

26.6 KB | W: | H:

expansions/pics/93050104.jpg

35.5 KB | W: | H:

expansions/pics/93050104.jpg
expansions/pics/93050104.jpg
expansions/pics/93050104.jpg
expansions/pics/93050104.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/93050105.jpg

32.2 KB | W: | H:

expansions/pics/93050105.jpg

37.6 KB | W: | H:

expansions/pics/93050105.jpg
expansions/pics/93050105.jpg
expansions/pics/93050105.jpg
expansions/pics/93050105.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/93050106.jpg

24.7 KB | W: | H:

expansions/pics/93050106.jpg

32.7 KB | W: | H:

expansions/pics/93050106.jpg
expansions/pics/93050106.jpg
expansions/pics/93050106.jpg
expansions/pics/93050106.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/93050107.jpg

26.6 KB | W: | H:

expansions/pics/93050107.jpg

35.6 KB | W: | H:

expansions/pics/93050107.jpg
expansions/pics/93050107.jpg
expansions/pics/93050107.jpg
expansions/pics/93050107.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/93050108.jpg

38.8 KB | W: | H:

expansions/pics/93050108.jpg

32.9 KB | W: | H:

expansions/pics/93050108.jpg
expansions/pics/93050108.jpg
expansions/pics/93050108.jpg
expansions/pics/93050108.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95015000.jpg

27 KB | W: | H:

expansions/pics/95015000.jpg

27.1 KB | W: | H:

expansions/pics/95015000.jpg
expansions/pics/95015000.jpg
expansions/pics/95015000.jpg
expansions/pics/95015000.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95015010.jpg

33.9 KB | W: | H:

expansions/pics/95015010.jpg

34 KB | W: | H:

expansions/pics/95015010.jpg
expansions/pics/95015010.jpg
expansions/pics/95015010.jpg
expansions/pics/95015010.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95015020.jpg

33.2 KB | W: | H:

expansions/pics/95015020.jpg

33.3 KB | W: | H:

expansions/pics/95015020.jpg
expansions/pics/95015020.jpg
expansions/pics/95015020.jpg
expansions/pics/95015020.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95015030.jpg

31.9 KB | W: | H:

expansions/pics/95015030.jpg

32 KB | W: | H:

expansions/pics/95015030.jpg
expansions/pics/95015030.jpg
expansions/pics/95015030.jpg
expansions/pics/95015030.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95015040.jpg

33.3 KB | W: | H:

expansions/pics/95015040.jpg

33.4 KB | W: | H:

expansions/pics/95015040.jpg
expansions/pics/95015040.jpg
expansions/pics/95015040.jpg
expansions/pics/95015040.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95015050.jpg

32.9 KB | W: | H:

expansions/pics/95015050.jpg

33 KB | W: | H:

expansions/pics/95015050.jpg
expansions/pics/95015050.jpg
expansions/pics/95015050.jpg
expansions/pics/95015050.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95015060.jpg

34.4 KB | W: | H:

expansions/pics/95015060.jpg

34.5 KB | W: | H:

expansions/pics/95015060.jpg
expansions/pics/95015060.jpg
expansions/pics/95015060.jpg
expansions/pics/95015060.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95015070.jpg

31.9 KB | W: | H:

expansions/pics/95015070.jpg

31.9 KB | W: | H:

expansions/pics/95015070.jpg
expansions/pics/95015070.jpg
expansions/pics/95015070.jpg
expansions/pics/95015070.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95015080.jpg

35 KB | W: | H:

expansions/pics/95015080.jpg

35 KB | W: | H:

expansions/pics/95015080.jpg
expansions/pics/95015080.jpg
expansions/pics/95015080.jpg
expansions/pics/95015080.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95015100.jpg

30.6 KB | W: | H:

expansions/pics/95015100.jpg

30.7 KB | W: | H:

expansions/pics/95015100.jpg
expansions/pics/95015100.jpg
expansions/pics/95015100.jpg
expansions/pics/95015100.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95015110.jpg

34.1 KB | W: | H:

expansions/pics/95015110.jpg

34.2 KB | W: | H:

expansions/pics/95015110.jpg
expansions/pics/95015110.jpg
expansions/pics/95015110.jpg
expansions/pics/95015110.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95015120.jpg

26.2 KB | W: | H:

expansions/pics/95015120.jpg

26.3 KB | W: | H:

expansions/pics/95015120.jpg
expansions/pics/95015120.jpg
expansions/pics/95015120.jpg
expansions/pics/95015120.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95015130.jpg

31.9 KB | W: | H:

expansions/pics/95015130.jpg

32.1 KB | W: | H:

expansions/pics/95015130.jpg
expansions/pics/95015130.jpg
expansions/pics/95015130.jpg
expansions/pics/95015130.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95015140.jpg

26.7 KB | W: | H:

expansions/pics/95015140.jpg

26.8 KB | W: | H:

expansions/pics/95015140.jpg
expansions/pics/95015140.jpg
expansions/pics/95015140.jpg
expansions/pics/95015140.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95015150.jpg

34.1 KB | W: | H:

expansions/pics/95015150.jpg

34.2 KB | W: | H:

expansions/pics/95015150.jpg
expansions/pics/95015150.jpg
expansions/pics/95015150.jpg
expansions/pics/95015150.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95015160.jpg

31.1 KB | W: | H:

expansions/pics/95015160.jpg

31.2 KB | W: | H:

expansions/pics/95015160.jpg
expansions/pics/95015160.jpg
expansions/pics/95015160.jpg
expansions/pics/95015160.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95015170.jpg

28.3 KB | W: | H:

expansions/pics/95015170.jpg

28.4 KB | W: | H:

expansions/pics/95015170.jpg
expansions/pics/95015170.jpg
expansions/pics/95015170.jpg
expansions/pics/95015170.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95016020.jpg

29.4 KB | W: | H:

expansions/pics/95016020.jpg

29.5 KB | W: | H:

expansions/pics/95016020.jpg
expansions/pics/95016020.jpg
expansions/pics/95016020.jpg
expansions/pics/95016020.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95016030.jpg

28 KB | W: | H:

expansions/pics/95016030.jpg

28.1 KB | W: | H:

expansions/pics/95016030.jpg
expansions/pics/95016030.jpg
expansions/pics/95016030.jpg
expansions/pics/95016030.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/95016110.jpg

27.8 KB | W: | H:

expansions/pics/95016110.jpg

27.9 KB | W: | H:

expansions/pics/95016110.jpg
expansions/pics/95016110.jpg
expansions/pics/95016110.jpg
expansions/pics/95016110.jpg
  • 2-up
  • Swipe
  • Onion skin
--星绘·启明
function c11185070.initial_effect(c)
aux.AddCodeList(c,0x452)
--pendulum summon
aux.EnablePendulumAttribute(c)
--spsummon
......@@ -38,7 +39,7 @@ function c11185070.initial_effect(c)
Duel.AddCustomActivityCounter(11185070,ACTIVITY_SPSUMMON,c11185070.counterfilter)
end
function c11185070.counterfilter(c)
return c:IsSetCard(0x452) or c:IsType(TYPE_TUNER)
return c:IsRace(RACE_FAIRY) or aux.IsCodeListed(c,0x452)
end
function c11185070.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......@@ -82,7 +83,7 @@ function c11185070.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e2,tp)
end
function c11185070.splimit(e,c)
return not (c:IsSetCard(0x452) or c:IsType(TYPE_TUNER))
return not (c:IsRace(RACE_FAIRY) or aux.IsCodeListed(c,0x452))
end
function c11185070.thfilter(c,e,tp,ck)
return c:IsSetCard(0x452) and c:IsType(TYPE_MONSTER) and (c:IsAbleToHand()
......
--星绘·汐澜
function c11185080.initial_effect(c)
aux.AddCodeList(c,0x452)
--pendulum summon
aux.EnablePendulumAttribute(c)
--Activate
......@@ -40,7 +41,7 @@ function c11185080.initial_effect(c)
Duel.AddCustomActivityCounter(11185080,ACTIVITY_SPSUMMON,c11185080.counterfilter)
end
function c11185080.counterfilter(c)
return c:IsSetCard(0x452) or c:IsType(TYPE_TUNER)
return c:IsRace(RACE_FAIRY) or aux.IsCodeListed(c,0x452)
end
function c11185080.filter(c)
return c:IsFaceup() and c:IsCanAddCounter(0x452,1) and c:IsSetCard(0x452)
......@@ -97,7 +98,7 @@ function c11185080.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e2,tp)
end
function c11185080.splimit(e,c)
return not (c:IsSetCard(0x452) or c:IsType(TYPE_TUNER))
return not (c:IsRace(RACE_FAIRY) or aux.IsCodeListed(c,0x452))
end
function c11185080.thfilter(c)
return c:IsSetCard(0x452) and c:IsType(TYPE_SPELL) and c:IsAbleToHand()
......
--星绘·赤尧
function c11185085.initial_effect(c)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
--pendulum summon
aux.EnablePendulumAttribute(c)
......
--星绘·风阊
function c11185090.initial_effect(c)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
--pendulum summon
aux.EnablePendulumAttribute(c)
......@@ -41,7 +42,7 @@ function c11185090.initial_effect(c)
Duel.AddCustomActivityCounter(11185090,ACTIVITY_SPSUMMON,c11185090.counterfilter)
end
function c11185090.counterfilter(c)
return c:IsSetCard(0x452) or c:IsType(TYPE_TUNER)
return c:IsRace(RACE_FAIRY) or aux.IsCodeListed(c,0x452)
end
function c11185090.tgcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsMainPhase()
......@@ -62,7 +63,7 @@ function c11185090.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e2,tp)
end
function c11185090.splimit(e,c)
return not (c:IsSetCard(0x452) or c:IsType(TYPE_TUNER))
return not (c:IsRace(RACE_FAIRY) or aux.IsCodeListed(c,0x452))
end
function c11185090.tgfilter(c)
return c:IsSetCard(0x452) and c:IsType(0x6) and (c:IsAbleToGrave() or c:IsAbleToRemove())
......
--星绘·鄢暨
function c11185095.initial_effect(c)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
--pendulum summon
aux.EnablePendulumAttribute(c)
......
--星绘·星谛
function c11185100.initial_effect(c)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
--pendulum summon
aux.EnablePendulumAttribute(c)
......@@ -41,7 +42,7 @@ function c11185100.initial_effect(c)
Duel.AddCustomActivityCounter(11185100,ACTIVITY_SPSUMMON,c11185100.counterfilter)
end
function c11185100.counterfilter(c)
return c:IsSetCard(0x452) or c:IsType(TYPE_TUNER)
return c:IsRace(RACE_FAIRY) or aux.IsCodeListed(c,0x452)
end
function c11185100.tgcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsMainPhase()
......@@ -62,7 +63,7 @@ function c11185100.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e2,tp)
end
function c11185100.splimit(e,c)
return not (c:IsSetCard(0x452) or c:IsType(TYPE_TUNER))
return not (c:IsRace(RACE_FAIRY) or aux.IsCodeListed(c,0x452))
end
function c11185100.tgfilter(c)
return c:IsSetCard(0x452) and c:IsType(0x1) and (c:IsAbleToGrave() or c:IsAbleToRemove())
......
--星绘·澪
function c11185105.initial_effect(c)
aux.AddCodeList(c,0x452)
aux.AddMaterialCodeList(c,11185070,11185080)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsCode,11185070),aux.FilterBoolFunction(Card.IsCode,11185080),1,1)
......
--星绘颂章
function c11185110.initial_effect(c)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
--Activate
local e0=Effect.CreateEffect(c)
......
--星绘·颂曲
function c11185115.initial_effect(c)
aux.AddCodeList(c,0x452)
--
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON)
......@@ -24,7 +25,7 @@ function c11185115.initial_effect(c)
Duel.AddCustomActivityCounter(11185115,ACTIVITY_SPSUMMON,c11185115.counterfilter)
end
function c11185115.counterfilter(c)
return c:IsSetCard(0x452) or c:IsType(TYPE_TUNER)
return c:IsRace(RACE_FAIRY) or aux.IsCodeListed(c,0x452)
end
function c11185115.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(11185115,tp,ACTIVITY_SUMMON)==0
......@@ -42,7 +43,7 @@ function c11185115.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e2,tp)
end
function c11185115.splimit(e,c)
return not (c:IsSetCard(0x452) or c:IsType(TYPE_TUNER))
return not (c:IsRace(RACE_FAIRY) or aux.IsCodeListed(c,0x452))
end
function c11185115.thfilter(c,e,tp)
if not (c:IsSetCard(0x452) and c:IsType(TYPE_MONSTER)) then return false end
......
--星绘·奏曲
function c11185120.initial_effect(c)
aux.AddCodeList(c,0x452)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,11185120)
e1:SetTarget(c11185120.target1)
e1:SetTarget(c11185120.target)
e1:SetOperation(c11185120.operation)
c:RegisterEffect(e1)
--
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE+LOCATION_REMOVED)
e2:SetCountLimit(1,11185120+1)
e2:SetCost(c11185120.cost)
e2:SetTarget(c11185120.target)
e2:SetOperation(c11185120.activate)
......@@ -22,7 +21,7 @@ end
function c11185120.filter(c)
return c:IsSetCard(0x452) and not c:IsCode(11185120) and c:IsAbleToHand()
end
function c11185120.target1(e,tp,eg,ep,ev,re,r,rp,chk)
function c11185120.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c11185120.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
......
--虹龍·朔
function c11185205.initial_effect(c)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
--spsummon
local e1=Effect.CreateEffect(c)
......@@ -68,7 +69,7 @@ function c11185205.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
end
function c11185205.splimit(e,c)
return not (c:IsRace(RACE_WYRM) or c:IsType(TYPE_TUNER))
return not (c:IsRace(RACE_WYRM) or aux.IsCodeListed(c,0x452))
end
function c11185205.tfcfilter(c)
return not c:IsPublic()
......
--虹龍·護
function c11185210.initial_effect(c)
c:EnableCounterPermit(0x452)
aux.AddCodeList(c,0x452)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SEARCH+CATEGORY_TOHAND+CATEGORY_COUNTER)
......@@ -68,7 +69,7 @@ function c11185210.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
end
function c11185210.splimit(e,c)
return not (c:IsRace(RACE_WYRM) or c:IsType(TYPE_TUNER))
return not (c:IsRace(RACE_WYRM) or aux.IsCodeListed(c,0x452))
end
function c11185210.rmfilter(c)
return c:IsSetCard(0x453) and c:IsType(0x6) and c:IsAbleToRemove()
......
--虹龍·擺
function c11185215.initial_effect(c)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
--spsummon
local e1=Effect.CreateEffect(c)
......@@ -67,7 +68,7 @@ function c11185215.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
end
function c11185215.splimit(e,c)
return not (c:IsRace(RACE_WYRM) or c:IsType(TYPE_TUNER))
return not (c:IsRace(RACE_WYRM) or aux.IsCodeListed(c,0x452))
end
function c11185215.spfilter(c,e,tp)
return c:IsSetCard(0x453) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsFaceupEx()
......
--虹龍·鋼
function c11185220.initial_effect(c)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
--spsummon
local e1=Effect.CreateEffect(c)
......@@ -68,7 +69,7 @@ function c11185220.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
end
function c11185220.splimit(e,c)
return not (c:IsRace(RACE_WYRM) or c:IsType(TYPE_TUNER))
return not (c:IsRace(RACE_WYRM) or aux.IsCodeListed(c,0x452))
end
function c11185220.thfilter(c)
return c:IsSetCard(0x453) and c:IsAbleToHand() and c:IsFaceupEx()
......@@ -77,7 +78,7 @@ function c11185220.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c11185220.thfilter,tp,0x20,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x20)
end
function c11185220.spop2(e,tp,eg,ep,ev,re,r,rp)
function c11185220.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c11185220.thfilter,tp,0x20,0,1,1,nil,e,tp)
if g:GetCount()>0 then
......
--虹龍·辉龙
function c11185225.initial_effect(c)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
--link summon
c:EnableReviveLimit()
......
--虹龍·源龙
function c11185230.initial_effect(c)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
c:SetUniqueOnField(1,0,50223345)
--link summon
......
--虹龍·海龙
function c11185235.initial_effect(c)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
--link summon
c:EnableReviveLimit()
......
--虹龍·星龙
function c11185240.initial_effect(c)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
c:SetUniqueOnField(1,0,50223345)
--link summon
......
--虹龍·双头龙
function c11185245.initial_effect(c)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
--link summon
c:EnableReviveLimit()
......
--虹龍圣域
function c11185255.initial_effect(c)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
--Activate
local e0=Effect.CreateEffect(c)
......
--虹龍之谷
function c11185265.initial_effect(c)
aux.AddCodeList(c,0x452)
--Activate(summon)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY)
......
--虹龍·墨龙
function c11185275.initial_effect(c)
aux.AddCodeList(c,0x452)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSynchroType,TYPE_SYNCHRO),aux.TargetBoolFunction(Card.IsSetCard,0x453),1)
c:EnableReviveLimit()
......
--虹龍·月龙
function c11185290.initial_effect(c)
aux.AddCodeList(c,0x452)
--xyz summon
aux.AddXyzProcedure(c,nil,8,10,c11185290.ovfilter,aux.Stringid(11185290,0),10,c11185290.xyzop)
c:EnableReviveLimit()
......
--虹龍·
--虹龍·
function c11185300.initial_effect(c)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
--pendulum summon
aux.EnablePendulumAttribute(c,false)
......
--虹龍·朔月
function c11185305.initial_effect(c)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
--link summon
c:EnableReviveLimit()
......
--虹龍的敕令
function c11185310.initial_effect(c)
aux.AddCodeList(c,0x452)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(11185310,0))
......
--虹龍·神龙
function c11185315.initial_effect(c)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
--fusion material
c:EnableReviveLimit()
......
--传说之龙
function c11185325.initial_effect(c)
c:SetSPSummonOnce(11185325)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
c:EnableReviveLimit()
--spsummon
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_FIELD)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e0:SetCode(EFFECT_SPSUMMON_PROC)
e0:SetRange(LOCATION_EXTRA)
e0:SetCondition(c11185325.hspcon)
e0:SetTarget(c11185325.hsptg)
e0:SetOperation(c11185325.hspop)
c:RegisterEffect(e0)
--to hand
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1,11185325)
e1:SetTarget(c11185325.thtg)
e1:SetOperation(c11185325.thop)
c:RegisterEffect(e1)
--add counter
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_COUNTER)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,11185325+1)
e2:SetTarget(c11185325.countertg)
e2:SetOperation(c11185325.counterop)
c:RegisterEffect(e2)
--nontuner
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE)
e3:SetCode(EFFECT_NONTUNER)
e3:SetValue(c11185325.tnval)
c:RegisterEffect(e3)
end
function c11185325.tnval(e,c)
return e:GetHandler():IsControler(c:GetControler())
end
function c11185325.hspfilter(c,tp,sc)
return aux.IsCodeListed(c,0x452) and c:IsFaceup()
and c:IsControler(tp) and Duel.GetLocationCountFromEx(tp,tp,c,sc)>0
end
function c11185325.hspcon(e,c)
if c==nil then return true end
return Duel.CheckReleaseGroupEx(c:GetControler(),c11185325.hspfilter,1,REASON_SPSUMMON,false,nil,c:GetControler(),c)
end
function c11185325.hsptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(c11185325.hspfilter,nil,tp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local tc=g:SelectUnselect(nil,tp,false,true,1,1)
if tc then
e:SetLabelObject(tc)
return true
else return false end
end
function c11185325.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local tc=e:GetLabelObject()
Duel.Release(tc,REASON_SPSUMMON)
end
function c11185325.thfilter(c)
return aux.IsCodeListed(c,0x452) and c:IsAbleToHand()
end
function c11185325.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c11185325.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c11185325.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c11185325.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
function c11185325.countertg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsCanAddCounter(0x452,1) end
local g=Duel.GetMatchingGroup(Card.IsCanAddCounter,tp,LOCATION_ONFIELD,0,c,0x452,1)
g:AddCard(c)
Duel.SetOperationInfo(0,CATEGORY_COUNTER,g,#g,0,0)
end
function c11185325.counterop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=Duel.GetMatchingGroup(Card.IsCanAddCounter,tp,LOCATION_ONFIELD,0,c,0x452,1)
if c:IsRelateToEffect(e) then g:AddCard(c) end
for tc in aux.Next(g) do
if tc:IsCanAddCounter(0x452,1) then
tc:AddCounter(0x452,1)
end
end
end
\ No newline at end of file
--龙仙
function c11185330.initial_effect(c)
aux.AddCodeList(c,0x452)
c:EnableCounterPermit(0x452)
--search
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,11185330)
e1:SetCost(c11185330.cost)
e1:SetTarget(c11185330.target)
e1:SetOperation(c11185330.operation)
c:RegisterEffect(e1)
--spsummon
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_COUNTER)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetCountLimit(1,11185330+1)
e2:SetTarget(c11185330.sptg)
e2:SetOperation(c11185330.spop)
c:RegisterEffect(e2)
end
function c11185330.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsDiscardable() end
Duel.SendtoGrave(c,REASON_COST+REASON_DISCARD)
end
function c11185330.filter(c)
return c:IsCanHaveCounter(0x452,1) and c:IsAbleToHand()
end
function c11185330.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c11185330.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c11185330.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c11185330.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
function c11185330.spfilter(c,e,tp)
return c:IsCanHaveCounter(0x452,1) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c11185330.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c11185330.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
function c11185330.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c11185330.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) then
if c:IsRelateToEffect(e) and c:IsFaceup() and Duel.SelectYesNo(tp,aux.Stringid(11185330,0)) then
c:AddCounter(0x452,1)
end
end
end
\ No newline at end of file
......@@ -8,7 +8,6 @@ function c11560715.initial_effect(c)
e1:SetDescription(aux.Stringid(11560715,1))
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_CHAINING)
-- e1:SetProperty(EFFECT_FLAG_NO_TURN_RESET)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,11560715)
e1:SetCondition(c11560715.ovcon)
......@@ -66,21 +65,26 @@ end
function c11560715.ovcon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp-- and e:GetHandler():GetFlagEffect(11560715)==0
return rp==1-tp
end
function c11560715.ovtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsCanOverlay,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE+LOCATION_REMOVED,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsCanOverlay,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE+LOCATION_REMOVED,1,nil) and e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_EFFECT) end
end
function c11560715.loccheck(g)
return g:GetClassCount(Card.GetLocation)==1
end
function c11560715.ovop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ct=0
if not c:IsRelateToEffect(e) then return end
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(Card.IsCanOverlay),tp,0,LOCATION_ONFIELD+LOCATION_GRAVE+LOCATION_REMOVED,nil)
if Duel.IsExistingMatchingCard(aux.NecroValleyFilter(Card.IsCanOverlay),tp,0,LOCATION_GRAVE,1,nil) then ct=ct+1 end
if Duel.IsExistingMatchingCard(Card.IsCanOverlay,tp,0,LOCATION_ONFIELD,1,nil) then ct=ct+1 end
if Duel.IsExistingMatchingCard(Card.IsCanOverlay,tp,0,LOCATION_REMOVED,1,nil) then ct=ct+1 end
if g:GetCount()>0 then
ctt=c:RemoveOverlayCard(tp,1,ct,REASON_EFFECT)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local og=g:SelectSubGroup(tp,c11560715.loccheck,false,1,3)
local og=g:SelectSubGroup(tp,c11560715.loccheck,false,ctt,ctt)
Duel.HintSelection(og)
for tc in aux.Next(og) do
if tc:IsImmuneToEffect(e) then
......@@ -111,26 +115,7 @@ function c11560715.xxop(e,tp,eg,ep,ev,re,r,rp)
local tc=og:Select(tp,1,1,nil):GetFirst()
Duel.SendtoGrave(tc,REASON_EFFECT)
if tc:IsType(TYPE_MONSTER) then
local code=tc:GetOriginalCodeRule()
local cid=0
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EFFECT_CHANGE_CODE)
e1:SetValue(code)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1)
if not tc:IsType(TYPE_TRAPMONSTER) then
cid=c:CopyEffect(code,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,1)
end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetRange(LOCATION_MZONE)
e1:SetValue(tc:GetBaseAttack()/2)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1)
if Duel.IsExistingMatchingCard(c11560715.mxfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) and c:IsRelateToEffect(e) and Duel.SelectYesNo(tp,aux.Stringid(11560715,0)) then
if Duel.SendtoHand(tc,tp,REASON_EFFECT)~=0 and Duel.IsExistingMatchingCard(c11560715.mxfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) and c:IsRelateToEffect(e) and Duel.SelectYesNo(tp,aux.Stringid(11560715,0)) then
Duel.BreakEffect()
local oc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c11560715.mxfilter),tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,c):GetFirst()
if oc and not oc:IsImmuneToEffect(e) then
......
......@@ -22,25 +22,18 @@ function s.initial_effect(c)
e2:SetTarget(s.target)
e2:SetOperation(s.activate)
c:RegisterEffect(e2)
--spsummon
--to hand
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,0))
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetCategory(CATEGORY_TODECK)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetRange(LOCATION_GRAVE)
e3:SetCountLimit(1,id+2)
e3:SetTarget(s.ovtg)
e3:SetOperation(s.ovop)
e3:SetCountLimit(1,11569002)
e3:SetCondition(c11569000.ovcon)
e3:SetTarget(c11569000.ovtg)
e3:SetOperation(c11569000.ovop)
c:RegisterEffect(e3)
--SpecialSummon
local e5=Effect.CreateEffect(c)
e5:SetDescription(aux.Stringid(id,1))
e5:SetCategory(CATEGORY_TODECK)
e5:SetType(EFFECT_TYPE_IGNITION)
e5:SetRange(LOCATION_GRAVE)
e5:SetCountLimit(1,id+2)
e5:SetTarget(s.tdtg)
e5:SetOperation(s.tdop)
c:RegisterEffect(e5)
end
function s.spfilter(c,e,tp)
return c:IsSetCard(0x1b4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_ATTACK,1-tp)
......@@ -60,8 +53,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
function s.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsReason(REASON_COST) and re:IsActivated() and re:IsActiveType(TYPE_XYZ)
and c:IsPreviousLocation(LOCATION_OVERLAY)
return c:IsPreviousLocation(LOCATION_OVERLAY)
end
function s.filter1(c,e,tp)
local rk=c:GetRank()
......@@ -101,36 +93,37 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
sc:CompleteProcedure()
end
end
function s.ovfilter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsType(TYPE_XYZ)
function c11569000.ovfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0x107b) and c:IsControler(tp)
end
function s.ovtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingTarget(s.ovfilter,tp,LOCATION_MZONE,0,1,nil)
and e:GetHandler():IsCanOverlay() end
function c11569000.ovcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c11569000.ovfilter,1,nil,tp)
end
function c11569000.ovfilter(c)
return c:IsFaceup() and c:IsType(TYPE_XYZ)
end
function c11569000.ovtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c11569000.ovfilter,tp,LOCATION_MZONE,0,1,nil) and e:GetHandler():IsCanOverlay() end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,s.ovfilter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SelectTarget(tp,c11569000.ovfilter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,e:GetHandler(),1,0,0)
end
function s.ovop(e,tp,eg,ep,ev,re,r,rp)
function c11569000.tdfilter(c)
return c:IsSetCard(0x1b4) or c:IsAttribute(ATTRIBUTE_LIGHT)
end
function c11569000.ovop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and not c:IsImmuneToEffect(e) and not tc:IsImmuneToEffect(e) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELF)
local tc=Duel.SelectMatchingCard(tp,c11569000.ovfilter,tp,LOCATION_MZONE,0,1,1,nil,e,tp):GetFirst()
if c:IsRelateToEffect(e) and not c:IsImmuneToEffect(e) and not tc:IsImmuneToEffect(e) then
Duel.Overlay(tc,Group.FromCards(c))
end
end
function s.tdfilter(c)
return (c:IsSetCard(0x1b4) or c:IsSetCard(0x307b) or c:IsAttribute(ATTRIBUTE_LIGHT)) and c:IsAbleToDeck()
end
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(s.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,5,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,s.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,5,5,nil)
g:AddCard(c)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,0)
end
function s.tdop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if g:GetCount()>0 then
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
if Duel.IsExistingMatchingCard(c11569000.tdfilter,tp,LOCATION_GRAVE,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(11569000,2)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c11569000.tdfilter),tp,LOCATION_GRAVE,0,1,3,nil)
if #g>0 then
Duel.HintSelection(g)
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
end
end
end
\ No newline at end of file
......@@ -212,7 +212,7 @@ function cm.operation(e, tp, eg, ep, ev, re, r, rp)
-- Debug.Message(aux.GetValueType(tg))
if ie and tg and aux.GetValueType(tg) == "function" then
local c1, c2 = pcall(function()
tg(ie, tp, eg, ep, ev, re, r, rp, 0)
return tg(ie, tp, eg, ep, ev, re, r, rp, 0)
end)
if c2 == true then
local op = ie:GetOperation()
......
......@@ -7,11 +7,12 @@ function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH)
e1:SetHintTiming(TIMING_DRAW_PHASE)
e1:SetCountLimit(1,m)
e1:SetCost(cm.spcost)
e1:SetCondition(cm.spcon)
e1:SetTarget(cm.sptg)
e1:SetOperation(cm.spop)
c:RegisterEffect(e1)
......@@ -43,7 +44,7 @@ function cm.ND(c)
return m and m.named_with_NextDraw
end
function cm.costfilter(c)
return cm.ND(c) and not c:IsPublic()
return cm.ND(c) and c:IsType(TYPE_MONSTER) and not c:IsPublic()
end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
......@@ -51,12 +52,10 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.SelectMatchingCard(tp,cm.costfilter,tp,LOCATION_HAND,0,1,1,e:GetHandler())
local tc=g:GetFirst()
Duel.ConfirmCards(1-tp,tc)
e:SetLabelObject(tc)
tc:CreateEffectRelation(e)
Duel.ShuffleHand(tp)
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(function(c) return c:GetSequence()<5 and c:IsFaceup() end,tp,LOCATION_MZONE,0,1,nil)
function cm.spfilter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE)
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......@@ -66,14 +65,22 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=e:GetLabelObject()
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not c:IsRelateToEffect(e) then return end
local ct=Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)
Duel.ConfirmCards(1-tp,c)
if ct~=0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and tc:IsRelateToEffect(e) and tc:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE) and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
if ct~=0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) and not Duel.IsPlayerAffectedByEffect(tp,EFFECT_DIVINE_LIGHT) and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
Duel.BreakEffect()
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)
Duel.ConfirmCards(1-tp,tc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
Duel.ShuffleHand(tp)
if g:GetCount()>0 then
local sc=g:GetFirst()
local hint=sc:IsPublic()
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)
if hint then
Duel.ConfirmCards(1-tp,g)
end
end
end
end
function cm.filter(c)
......@@ -103,8 +110,8 @@ function cm.fpop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return tg and tg:IsContains(e:GetHandler()) and e:GetHandler():IsFacedown()
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return g and g:IsExists(Card.IsFacedown,1,nil) and e:GetHandler():IsFacedown() and Duel.IsChainNegatable(ev)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -7,11 +7,12 @@ function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH)
e1:SetHintTiming(TIMING_DRAW_PHASE)
e1:SetCountLimit(1,m)
e1:SetCost(cm.spcost)
e1:SetCondition(cm.spcon)
e1:SetTarget(cm.sptg)
e1:SetOperation(cm.spop)
c:RegisterEffect(e1)
......@@ -43,7 +44,7 @@ function cm.ND(c)
return m and m.named_with_NextDraw
end
function cm.costfilter(c)
return cm.ND(c) and not c:IsPublic()
return cm.ND(c) and c:IsType(TYPE_MONSTER) and not c:IsPublic()
end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
......@@ -51,12 +52,10 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.SelectMatchingCard(tp,cm.costfilter,tp,LOCATION_HAND,0,1,1,e:GetHandler())
local tc=g:GetFirst()
Duel.ConfirmCards(1-tp,tc)
e:SetLabelObject(tc)
tc:CreateEffectRelation(e)
Duel.ShuffleHand(tp)
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(function(c) return c:GetSequence()<5 and c:IsFaceup() end,tp,LOCATION_MZONE,0,1,nil)
function cm.spfilter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE)
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......@@ -66,14 +65,22 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=e:GetLabelObject()
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not c:IsRelateToEffect(e) then return end
local ct=Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)
Duel.ConfirmCards(1-tp,c)
if ct~=0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and tc:IsRelateToEffect(e) and tc:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE) and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
if ct~=0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) and not Duel.IsPlayerAffectedByEffect(tp,EFFECT_DIVINE_LIGHT) and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
Duel.BreakEffect()
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)
Duel.ConfirmCards(1-tp,tc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
Duel.ShuffleHand(tp)
if g:GetCount()>0 then
local sc=g:GetFirst()
local hint=sc:IsPublic()
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)
if hint then
Duel.ConfirmCards(1-tp,g)
end
end
end
end
function cm.filter(c)
......@@ -98,8 +105,8 @@ function cm.fpop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return tg and tg:IsContains(e:GetHandler()) and e:GetHandler():IsFacedown()
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return g and g:IsExists(Card.IsFacedown,1,nil) and e:GetHandler():IsFacedown() and Duel.IsChainNegatable(ev)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -11,7 +11,8 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH)
e1:SetHintTiming(TIMING_DRAW_PHASE)
e1:SetCountLimit(1,m)
e1:SetTarget(cm.sptg)
e1:SetOperation(cm.spop)
c:RegisterEffect(e1)
......@@ -86,8 +87,8 @@ function cm.fpop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return tg and tg:IsContains(e:GetHandler()) and e:GetHandler():IsFacedown()
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return g and g:IsExists(Card.IsFacedown,1,nil) and e:GetHandler():IsFacedown() and Duel.IsChainNegatable(ev)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -11,7 +11,8 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH)
e1:SetHintTiming(TIMING_DRAW_PHASE)
e1:SetCountLimit(1,m)
e1:SetTarget(cm.sptg)
e1:SetOperation(cm.spop)
c:RegisterEffect(e1)
......@@ -78,7 +79,10 @@ end
function cm.fpop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
if Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)~=0 and Duel.IsPlayerCanDraw(tp,1) and Duel.SelectYesNo(tp,aux.Stringid(m,3)) then
if Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_DECK+LOCATION_EXTRA) and Duel.IsPlayerCanDraw(tp,1) and Duel.SelectYesNo(tp,aux.Stringid(m,3)) then
if tc:IsLocation(LOCATION_DECK) and tc:IsControler(tp) then
Duel.ShuffleDeck(tp)
end
Duel.BreakEffect()
Duel.Draw(tp,1,REASON_EFFECT)
end
......@@ -86,8 +90,8 @@ function cm.fpop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return tg and tg:IsContains(e:GetHandler()) and e:GetHandler():IsFacedown()
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return g and g:IsExists(Card.IsFacedown,1,nil) and e:GetHandler():IsFacedown() and Duel.IsChainNegatable(ev)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -7,11 +7,12 @@ function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH)
e1:SetHintTiming(TIMING_DRAW_PHASE)
e1:SetCountLimit(1,m)
e1:SetCost(cm.spcost)
e1:SetCondition(cm.spcon)
e1:SetTarget(cm.sptg)
e1:SetOperation(cm.spop)
c:RegisterEffect(e1)
......@@ -55,9 +56,6 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabelObject(tc)
tc:CreateEffectRelation(e)
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(function(c) return c:GetSequence()<5 and c:IsFacedown() end,tp,LOCATION_MZONE,0,1,nil)
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
......@@ -111,8 +109,8 @@ function cm.fpop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return tg and tg:IsContains(e:GetHandler()) and e:GetHandler():IsFacedown()
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return g and g:IsExists(Card.IsFacedown,1,nil) and e:GetHandler():IsFacedown() and Duel.IsChainNegatable(ev)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -6,100 +6,66 @@ function cm.initial_effect(c)
--link summon
c:EnableReviveLimit()
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkRace,RACE_FIEND),2,2)
--pos change
--SearchCard
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(cm.postg)
e1:SetOperation(cm.posop)
e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCountLimit(1,m)
e1:SetTarget(cm.thtg)
e1:SetOperation(cm.thop)
c:RegisterEffect(e1)
--search
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,2))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SEARCH+CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_IGNITION)
local e2=e1:Clone()
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCost(cm.thcost)
e2:SetCondition(cm.thcon)
e2:SetTarget(cm.thtg)
e2:SetOperation(cm.thop)
c:RegisterEffect(e2)
--immune
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EFFECT_IMMUNE_EFFECT)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(cm.etarget)
e2:SetValue(cm.efilter)
c:RegisterEffect(e2)
end
function cm.ND(c)
local m=_G["c"..c:GetCode()]
return m and m.named_with_NextDraw
end
function cm.cfilter(c,lg)
return c:IsFacedown() and lg:IsContains(c)
end
function cm.spfilter(c,e,tp)
return cm.ND(c) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE)
end
function cm.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
local lg=c:GetLinkedGroup()
if chkc then return chkc:IsLocation(LOCATION_MZONE) and cm.cfilter(chkc,lg) end
if chk==0 then return Duel.IsExistingTarget(cm.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,lg) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local g=Duel.SelectTarget(tp,cm.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,lg)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
function cm.posop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if not tc:IsRelateToEffect(e) or tc:IsFaceup() then return end
if Duel.ChangePosition(tc,POS_FACEUP_DEFENSE)~=0 and tc:IsFaceup() and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)
Duel.ConfirmCards(1-tp,g)
end
end
end
function cm.costfilter(c)
return cm.ND(c) and not c:IsPublic()
end
function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local g=Duel.SelectMatchingCard(tp,cm.costfilter,tp,LOCATION_HAND,0,1,1,e:GetHandler())
local tc=g:GetFirst()
Duel.ConfirmCards(1-tp,tc)
e:SetLabelObject(tc)
tc:CreateEffectRelation(e)
Duel.ShuffleHand(tp)
function cm.cfilter(c,tp)
return c:IsFacedown() and c:IsType(TYPE_MONSTER)
end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(function(c) return c:GetSequence()<5 and c:IsFaceup() end,tp,LOCATION_MZONE,0,1,nil)
return eg:IsExists(cm.cfilter,1,nil,tp)
end
function cm.filter(c)
return c:IsLevelAbove(6) and c:IsRace(RACE_FIEND) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
function cm.thfilter(c)
return cm.ND(c) and c:IsAbleToHand()
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_HAND)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,LOCATION_DECK)
end
function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_DECK,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
local ct=Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
if ct~=0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and tc:IsRelateToEffect(e) and tc:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE) and Duel.SelectYesNo(tp,aux.Stringid(m,3)) then
Duel.BreakEffect()
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)
Duel.ConfirmCards(1-tp,tc)
end
end
function cm.etarget(e,c)
return c:IsType(TYPE_MONSTER) and c:IsFacedown()
end
function cm.efcfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsFacedown()
end
function cm.efilter(e,te)
if te:GetOwnerPlayer()==e:GetHandlerPlayer() or not te:IsActivated() then return false end
if not te:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return true end
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
return not g or not g:IsExists(cm.efcfilter,1,nil)
end
\ No newline at end of file
......@@ -15,8 +15,7 @@ function cm.initial_effect(c)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH)
e1:SetCost(cm.setcost)
e1:SetCountLimit(1,m)
e1:SetTarget(cm.settg)
e1:SetOperation(cm.setop)
c:RegisterEffect(e1)
......@@ -47,10 +46,6 @@ function cm.ND(c)
local m=_G["c"..c:GetCode()]
return m and m.named_with_NextDraw
end
function cm.setcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function cm.setfilter(c)
return c:IsFaceup() and c:IsCanTurnSet()
end
......@@ -93,6 +88,7 @@ function cm.fpop(e,tp,eg,ep,ev,re,r,rp)
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
tc:CancelToGrave()
Duel.Overlay(c,Group.FromCards(tc))
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
Duel.BreakEffect()
......@@ -107,8 +103,8 @@ function cm.fpop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return tg and tg:IsContains(e:GetHandler()) and e:GetHandler():IsFacedown()
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return g and g:IsExists(Card.IsFacedown,1,nil) and e:GetHandler():IsFacedown() and Duel.IsChainNegatable(ev)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
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