Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
REIKAI
ygopro-222DIY-cards
Commits
334a7d52
Commit
334a7d52
authored
Sep 15, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
byd
parent
493c6004
Changes
65
Hide whitespace changes
Inline
Side-by-side
Showing
65 changed files
with
308 additions
and
307 deletions
+308
-307
.gitlab-ci.yml
.gitlab-ci.yml
+1
-1
expansions/script/c12847555.lua
expansions/script/c12847555.lua
+6
-6
expansions/script/c16110001.lua
expansions/script/c16110001.lua
+4
-4
expansions/script/c16110003.lua
expansions/script/c16110003.lua
+4
-4
expansions/script/c16110015.lua
expansions/script/c16110015.lua
+6
-6
expansions/script/c16110019.lua
expansions/script/c16110019.lua
+6
-6
expansions/script/c16110020.lua
expansions/script/c16110020.lua
+7
-7
expansions/script/c16110022.lua
expansions/script/c16110022.lua
+7
-7
expansions/script/c16110037.lua
expansions/script/c16110037.lua
+4
-4
expansions/script/c16110050.lua
expansions/script/c16110050.lua
+8
-8
expansions/script/c16138001.lua
expansions/script/c16138001.lua
+4
-4
expansions/script/c16138003.lua
expansions/script/c16138003.lua
+6
-6
expansions/script/c16138005.lua
expansions/script/c16138005.lua
+7
-7
expansions/script/c16138007.lua
expansions/script/c16138007.lua
+7
-7
expansions/script/c16138015.lua
expansions/script/c16138015.lua
+6
-6
expansions/script/c16138019.lua
expansions/script/c16138019.lua
+6
-6
expansions/script/c16138021.lua
expansions/script/c16138021.lua
+7
-7
expansions/script/c16172018.lua
expansions/script/c16172018.lua
+4
-4
expansions/script/c16372008.lua
expansions/script/c16372008.lua
+4
-4
expansions/script/c21185596.lua
expansions/script/c21185596.lua
+1
-1
expansions/script/c21185599.lua
expansions/script/c21185599.lua
+1
-1
expansions/script/c31300022.lua
expansions/script/c31300022.lua
+9
-9
expansions/script/c31300043.lua
expansions/script/c31300043.lua
+3
-3
expansions/script/c31300051.lua
expansions/script/c31300051.lua
+5
-5
expansions/script/c31300052.lua
expansions/script/c31300052.lua
+3
-3
expansions/script/c31300053.lua
expansions/script/c31300053.lua
+2
-2
expansions/script/c31300054.lua
expansions/script/c31300054.lua
+4
-4
expansions/script/c33503600.lua
expansions/script/c33503600.lua
+2
-2
expansions/script/c5012615.lua
expansions/script/c5012615.lua
+8
-8
expansions/script/c50218535.lua
expansions/script/c50218535.lua
+3
-3
expansions/script/c50218540.lua
expansions/script/c50218540.lua
+3
-3
expansions/script/c53799238.lua
expansions/script/c53799238.lua
+1
-0
expansions/script/c60040001.lua
expansions/script/c60040001.lua
+4
-4
expansions/script/c60040002.lua
expansions/script/c60040002.lua
+4
-4
expansions/script/c60040003.lua
expansions/script/c60040003.lua
+4
-4
expansions/script/c60040004.lua
expansions/script/c60040004.lua
+3
-3
expansions/script/c60040005.lua
expansions/script/c60040005.lua
+4
-4
expansions/script/c60040007.lua
expansions/script/c60040007.lua
+4
-4
expansions/script/c60040010.lua
expansions/script/c60040010.lua
+4
-4
expansions/script/c60040017.lua
expansions/script/c60040017.lua
+3
-3
expansions/script/c60040019.lua
expansions/script/c60040019.lua
+4
-4
expansions/script/c60040022.lua
expansions/script/c60040022.lua
+8
-8
expansions/script/c60040026.lua
expansions/script/c60040026.lua
+6
-6
expansions/script/c60040029.lua
expansions/script/c60040029.lua
+5
-5
expansions/script/c60040035.lua
expansions/script/c60040035.lua
+4
-4
expansions/script/c60040037.lua
expansions/script/c60040037.lua
+3
-3
expansions/script/c60040038.lua
expansions/script/c60040038.lua
+4
-4
expansions/script/c60040039.lua
expansions/script/c60040039.lua
+4
-4
expansions/script/c60040040.lua
expansions/script/c60040040.lua
+3
-3
expansions/script/c60040042.lua
expansions/script/c60040042.lua
+4
-4
expansions/script/c60040049.lua
expansions/script/c60040049.lua
+2
-2
expansions/script/c60040052.lua
expansions/script/c60040052.lua
+3
-3
expansions/script/c60040055.lua
expansions/script/c60040055.lua
+2
-2
expansions/script/c60040056.lua
expansions/script/c60040056.lua
+2
-2
expansions/script/c60040057.lua
expansions/script/c60040057.lua
+2
-2
expansions/script/c60040061.lua
expansions/script/c60040061.lua
+6
-6
expansions/script/c60040066.lua
expansions/script/c60040066.lua
+4
-4
expansions/script/c60040067.lua
expansions/script/c60040067.lua
+2
-2
expansions/script/c60040069.lua
expansions/script/c60040069.lua
+3
-3
expansions/script/c60040074.lua
expansions/script/c60040074.lua
+4
-4
expansions/script/c60040079.lua
expansions/script/c60040079.lua
+3
-3
expansions/script/c88123015.lua
expansions/script/c88123015.lua
+5
-5
expansions/script/c96071064.lua
expansions/script/c96071064.lua
+11
-11
expansions/script/c96071066.lua
expansions/script/c96071066.lua
+13
-13
expansions/script/c96071081.lua
expansions/script/c96071081.lua
+22
-22
No files found.
.gitlab-ci.yml
View file @
334a7d52
...
...
@@ -4,7 +4,7 @@ stages:
variables
:
GIT_DEPTH
:
"
1"
LAST_UPDATE_DATE
:
"
2024.9.
2
"
LAST_UPDATE_DATE
:
"
2024.9.
3
"
CURRENT_UPDATE_DATE
:
"
2024.9.15"
redtext
:
...
...
expansions/script/c12847555.lua
View file @
334a7d52
--古木寻斋
--
古木寻斋
local
m
=
12847555
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--special summon rule
--
special summon rule
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
...
...
@@ -12,7 +12,7 @@ function cm.initial_effect(c)
e0
:
SetTarget
(
cm
.
sprtg
)
e0
:
SetOperation
(
cm
.
sprop
)
c
:
RegisterEffect
(
e0
)
--
--
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_PREDRAW
)
...
...
@@ -21,7 +21,7 @@ function cm.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e1
)
--act limit
--
act limit
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -30,7 +30,7 @@ function cm.initial_effect(c)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetValue
(
cm
.
aclimit
)
c
:
RegisterEffect
(
e2
)
--disable
--
disable
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_DISABLE
)
...
...
@@ -38,7 +38,7 @@ function cm.initial_effect(c)
e3
:
SetTargetRange
(
0
,
LOCATION_ONFIELD
)
e3
:
SetTarget
(
cm
.
distarget
)
c
:
RegisterEffect
(
e3
)
--disable effect
--
disable effect
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetCode
(
EVENT_CHAIN_SOLVING
)
...
...
expansions/script/c16110001.lua
View file @
334a7d52
--谜神帝 伊兹莫
--
谜神帝 伊兹莫
Duel
.
LoadScript
(
"c16199990.lua"
)
local
m
,
cm
=
rk
.
set
(
16110001
)
function
cm
.
initial_effect
(
c
)
--summon with 1 tribute
--
summon with 1 tribute
local
e1
,
e2
=
rkst
.
Tri
(
c
)
--
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_TOGRAVE
)
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
e3
:
SetTarget
(
cm
.
destg
)
e3
:
SetOperation
(
cm
.
desop
)
c
:
RegisterEffect
(
e3
)
--
--
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e4
:
SetCategory
(
CATEGORY_SUMMON
+
CATEGORY_TOGRAVE
)
...
...
expansions/script/c16110003.lua
View file @
334a7d52
--魔神帝 优米
--
魔神帝 优米
Duel
.
LoadScript
(
"c16199990.lua"
)
local
m
=
16110003
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--summon with 1 tribute
--
summon with 1 tribute
local
e1
,
e2
=
rkst
.
Tri
(
c
)
--
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
...
...
@@ -16,7 +16,7 @@ function cm.initial_effect(c)
e3
:
SetTarget
(
cm
.
destg
)
e3
:
SetOperation
(
cm
.
desop
)
c
:
RegisterEffect
(
e3
)
--
--
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
expansions/script/c16110015.lua
View file @
334a7d52
--圣灵帝 阿尔卡迪亚斯
--
圣灵帝 阿尔卡迪亚斯
Duel
.
LoadScript
(
"c16199990.lua"
)
local
m
,
cm
=
rk
.
set
(
16110015
,
"alcadias"
)
function
cm
.
initial_effect
(
c
)
--summon with 1 tribute
--
summon with 1 tribute
local
e1
,
e2
=
rkst
.
Tri
(
c
)
--remove
--
remove
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e3
:
SetCategory
(
CATEGORY_REMOVE
)
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
e3
:
SetTarget
(
cm
.
rmtg
)
e3
:
SetOperation
(
cm
.
rmop
)
c
:
RegisterEffect
(
e3
)
--remove onfield
--
remove onfield
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e4
:
SetCategory
(
CATEGORY_TOGRAVE
)
...
...
@@ -26,7 +26,7 @@ function cm.initial_effect(c)
e4
:
SetOperation
(
cm
.
tgop
)
c
:
RegisterEffect
(
e4
)
end
--remove
--
remove
function
cm
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
end
...
...
@@ -43,7 +43,7 @@ function cm.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
--remove onfield
--
remove onfield
function
cm
.
costfilter
(
c
)
return
c
:
IsAbleToGraveAsCost
()
and
c
:
IsSetCard
(
0xcc5
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsFaceup
()
end
...
...
expansions/script/c16110019.lua
View file @
334a7d52
--罪神帝 Eva
--
罪神帝 Eva
Duel
.
LoadScript
(
"c16199990.lua"
)
local
m
=
16110019
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--summon with 1 tribute
--
summon with 1 tribute
local
e1
,
e2
=
rkst
.
Tri
(
c
)
--
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e3
:
SetCategory
(
CATEGORY_POSITION
+
CATEGORY_ATKCHANGE
)
...
...
@@ -17,21 +17,21 @@ function cm.initial_effect(c)
e3
:
SetTarget
(
cm
.
destg
)
e3
:
SetOperation
(
cm
.
desop
)
c
:
RegisterEffect
(
e3
)
--attack all
--
attack all
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_ATTACK_ALL
)
e4
:
SetCondition
(
cm
.
descon
)
e4
:
SetValue
(
1
)
c
:
RegisterEffect
(
e4
)
--
--
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e5
:
SetCode
(
EFFECT_PIERCE
)
e5
:
SetCondition
(
cm
.
descon
)
c
:
RegisterEffect
(
e5
)
--
--
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
)
e6
:
SetRange
(
LOCATION_MZONE
)
...
...
expansions/script/c16110020.lua
View file @
334a7d52
--业神帝 Mahnaph
--
业神帝 Mahnaph
Duel
.
LoadScript
(
"c16199990.lua"
)
local
m
=
16110020
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--summon with 1 tribute
--
summon with 1 tribute
local
e1
,
e2
=
rkst
.
Tri
(
c
)
--
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e3
:
SetCategory
(
CATEGORY_DAMAGE
)
...
...
@@ -16,7 +16,7 @@ function cm.initial_effect(c)
e3
:
SetTarget
(
cm
.
destg
)
e3
:
SetOperation
(
cm
.
desop
)
c
:
RegisterEffect
(
e3
)
--immune
--
immune
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
...
...
@@ -25,7 +25,7 @@ function cm.initial_effect(c)
e4
:
SetCondition
(
cm
.
descon
)
e4
:
SetValue
(
cm
.
efilter
)
c
:
RegisterEffect
(
e4
)
--atk
--
atk
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
...
...
@@ -34,13 +34,13 @@ function cm.initial_effect(c)
e5
:
SetValue
(
3000
)
e5
:
SetCondition
(
cm
.
descon
)
c
:
RegisterEffect
(
e5
)
--cannot diratk
--
cannot diratk
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
e6
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e6
:
SetCondition
(
cm
.
descon
)
c
:
RegisterEffect
(
e6
)
--Attach
--
Attach
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e7
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
expansions/script/c16110022.lua
View file @
334a7d52
--枪神帝 修罗
--
枪神帝 修罗
Duel
.
LoadScript
(
"c16199990.lua"
)
local
m
=
16110022
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--summon with 1 tribute
--
summon with 1 tribute
local
e1
,
e2
=
rkst
.
Tri
(
c
)
--immune
--
immune
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
e3
:
SetTarget
(
cm
.
rmtg
)
e3
:
SetOperation
(
cm
.
rmop
)
c
:
RegisterEffect
(
e3
)
--special summon limit
--
special summon limit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e1
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
...
...
@@ -25,7 +25,7 @@ function cm.initial_effect(c)
e1
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e1
)
end
--summon with 1 tribute
--
summon with 1 tribute
function
cm
.
otfilter
(
c
)
return
c
:
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
end
...
...
@@ -40,7 +40,7 @@ function cm.otop(e,tp,eg,ep,ev,re,r,rp,c)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
--immune
--
immune
function
cm
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
end
...
...
@@ -64,7 +64,7 @@ end
function
cm
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
--special summon limit
--
special summon limit
function
cm
.
bdogcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
...
...
expansions/script/c16110037.lua
View file @
334a7d52
--龙世界龙大王
--
龙世界龙大王
Duel
.
LoadScript
(
"c16199990.lua"
)
local
m
,
cm
=
rk
.
set
(
16110037
,
"DAIOURYUU"
)
function
cm
.
initial_effect
(
c
)
--fusion material
--
fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFunRep
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_DRAGON
),
3
,
true
)
--direct attack
--
direct attack
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e0
:
SetCondition
(
cm
.
descon
)
c
:
RegisterEffect
(
e0
)
--copy effect
--
copy effect
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
...
...
expansions/script/c16110050.lua
View file @
334a7d52
--权神帝 Valid
--
权神帝 Valid
Duel
.
LoadScript
(
"c16199990.lua"
)
local
m
=
16110050
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--summon with 1 tribute
--
summon with 1 tribute
local
e1
,
e2
=
rkst
.
Tri
(
c
)
--Effect 1
--
Effect 1
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
...
...
@@ -16,7 +16,7 @@ function cm.initial_effect(c)
e3
:
SetTarget
(
cm
.
target
)
e3
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e3
)
--Effect 2
--
Effect 2
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
...
...
@@ -26,7 +26,7 @@ function cm.initial_effect(c)
e4
:
SetTarget
(
cm
.
target3
)
e4
:
SetOperation
(
cm
.
operation3
)
c
:
RegisterEffect
(
e4
)
--Effect 3
--
Effect 3
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e5
:
SetCategory
(
CATEGORY_SUMMON
)
...
...
@@ -50,7 +50,7 @@ function cm.initial_effect(c)
e6
:
SetOperation
(
cm
.
sumop
)
c
:
RegisterEffect
(
e6
)
end
--Effect 1
--
Effect 1
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
end
Duel
.
PayLPCost
(
tp
,
1000
)
...
...
@@ -70,7 +70,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
--Effect 2
--
Effect 2
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
end
...
...
@@ -89,7 +89,7 @@ function cm.operation3(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
--Effect 3
--
Effect 3
function
cm
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
and
not
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
end
...
...
expansions/script/c16138001.lua
View file @
334a7d52
--黄道带的灾厄
--
黄道带的灾厄
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
16138001
)
--to deck
--
to deck
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
...
...
@@ -10,7 +10,7 @@ function s.initial_effect(c)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
activate
)
c
:
RegisterEffect
(
e1
)
--apply
--
apply
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e2
:
SetCategory
(
CATEGORY_DRAW
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TODECK
+
CATEGORY_FUSION_SUMMON
)
...
...
@@ -22,7 +22,7 @@ function s.initial_effect(c)
e2
:
SetTarget
(
s
.
optg
)
e2
:
SetOperation
(
s
.
opop
)
c
:
RegisterEffect
(
e2
)
--spsummon
--
spsummon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
6
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
expansions/script/c16138003.lua
View file @
334a7d52
--十二星天魔神 羯座
--
十二星天魔神 羯座
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
16138001
,
16138004
)
--direct attack
--
direct attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
--c:RegisterEffect(e1)
--drawed
--
c:RegisterEffect(e1)
--
drawed
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_DRAW
)
e2
:
SetOperation
(
s
.
drdo
)
c
:
RegisterEffect
(
e2
)
--
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_HAND
)
...
...
@@ -28,7 +28,7 @@ function s.initial_effect(c)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetCondition
(
s
.
condition2
)
c
:
RegisterEffect
(
e4
)
--
--
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_TOKEN
)
e5
:
SetType
(
EFFECT_TYPE_IGNITION
)
...
...
expansions/script/c16138005.lua
View file @
334a7d52
--十二星天魔神 瓶座
--
十二星天魔神 瓶座
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
16138001
)
c
:
EnableReviveLimit
()
--direct attack
--
direct attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
--c:RegisterEffect(e1)
--drawed
--
c:RegisterEffect(e1)
--
drawed
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_DRAW
)
e2
:
SetOperation
(
s
.
drdo
)
c
:
RegisterEffect
(
e2
)
--
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
...
...
@@ -30,7 +30,7 @@ function s.initial_effect(c)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetCondition
(
s
.
condition2
)
c
:
RegisterEffect
(
e4
)
--
--
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetCategory
(
CATEGORY_DESTROY
)
e5
:
SetType
(
EFFECT_TYPE_IGNITION
)
...
...
@@ -46,7 +46,7 @@ function s.initial_effect(c)
e6
:
SetCode
(
EVENT_FREE_CHAIN
)
e6
:
SetCondition
(
s
.
qcon
)
c
:
RegisterEffect
(
e6
)
--
--
if
not
s
.
scheck
then
s
.
scheck
=
true
_Confirm
=
Duel
.
ConfirmCards
...
...
expansions/script/c16138007.lua
View file @
334a7d52
--十二星天魔神 鱼座
--
十二星天魔神 鱼座
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
16138001
)
--direct attack
--
direct attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
--c:RegisterEffect(e1)
--drawed
--
c:RegisterEffect(e1)
--
drawed
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_DRAW
)
e2
:
SetOperation
(
s
.
drdo
)
c
:
RegisterEffect
(
e2
)
--
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_TOGRAVE
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
...
...
@@ -29,7 +29,7 @@ function s.initial_effect(c)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetCondition
(
s
.
condition2
)
c
:
RegisterEffect
(
e4
)
--
--
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_IGNITION
)
e5
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -90,7 +90,7 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
s
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--
--
local
ph
=
Duel
.
GetCurrentPhase
()
if
ph
<
PHASE_BATTLE
then
Duel
.
SkipPhase
(
tp
,
PHASE_MAIN1
,
RESET_PHASE
+
PHASE_END
,
1
)
...
...
expansions/script/c16138015.lua
View file @
334a7d52
--十二星天魔神 蟹座
--
十二星天魔神 蟹座
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
16138001
)
--drawed
--
drawed
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_DRAW
)
e2
:
SetOperation
(
s
.
drdo
)
c
:
RegisterEffect
(
e2
)
--e2
--
e2
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
3
))
e3
:
SetCategory
(
CATEGORY_TOHAND
)
...
...
@@ -25,7 +25,7 @@ function s.initial_effect(c)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetCondition
(
s
.
actcont
)
c
:
RegisterEffect
(
e4
)
--e3
--
e3
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
...
...
@@ -40,7 +40,7 @@ function s.drdo(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
c
:
RegisterFlagEffect
(
16138001
,
RESET_PHASE
+
PHASE_END
+
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
aux
.
Stringid
(
16138001
,
5
))
end
--e2
--
e2
function
s
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
GetFlagEffect
(
16138001
)
==
0
...
...
@@ -66,7 +66,7 @@ function s.actop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
--e3
--
e3
function
s
.
ccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
rp
==
tp
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
...
...
expansions/script/c16138019.lua
View file @
334a7d52
--十二星天魔神 少女座
--
十二星天魔神 少女座
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
16138001
)
--direct attack
--
direct attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
--c:RegisterEffect(e1)
--drawed
--
c:RegisterEffect(e1)
--
drawed
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_DRAW
)
e2
:
SetOperation
(
s
.
drdo
)
c
:
RegisterEffect
(
e2
)
--
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_HAND
)
...
...
@@ -28,7 +28,7 @@ function s.initial_effect(c)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetCondition
(
s
.
condition2
)
c
:
RegisterEffect
(
e4
)
--
--
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e5
:
SetRange
(
LOCATION_MZONE
)
...
...
expansions/script/c16138021.lua
View file @
334a7d52
--十二星天魔神 天秤座
--
十二星天魔神 天秤座
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
--xyz summon
--
xyz summon
aux
.
AddXyzProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_FIEND
),
12
,
2
,
nil
,
nil
,
99
)
c
:
EnableReviveLimit
()
--special summon
--
special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
...
...
@@ -21,7 +21,7 @@ function s.initial_effect(c)
e1_1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1_1
:
SetCondition
(
s
.
qcon
)
c
:
RegisterEffect
(
e1_1
)
--
--
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e2
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -29,7 +29,7 @@ function s.initial_effect(c)
e2
:
SetCondition
(
s
.
lpcon
)
e2
:
SetOperation
(
s
.
lpop
)
c
:
RegisterEffect
(
e2
)
--
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e3
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -37,7 +37,7 @@ function s.initial_effect(c)
e3
:
SetCondition
(
s
.
leavecon
)
e3
:
SetOperation
(
s
.
leaveop
)
c
:
RegisterEffect
(
e3
)
--get xyz mat
--
get xyz mat
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
...
...
@@ -49,7 +49,7 @@ function s.initial_effect(c)
e4
:
SetTarget
(
s
.
xyztg
)
e4
:
SetOperation
(
s
.
xyzop
)
c
:
RegisterEffect
(
e4
)
--leave
--
leave
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
...
...
expansions/script/c16172018.lua
View file @
334a7d52
--灭界的魔将 巴弗洛梅亚
--
灭界的魔将 巴弗洛梅亚
if
not
pcall
(
function
()
dofile
(
"expansions/script/c16199990.lua"
)
end
)
then
dofile
(
"expansions/script/c16199990.lua"
)
end
local
m
=
16172018
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
16172015
)
c
:
EnableCounterPermit
(
0x2cc
)
--xyz summon
--
xyz summon
c
:
EnableReviveLimit
()
aux
.
AddXyzProcedureLevelFree
(
c
,
cm
.
mfilter
,
nil
,
2
,
2
)
--
--
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -17,7 +17,7 @@ function cm.initial_effect(c)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
--
--
local
e1_1
=
Effect
.
CreateEffect
(
c
)
e1_1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1_1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
expansions/script/c16372008.lua
View file @
334a7d52
--玉桂·花信
--
玉桂·花信
function
c16372008
.
initial_effect
(
c
)
--can not diseffect
--
can not diseffect
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
@@ -12,7 +12,7 @@ function c16372008.initial_effect(c)
e1
:
SetTarget
(
c16372008
.
tg
)
e1
:
SetOperation
(
c16372008
.
op
)
c
:
RegisterEffect
(
e1
)
--setself
--
setself
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
...
...
@@ -23,7 +23,7 @@ function c16372008.initial_effect(c)
e2
:
SetTarget
(
c16372008
.
setstg
)
e2
:
SetOperation
(
c16372008
.
setsop
)
c
:
RegisterEffect
(
e2
)
--spsummon
--
spsummon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
expansions/script/c21185596.lua
View file @
334a7d52
--天使猪猪王
--
天使猪猪王
function
c21185596
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
...
...
expansions/script/c21185599.lua
View file @
334a7d52
--后手的曙光之神
--
后手的曙光之神
function
c21185599
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
...
...
expansions/script/c31300022.lua
View file @
334a7d52
--mikodanye
--
mikodanye
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
s
.
specialrule
(
c
)
...
...
@@ -14,7 +14,7 @@ end
function
s
.
specialsum
(
c
)
--Special Summon
--
Special Summon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
2
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
@@ -52,7 +52,7 @@ end
function
s
.
atkup
(
c
)
--tograve
--
tograve
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
1371
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
...
...
@@ -96,7 +96,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
end
function
s
.
specialrule
(
c
)
--xyz summon
--
xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
5
,
3
,
s
.
ovfilter
,
aux
.
Stringid
(
id
,
0
),
3
,
s
.
xyzop
)
c
:
EnableReviveLimit
()
end
...
...
@@ -107,10 +107,10 @@ function s.xyzop(e,tp,chk)
if
chk
==
0
then
return
true
end
local
c
=
e
:
GetHandler
()
local
reset
=
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
+
RESET_PHASE
+
PHASE_END
--local e2=Effect.CreateEffect(c)
--e2:SetType(EFFECT_TYPE_SINGLE)
--e2:SetCode(EFFECT_CANNOT_TRIGGER)
--e2:SetReset(reset)
--c:RegisterEffect(e2)
--
local e2=Effect.CreateEffect(c)
--
e2:SetType(EFFECT_TYPE_SINGLE)
--
e2:SetCode(EFFECT_CANNOT_TRIGGER)
--
e2:SetReset(reset)
--
c:RegisterEffect(e2)
c
:
RegisterFlagEffect
(
id
,
reset
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
id
,
1
))
end
\ No newline at end of file
expansions/script/c31300043.lua
View file @
334a7d52
--魔女 Bijou
--
魔女 Bijou
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
if
not
s
.
global_check
then
...
...
@@ -21,7 +21,7 @@ function s.chk(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
fusioneff
(
c
)
--destroy
--
destroy
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
1169
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
+
CATEGORY_TOGRAVE
)
...
...
@@ -112,7 +112,7 @@ end
function
s
.
specialsum
(
c
)
--special summon
--
special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
2
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
expansions/script/c31300051.lua
View file @
334a7d52
--魔人 Bijou
--
魔人 Bijou
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
s
.
specialsum
(
c
)
...
...
@@ -7,7 +7,7 @@ end
function
s
.
searchcard
(
c
)
--to hand
--
to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
1109
)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
...
...
@@ -46,7 +46,7 @@ end
function
s
.
specialsum
(
c
)
--special summon
--
special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
1109
)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_SPECIAL_SUMMON
)
...
...
@@ -84,12 +84,12 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sc
=
sg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
sc
and
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
--
--
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_MZONE
)
--e2:SetCountLimit(1)
--
e2:SetCountLimit(1)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetTarget
(
s
.
target
)
e2
:
SetOperation
(
s
.
operation
)
...
...
expansions/script/c31300052.lua
View file @
334a7d52
--猫咪 Bijou
--
猫咪 Bijou
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
s
.
specialsum
(
c
)
...
...
@@ -7,7 +7,7 @@ end
function
s
.
tohand
(
c
)
--to hand
--
to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
1193
)
e1
:
SetCategory
(
CATEGORY_TOHAND
)
...
...
@@ -46,7 +46,7 @@ end
function
s
.
specialsum
(
c
)
--special summon
--
special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
2
)
e1
:
SetCategory
(
CATEGORY_DRAW
+
CATEGORY_TODECK
)
...
...
expansions/script/c31300053.lua
View file @
334a7d52
--魔人 Bijou
--
魔人 Bijou
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
if
not
s
.
global_check
then
...
...
@@ -109,7 +109,7 @@ end
function
s
.
specialsum
(
c
)
--special summon
--
special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
2
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
expansions/script/c31300054.lua
View file @
334a7d52
--石头 Bijou
--
石头 Bijou
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
s
.
specialrule
(
c
)
...
...
@@ -7,7 +7,7 @@ function s.initial_effect(c)
end
function
s
.
damage
(
c
)
--Special Summon
--
Special Summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
1122
)
e1
:
SetCategory
(
CATEGORY_DAMAGE
)
...
...
@@ -46,7 +46,7 @@ end
function
s
.
setfield
(
c
)
--des
--
des
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
...
...
@@ -88,7 +88,7 @@ end
function
s
.
specialrule
(
c
)
c
:
EnableReviveLimit
()
--material
--
material
aux
.
AddFusionProcFun2
(
c
,
s
.
matfilter
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionType
,
TYPE_EFFECT
),
true
)
end
function
s
.
matfilter
(
c
)
...
...
expansions/script/c33503600.lua
View file @
334a7d52
--拜托了,另一个我!
--
拜托了,另一个我!
local
m
=
33503600
local
cm
=
_G
[
"c"
..
m
]
Suyu_bh
=
Suyu_bh
or
{}
...
...
@@ -48,7 +48,7 @@ end
function
Suyu_bh
.
c_code
(
c
)
return
c
.
code
and
c
.
side_code
and
c
:
GetFlagEffect
(
16100000
)
==
0
end
--
----------------------------
-
--
-- -- -- -- -- -- -- -- -- -- -- -- -- --
-
if
not
cm
then
return
end
function
cm
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c5012615.lua
View file @
334a7d52
--学院都市
--
学院都市
local
s
,
id
,
o
=
GetID
()
c5012615
.
MoJin
=
true
function
s
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
5012604
)
--Activate
--
Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
...
...
@@ -11,7 +11,7 @@ function s.initial_effect(c)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
activate
)
c
:
RegisterEffect
(
e1
)
--level
--
level
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
...
...
@@ -21,7 +21,7 @@ function s.initial_effect(c)
e2
:
SetTarget
(
s
.
lvtg
)
e2
:
SetOperation
(
s
.
lvop
)
c
:
RegisterEffect
(
e2
)
--level
--
level
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e3
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
...
...
@@ -35,7 +35,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
s
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
.
MoJin
==
true
--and c:IsAbleToHand()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
.
MoJin
==
true
--
and c:IsAbleToHand()
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
@@ -44,13 +44,13 @@ end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
--if g:GetCount()>0 then
--
if g:GetCount()>0 then
if
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
0
))
then
local
sg
=
g
:
RandomSelect
(
tp
,
1
)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
end
--act limit
--
act limit
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
@@ -86,7 +86,7 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
desfilter
(
c
)
return
c
:
IsReleasable
()
--and c.MoJin==true
return
c
:
IsReleasable
()
--
and c.MoJin==true
end
function
s
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
...
...
expansions/script/c50218535.lua
View file @
334a7d52
--伏龙王-瑟拉米
--
伏龙王-瑟拉米
function
c50218535
.
initial_effect
(
c
)
--xyz summon
--
xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
6
,
2
)
c
:
EnableReviveLimit
()
--remove
--
remove
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
50218535
,
0
))
e1
:
SetCategory
(
CATEGORY_REMOVE
)
...
...
expansions/script/c50218540.lua
View file @
334a7d52
--伏龙王-沃凯诺
--
伏龙王-沃凯诺
function
c50218540
.
initial_effect
(
c
)
--xyz summon
--
xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
7
,
2
)
c
:
EnableReviveLimit
()
--atk
--
atk
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
50218540
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
...
...
expansions/script/c53799238.lua
View file @
334a7d52
...
...
@@ -2,6 +2,7 @@ local m=53799238
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"生前建构"
function
cm
.
initial_effect
(
c
)
--
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
...
...
expansions/script/c60040001.lua
View file @
334a7d52
--均衡之光·马龙
--
均衡之光·马龙
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--n
--
n
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAINING
)
...
...
@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e1
:
SetCondition
(
cm
.
con
)
e1
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e1
)
--to hand
--
to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_DRAW
)
...
...
@@ -25,7 +25,7 @@ function cm.initial_effect(c)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
--to hand
--
to hand
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e3
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
...
...
expansions/script/c60040002.lua
View file @
334a7d52
--禁断之腕·尼古拉
--
禁断之腕·尼古拉
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--n
--
n
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAINING
)
...
...
@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e1
:
SetCondition
(
cm
.
con
)
e1
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e1
)
--to hand
--
to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
@@ -25,7 +25,7 @@ function cm.initial_effect(c)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
--to hand
--
to hand
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
expansions/script/c60040003.lua
View file @
334a7d52
--夜月之刃·里欧德
--
夜月之刃·里欧德
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--n
--
n
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAINING
)
...
...
@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e1
:
SetCondition
(
cm
.
con
)
e1
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e1
)
--to hand
--
to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
...
...
@@ -25,7 +25,7 @@ function cm.initial_effect(c)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
--to hand
--
to hand
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e3
:
SetCategory
(
CATEGORY_TOHAND
)
...
...
expansions/script/c60040004.lua
View file @
334a7d52
--兽人战士·塞德斯
--
兽人战士·塞德斯
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--n
--
n
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAINING
)
...
...
@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e1
:
SetCondition
(
cm
.
con
)
e1
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e1
)
--to hand
--
to hand
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e3
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
...
...
expansions/script/c60040005.lua
View file @
334a7d52
--肃清的英雄·梅希亚
--
肃清的英雄·梅希亚
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--n
--
n
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAINING
)
...
...
@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e1
:
SetCondition
(
cm
.
con
)
e1
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e1
)
--to hand
--
to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
@@ -25,7 +25,7 @@ function cm.initial_effect(c)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
--to hand
--
to hand
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e3
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
...
...
expansions/script/c60040007.lua
View file @
334a7d52
--禁断的一击
--
禁断的一击
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--n
--
n
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAINING
)
...
...
@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e1
:
SetCondition
(
cm
.
con
)
e1
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e1
)
--Activate
--
Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DAMAGE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
...
...
@@ -18,7 +18,7 @@ function cm.initial_effect(c)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
--to hand
--
to hand
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e3
:
SetCategory
(
CATEGORY_TODECK
)
...
...
expansions/script/c60040010.lua
View file @
334a7d52
--仁义的执行
--
仁义的执行
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--n
--
n
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAINING
)
...
...
@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e1
:
SetCondition
(
cm
.
con
)
e1
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e1
)
--Activate
--
Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
...
...
@@ -19,7 +19,7 @@ function cm.initial_effect(c)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
--to hand
--
to hand
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e3
:
SetCategory
(
CATEGORY_TODECK
)
...
...
expansions/script/c60040017.lua
View file @
334a7d52
--天外之花·爱莲娜
--
天外之花·爱莲娜
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--n
--
n
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAINING
)
...
...
@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e1
:
SetCondition
(
cm
.
con
)
e1
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e1
)
--spsummon
--
spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
expansions/script/c60040019.lua
View file @
334a7d52
--荣耀之花·爱莲娜
--
荣耀之花·爱莲娜
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--synchro summon
--
synchro summon
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
1
)
c
:
EnableReviveLimit
()
--code
--
code
aux
.
EnableChangeCode
(
c
,
m
-
2
,
LOCATION_MZONE
+
LOCATION_GRAVE
)
--to hand
--
to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
...
...
expansions/script/c60040022.lua
View file @
334a7d52
--苍蓝反叛者·坦忒拉
--
苍蓝反叛者·坦忒拉
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--link summon
--
link summon
aux
.
AddLinkProcedure
(
c
,
nil
,
2
,
2
,
cm
.
lcheck
)
c
:
EnableReviveLimit
()
--to hand
--
to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
78080961
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
...
...
@@ -16,7 +16,7 @@ function cm.initial_effect(c)
e1
:
SetTarget
(
cm
.
thtg
)
e1
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e1
)
--change effect type
--
change effect type
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
@@ -24,7 +24,7 @@ function cm.initial_effect(c)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
1
,
0
)
c
:
RegisterEffect
(
e2
)
--
--
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -63,12 +63,12 @@ end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
RegisterFlagEffect
(
tp
,
m
,
0
,
0
,
1
)
--Debug.Message("1")
--
Debug.Message("1")
local
allg
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
0x1ff
,
0x1ff
,
nil
,
TYPE_MONSTER
)
local
allc
=
allg
:
GetFirst
()
--Debug.Message(#allg)
--
Debug.Message(#allg)
for
i
=
1
,
#
allg
do
--special summon
--
special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
...
...
expansions/script/c60040026.lua
View file @
334a7d52
--绯红抗战者·莫诺
--
绯红抗战者·莫诺
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--link summon
--
link summon
aux
.
AddLinkProcedure
(
c
,
cm
.
mfilter
,
1
)
c
:
EnableReviveLimit
()
--tohand
--
tohand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
...
...
@@ -16,7 +16,7 @@ function cm.initial_effect(c)
e1
:
SetTarget
(
cm
.
thtg1
)
e1
:
SetOperation
(
cm
.
thop1
)
c
:
RegisterEffect
(
e1
)
--spsummon
--
spsummon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
@@ -58,8 +58,8 @@ function cm.sfilter(c,tp)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
--Debug.Message(eg:IsExists(cm.sfilter,1,nil,tp))
--Debug.Message(eg:IsContains(e:GetHandler()))
--
Debug.Message(eg:IsExists(cm.sfilter,1,nil,tp))
--
Debug.Message(eg:IsContains(e:GetHandler()))
return
eg
:
IsExists
(
cm
.
sfilter
,
1
,
nil
,
tp
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
end
function
cm
.
filter
(
c
,
e
,
tp
)
...
...
expansions/script/c60040029.lua
View file @
334a7d52
--丹紫抵御者·安涅儿
--
丹紫抵御者·安涅儿
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--link summon
--
link summon
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLinkSetCard
,
0x9629
),
2
,
2
)
--untargetable
--
untargetable
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
...
...
@@ -12,7 +12,7 @@ function cm.initial_effect(c)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
--spsummon
--
spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
...
...
@@ -24,7 +24,7 @@ function cm.initial_effect(c)
e1
:
SetTarget
(
cm
.
hsptg
)
e1
:
SetOperation
(
cm
.
hspop
)
c
:
RegisterEffect
(
e1
)
--destroy
--
destroy
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
...
...
expansions/script/c60040035.lua
View file @
334a7d52
--灾乱女神·阿莱克托
--
灾乱女神·阿莱克托
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--destroy
--
destroy
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
...
...
@@ -12,7 +12,7 @@ function cm.initial_effect(c)
e5
:
SetTarget
(
cm
.
hsptg
)
e5
:
SetOperation
(
cm
.
hspop
)
c
:
RegisterEffect
(
e5
)
--spsummon
--
spsummon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
...
...
@@ -22,7 +22,7 @@ function cm.initial_effect(c)
e3
:
SetTarget
(
cm
.
sptg2
)
e3
:
SetOperation
(
cm
.
spop2
)
c
:
RegisterEffect
(
e3
)
--tohand
--
tohand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
...
...
expansions/script/c60040037.lua
View file @
334a7d52
--埃亚隆的残骸
--
埃亚隆的残骸
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--Activate
--
Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
...
...
@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e1
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
--spsummon
--
spsummon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
expansions/script/c60040038.lua
View file @
334a7d52
--清澄的苍蓝·坦忒拉
--
清澄的苍蓝·坦忒拉
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--to hand
--
to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
--spsummon
--
spsummon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
...
...
@@ -26,7 +26,7 @@ function cm.initial_effect(c)
e3
:
SetTarget
(
cm
.
sptg2
)
e3
:
SetOperation
(
cm
.
spop2
)
c
:
RegisterEffect
(
e3
)
--search
--
search
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
...
...
expansions/script/c60040039.lua
View file @
334a7d52
--创造的丹紫·安涅儿
--
创造的丹紫·安涅儿
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--special summon
--
special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
43863925
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_RECOVER
)
...
...
@@ -11,7 +11,7 @@ function cm.initial_effect(c)
e1
:
SetTarget
(
cm
.
efftg
)
e1
:
SetOperation
(
cm
.
effop
)
c
:
RegisterEffect
(
e1
)
--spsummon
--
spsummon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
...
...
@@ -22,7 +22,7 @@ function cm.initial_effect(c)
e3
:
SetTarget
(
cm
.
sptg2
)
e3
:
SetOperation
(
cm
.
spop2
)
c
:
RegisterEffect
(
e3
)
--search
--
search
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
...
...
expansions/script/c60040040.lua
View file @
334a7d52
--悠久的绯红·莫诺
--
悠久的绯红·莫诺
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--Activate
--
Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
...
...
@@ -24,7 +24,7 @@ function cm.initial_effect(c)
e2
:
SetTarget
(
cm
.
target2
)
e2
:
SetOperation
(
cm
.
activate2
)
c
:
RegisterEffect
(
e2
)
--search
--
search
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
...
...
expansions/script/c60040042.lua
View file @
334a7d52
--再诞的灾乱·阿莱克托
--
再诞的灾乱·阿莱克托
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--destroy
--
destroy
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
...
...
@@ -12,7 +12,7 @@ function cm.initial_effect(c)
e5
:
SetTarget
(
cm
.
hsptg
)
e5
:
SetOperation
(
cm
.
hspop
)
c
:
RegisterEffect
(
e5
)
--equip
--
equip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetCategory
(
CATEGORY_EQUIP
)
...
...
@@ -26,7 +26,7 @@ function cm.initial_effect(c)
e2
:
SetTarget
(
cm
.
eqtg
)
e2
:
SetOperation
(
cm
.
eqop
)
c
:
RegisterEffect
(
e2
)
--spsummon
--
spsummon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
...
...
expansions/script/c60040049.lua
View file @
334a7d52
--钢铁的希望
--
钢铁的希望
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--Activate
--
Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
...
...
expansions/script/c60040052.lua
View file @
334a7d52
--那塔拉的大树
--
那塔拉的大树
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--Activate
--
Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
--spsummon
--
spsummon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
...
...
expansions/script/c60040055.lua
View file @
334a7d52
--元素玛纳
--
元素玛纳
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--Activate
--
Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
...
...
expansions/script/c60040056.lua
View file @
334a7d52
--野性玛纳
--
野性玛纳
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--Activate
--
Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
...
...
expansions/script/c60040057.lua
View file @
334a7d52
--苏生玛纳
--
苏生玛纳
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--Activate
--
Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
...
...
expansions/script/c60040061.lua
View file @
334a7d52
--回归的拥抱·拉缇卡
--
回归的拥抱·拉缇卡
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--to hand
--
to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
--draw
--
draw
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_DRAW
)
...
...
@@ -41,15 +41,15 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
--local dg=Duel.GetMatchingGroup(cm.fil,tp,LOCATION_ONFIELD,0,nil):Select(tp,1,1,nil)
--if Duel.Destroy(dg,REASON_EFFECT)~=0 then
--
local dg=Duel.GetMatchingGroup(cm.fil,tp,LOCATION_ONFIELD,0,nil):Select(tp,1,1,nil)
--
if Duel.Destroy(dg,REASON_EFFECT)~=0 then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
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
--
end
end
function
cm
.
drfilter
(
c
,
e
)
return
c
:
IsSetCard
(
0xa629
)
and
c
:
IsAbleToDeck
()
and
c
:
IsCanBeEffectTarget
(
e
)
...
...
expansions/script/c60040066.lua
View file @
334a7d52
--森林公主·米丝特莉娜
--
森林公主·米丝特莉娜
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--spsummon proc
--
spsummon proc
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
...
...
@@ -12,7 +12,7 @@ function cm.initial_effect(c)
e1
:
SetOperation
(
cm
.
spop
)
e1
:
SetValue
(
SUMMON_VALUE_SELF
)
c
:
RegisterEffect
(
e1
)
--to hand
--
to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
...
...
@@ -28,7 +28,7 @@ function cm.initial_effect(c)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
--to hand
--
to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
expansions/script/c60040067.lua
View file @
334a7d52
--光辉剑击
--
光辉剑击
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--Activate
--
Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
...
...
expansions/script/c60040069.lua
View file @
334a7d52
--森林参谋长·喵鲁
--
森林参谋长·喵鲁
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--Destroy
--
Destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetCategory
(
CATEGORY_DESTROY
)
...
...
@@ -16,7 +16,7 @@ function cm.initial_effect(c)
e2
:
SetOperation
(
cm
.
desop
)
c
:
RegisterEffect
(
e2
)
--atk up
--
atk up
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0xa629
))
...
...
expansions/script/c60040074.lua
View file @
334a7d52
--母之慈爱
--
母之慈爱
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--Activate
--
Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
--to hand
--
to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -30,7 +30,7 @@ function cm.initial_effect(c)
end
end
function
cm
.
filter
(
c
)
return
c
:
IsSetCard
(
0xa629
)
and
c
:
IsType
(
TYPE_MONSTER
)
-- and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return
c
:
IsSetCard
(
0xa629
)
and
c
:
IsType
(
TYPE_MONSTER
)
--
and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Debug
.
Message
(
"1"
)
...
...
expansions/script/c60040079.lua
View file @
334a7d52
--收获的参谋长·喵鲁
--
收获的参谋长·喵鲁
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--code
--
code
aux
.
EnableChangeCode
(
c
,
60040069
,
LOCATION_MZONE
+
LOCATION_GRAVE
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -11,7 +11,7 @@ function cm.initial_effect(c)
e2
:
SetTarget
(
cm
.
indtg
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
--to hand
--
to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_DRAW
+
CATEGORY_DAMAGE
+
CATEGORY_RECOVER
+
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
...
...
expansions/script/c88123015.lua
View file @
334a7d52
--永远的魔女 朝比奈千夜
--
永远的魔女 朝比奈千夜
local
m
=
88123015
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c81000000.lua"
)
function
cm
.
initial_effect
(
c
)
--synchro summon
--
synchro summon
aux
.
AddSynchroProcedure
(
c
,
cm
.
sfilter
,
aux
.
NonTuner
(
cm
.
tfilter
),
2
)
c
:
EnableReviveLimit
()
--direct attack
--
direct attack
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
c
:
RegisterEffect
(
e0
)
--special summon
--
special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
...
...
@@ -21,7 +21,7 @@ function cm.initial_effect(c)
e1
:
SetTarget
(
cm
.
atktg
)
e1
:
SetOperation
(
cm
.
atkop
)
c
:
RegisterEffect
(
e1
)
--negate
--
negate
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_NEGATE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
...
...
expansions/script/c96071064.lua
View file @
334a7d52
--侍神·京都堺 书翁
local
m
=
96071064
--卡密编号
local
set
=
0x5ef1
--侍神·京都堺字段
--
侍神·京都堺 书翁
local
m
=
96071064
--
卡密编号
local
set
=
0x5ef1
--
侍神·京都堺字段
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--灵摆属性
--to ex and to hand
--
pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--
灵摆属性
--
to ex and to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOEXTRA
+
CATEGORY_DICE
+
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
e1
:
SetTarget
(
cm
.
tehtg
)
e1
:
SetOperation
(
cm
.
tehop
)
c
:
RegisterEffect
(
e1
)
--tohand
--
tohand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
...
...
@@ -28,7 +28,7 @@ function cm.initial_effect(c)
e2
:
SetTarget
(
cm
.
seqtg
)
e2
:
SetOperation
(
cm
.
seqop
)
c
:
RegisterEffect
(
e2
)
--recover/damage
--
recover/damage
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_COIN
+
CATEGORY_DICE
+
CATEGORY_DAMAGE
+
CATEGORY_RECOVER
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
...
...
@@ -40,7 +40,7 @@ function cm.initial_effect(c)
end
cm
.
toss_dice
=
true
cm
.
toss_coin
=
true
--to ex and to hand
--
to ex and to hand
function
cm
.
tefil
(
c
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToExtra
()
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xef1
)
and
not
c
:
IsCode
(
m
)
end
...
...
@@ -70,7 +70,7 @@ function cm.tehop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ShuffleDeck
(
tp
)
end
end
--tohand
--
tohand
function
cm
.
seqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsFaceup
()
end
...
...
@@ -115,7 +115,7 @@ function cm.actcon(e)
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_EFFECT_ENABLED
)
and
not
Duel
.
IsExistingMatchingCard
(
cm
.
actfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
--recover/damage
--
recover/damage
function
cm
.
gabcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
re
and
c
:
IsSetCard
(
0xef1
)
...
...
expansions/script/c96071066.lua
View file @
334a7d52
--侍神·京都堺 座敷童子
local
m
=
96071066
--卡密编号
local
set
=
0x5ef1
--侍神·京都堺字段
--
侍神·京都堺 座敷童子
local
m
=
96071066
--
卡密编号
local
set
=
0x5ef1
--
侍神·京都堺字段
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--灵摆属性
--synchro limit
--
pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--
灵摆属性
--
synchro limit
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetValue
(
cm
.
synlimit
)
c
:
RegisterEffect
(
e0
)
--special summon
--
special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
@@ -23,7 +23,7 @@ function cm.initial_effect(c)
e1
:
SetTarget
(
cm
.
sptg
)
e1
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e1
)
--draw
--
draw
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
3
))
e2
:
SetCategory
(
CATEGORY_TOHAND
)
...
...
@@ -35,7 +35,7 @@ function cm.initial_effect(c)
e2
:
SetTarget
(
cm
.
thtg
)
e2
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e2
)
--special summon/to hand
--
special summon/to hand
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e3
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOHAND
)
...
...
@@ -47,12 +47,12 @@ function cm.initial_effect(c)
e3
:
SetOperation
(
cm
.
stpop
)
c
:
RegisterEffect
(
e3
)
end
--synchro limit
--
synchro limit
function
cm
.
synlimit
(
e
,
c
)
if
not
c
then
return
false
end
return
not
c
:
IsSetCard
(
0xef1
)
end
--special summon
--
special summon
function
cm
.
descfilter
(
c
)
return
c
:
IsSetCard
(
0xef1
)
and
not
c
:
IsPublic
()
end
...
...
@@ -77,7 +77,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
--draw
--
draw
function
cm
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsFaceup
()
end
...
...
@@ -109,7 +109,7 @@ end
function
cm
.
splimit
(
e
,
c
)
return
not
c
:
IsSetCard
(
0xef1
)
end
--special summon/to hand
--
special summon/to hand
function
cm
.
stpcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
re
and
c
:
IsSetCard
(
0xef1
)
...
...
expansions/script/c96071081.lua
View file @
334a7d52
--侍神·京都堺 面灵气
local
m
=
96071081
--卡密编号
local
set
=
0x5ef1
--侍神·京都堺字段
--
侍神·京都堺 面灵气
local
m
=
96071081
--
卡密编号
local
set
=
0x5ef1
--
侍神·京都堺字段
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
c
:
EnableCounterPermit
(
0x13
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--灵摆属性
--synchro summon
--
pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--
灵摆属性
--
synchro summon
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0xef1
),
aux
.
NonTuner
(
Card
.
IsType
,
TYPE_PENDULUM
),
1
,
99
)
c
:
EnableReviveLimit
()
--dice
--
dice
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_COIN
)
...
...
@@ -22,7 +22,7 @@ function cm.initial_effect(c)
e1
:
SetTarget
(
cm
.
adestg
)
e1
:
SetOperation
(
cm
.
adesop
)
c
:
RegisterEffect
(
e1
)
--handes
--
handes
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
...
...
@@ -33,7 +33,7 @@ function cm.initial_effect(c)
e2
:
SetTarget
(
cm
.
hdtg
)
e2
:
SetOperation
(
cm
.
hdop
)
c
:
RegisterEffect
(
e2
)
--add counter
--
add counter
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -46,7 +46,7 @@ function cm.initial_effect(c)
e4
:
SetCountLimit
(
2
)
e4
:
SetCode
(
EVENT_SPSUMMON
)
c
:
RegisterEffect
(
e4
)
--Activate(effect)
--
Activate(effect)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -55,7 +55,7 @@ function cm.initial_effect(c)
e5
:
SetCondition
(
cm
.
condition
)
e5
:
SetOperation
(
cm
.
ctop
)
c
:
RegisterEffect
(
e5
)
--dice1
--
dice1
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e6
:
SetCategory
(
CATEGORY_COIN
)
...
...
@@ -66,7 +66,7 @@ function cm.initial_effect(c)
e6
:
SetTarget
(
cm
.
destg
)
e6
:
SetOperation
(
cm
.
desop
)
c
:
RegisterEffect
(
e6
)
--dice2
--
dice2
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetDescription
(
aux
.
Stringid
(
m
,
6
))
e7
:
SetCategory
(
CATEGORY_COIN
)
...
...
@@ -77,7 +77,7 @@ function cm.initial_effect(c)
e7
:
SetTarget
(
cm
.
destg1
)
e7
:
SetOperation
(
cm
.
desop1
)
c
:
RegisterEffect
(
e7
)
--dice3
--
dice3
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetCategory
(
CATEGORY_COIN
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
...
...
@@ -88,7 +88,7 @@ function cm.initial_effect(c)
e8
:
SetTarget
(
cm
.
destg2
)
e8
:
SetOperation
(
cm
.
desop2
)
c
:
RegisterEffect
(
e8
)
--damage
--
damage
local
e9
=
Effect
.
CreateEffect
(
c
)
e9
:
SetDescription
(
aux
.
Stringid
(
m
,
3
))
e9
:
SetCategory
(
CATEGORY_DAMAGE
)
...
...
@@ -104,7 +104,7 @@ function cm.initial_effect(c)
e9
:
SetOperation
(
cm
.
damop
)
c
:
RegisterEffect
(
e9
)
end
--dice
--
dice
function
cm
.
adescon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
end
...
...
@@ -157,7 +157,7 @@ function cm.adesop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
--handes
--
handes
function
cm
.
cfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_DECK
)
end
...
...
@@ -173,20 +173,20 @@ function cm.hdop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
end
--add counter
--
add counter
function
cm
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
ep
and
Duel
.
GetCurrentChain
()
==
0
end
function
cm
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x13
,
1
)
end
--Activate(effect)
--
Activate(effect)
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
(
not
re
or
re
:
GetOwner
()
~=
c
)
end
--dice1
--
dice1
function
cm
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
...
...
@@ -219,7 +219,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_EFFECT
)
end
end
--dice2
--
dice2
function
cm
.
destg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
...
...
@@ -252,7 +252,7 @@ function cm.desop1(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_EFFECT
)
end
end
--dice3
--
dice3
function
cm
.
condition2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
...
...
@@ -290,7 +290,7 @@ function cm.desop2(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_EFFECT
)
end
end
--damage
--
damage
function
cm
.
damfilter
(
c
)
return
c
:
GetCounter
(
0x13
)
>
0
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment