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
Soulgamer
ygopro-222DIY-cards
Commits
66e3c25e
Commit
66e3c25e
authored
Feb 14, 2024
by
花桃白音
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix116s128s313s124&307,update cdb313s
parent
e63f546a
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
107 additions
and
87 deletions
+107
-87
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c11600067.lua
expansions/script/c11600067.lua
+5
-5
expansions/script/c11600090.lua
expansions/script/c11600090.lua
+8
-8
expansions/script/c12400021.lua
expansions/script/c12400021.lua
+74
-58
expansions/script/c12812001.lua
expansions/script/c12812001.lua
+1
-1
expansions/script/c12812002.lua
expansions/script/c12812002.lua
+1
-1
expansions/script/c12812003.lua
expansions/script/c12812003.lua
+1
-1
expansions/script/c12812004.lua
expansions/script/c12812004.lua
+1
-1
expansions/script/c12812005.lua
expansions/script/c12812005.lua
+5
-2
expansions/script/c12812006.lua
expansions/script/c12812006.lua
+1
-1
expansions/script/c12812007.lua
expansions/script/c12812007.lua
+1
-1
expansions/script/c12812010.lua
expansions/script/c12812010.lua
+1
-1
expansions/script/c30700008.lua
expansions/script/c30700008.lua
+3
-2
expansions/script/c31300020.lua
expansions/script/c31300020.lua
+1
-1
expansions/script/c31300023.lua
expansions/script/c31300023.lua
+1
-1
expansions/script/c31300024.lua
expansions/script/c31300024.lua
+1
-1
expansions/script/c31300025.lua
expansions/script/c31300025.lua
+1
-1
expansions/script/c31300026.lua
expansions/script/c31300026.lua
+1
-1
No files found.
expansions/222DIY.cdb
View file @
66e3c25e
No preview for this file type
expansions/script/c11600067.lua
View file @
66e3c25e
...
...
@@ -50,20 +50,20 @@ function s.spfilter(c,e,tp)
return
c
:
IsFaceup
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCode
(
m
)
and
(
Duel
.
IsExistingMatchingCard
(
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
nil
,
mg
)
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
mg
,
TYPE_SYNCHRO
)
>
0
end
function
s
.
mtfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
1
)
and
(
c
:
IsLocation
(
LOCATION_MZONE
)
or
c
:
IsAbleToRemove
())
return
c
:
IsLevelAbove
(
1
)
and
((
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
)
or
c
:
IsAbleToRemove
())
end
function
s
.
scfilter
(
c
)
return
c
:
IsSetCard
(
0x3540
)
and
c
:
IsSynchroSummonable
(
nil
)
function
s
.
scfilter
(
c
,
mg
)
return
c
:
IsSetCard
(
0x3540
)
and
c
:
IsSynchroSummonable
(
nil
,
mg
)
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
mg
=
Duel
.
GetMatchingGroup
(
s
.
mtfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
nil
)
if
chk
==
0
then
return
(
Duel
.
IsExistingMatchingCard
(
s
.
scfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
s
.
scfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
nil
,
mg
)
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
mg
,
TYPE_SYNCHRO
)
>
0
end
if
chk
==
0
then
return
(
Duel
.
IsExistingMatchingCard
(
s
.
scfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
s
.
scfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
mg
)
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
mg
,
TYPE_SYNCHRO
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
mg
=
Duel
.
GetMatchingGroup
(
s
.
mtfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
nil
)
local
hg
=
Duel
.
GetMatchingGroup
(
s
.
scfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
nil
,
mg
)
local
hg
=
Duel
.
GetMatchingGroup
(
s
.
scfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
mg
)
if
hg
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
hg
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
expansions/script/c11600090.lua
View file @
66e3c25e
--异邦岩峰 荧
local
s
,
id
=
GetID
()
function
s
.
initial_effect
(
c
)
c
:
EnableCounterPermit
(
0x54
0
)
c
:
EnableCounterPermit
(
0x54
2
)
--link summon
aux
.
AddLinkProcedure
(
c
,
s
.
mfilter
,
1
,
1
)
--set
...
...
@@ -52,18 +52,18 @@ function s.stcon(e,tp,eg,ep,ev,re,r,rp)
end
function
s
.
addct
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
2
,
0
,
0x54
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
2
,
0
,
0x54
2
)
end
function
s
.
addc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
e
:
GetHandler
():
AddCounter
(
0x54
0
,
1
)
e
:
GetHandler
():
AddCounter
(
0x54
2
,
1
)
end
end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0x54
0
,
1
,
REASON_COST
)
end
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0x54
2
,
1
,
REASON_COST
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
RemoveCounter
(
tp
,
1
,
0
,
0x54
0
,
1
,
REASON_COST
)
Duel
.
RemoveCounter
(
tp
,
1
,
0
,
0x54
2
,
1
,
REASON_COST
)
end
function
s
.
lvfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
0
...
...
@@ -97,9 +97,9 @@ function s.stop(e,tp,eg,ep,ev,re,r,rp)
end
function
s
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0x54
0
,
5
,
REASON_COST
)
end
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0x54
2
,
5
,
REASON_COST
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
RemoveCounter
(
tp
,
1
,
0
,
0x54
0
,
5
,
REASON_COST
)
Duel
.
RemoveCounter
(
tp
,
1
,
0
,
0x54
2
,
5
,
REASON_COST
)
end
function
s
.
filter1
(
c
,
e
,
sc
,
chkx
)
...
...
@@ -190,6 +190,6 @@ function s.rstop(e,tp,eg,ep,ev,re,r,rp)
end
function
s
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x54
0
,
5
)
e
:
GetHandler
():
AddCounter
(
0x54
2
,
5
)
end
\ No newline at end of file
expansions/script/c12400021.lua
View file @
66e3c25e
--幽灵的歧路·拉卡德勒
local
m
=
12400021
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
local
s
,
id
=
GetID
()
function
s
.
initial_effect
(
c
)
--special summon proc
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetCountLimit
(
1
,
m
)
e2
:
SetCountLimit
(
1
,
id
)
e2
:
SetRange
(
LOCATION_DECK
)
e2
:
SetCondition
(
cm
.
spcon
)
e2
:
SetCondition
(
s
.
spcon
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e4
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e4
:
SetCondition
(
cm
.
actcon
)
e4
:
SetOperation
(
cm
.
actop
)
e4
:
SetCondition
(
s
.
actcon
)
e4
:
SetOperation
(
s
.
actop
)
e4
:
SetLabelObject
(
e2
)
c
:
RegisterEffect
(
e4
)
--special summon
--
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
Set
Type
(
EFFECT_TYPE_FIELD
)
e1
:
Set
Code
(
EFFECT_SPSUMMON_PROC
)
e1
:
Set
Property
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
Set
Range
(
LOCATION_HAND
)
e1
:
Set
Condition
(
cm
.
spcon2
)
e1
:
Set
Category
(
CATEGORY_TOGRAVE
)
e1
:
Set
Type
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
Set
Code
(
EVENT_LEAVE_FIELD
)
e1
:
Set
Condition
(
s
.
tkcon
)
e1
:
Set
Operation
(
s
.
tkop
)
c
:
RegisterEffect
(
e1
)
--damage
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -35,15 +34,15 @@ function cm.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetCondition
(
cm
.
damcon
)
e3
:
SetTarget
(
cm
.
damtg
)
e3
:
SetOperation
(
cm
.
damop
)
e3
:
SetCondition
(
s
.
damcon
)
e3
:
SetTarget
(
s
.
damtg
)
e3
:
SetOperation
(
s
.
damop
)
c
:
RegisterEffect
(
e3
)
--cannot attack
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e5
:
SetOperation
(
cm
.
atklimit
)
e5
:
SetOperation
(
s
.
atklimit
)
c
:
RegisterEffect
(
e5
)
--attack limit
local
e6
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -51,78 +50,95 @@ function cm.initial_effect(c)
e6
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e6
:
SetValue
(
cm
.
atlimit
)
e6
:
SetValue
(
s
.
atlimit
)
c
:
RegisterEffect
(
e6
)
if
not
cm
.
global_check
then
cm
.
global_check
=
true
if
not
s
.
global_check
then
s
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_
REMOVE
)
ge1
:
SetOperation
(
cm
.
checkop
)
ge1
:
SetCode
(
EVENT_
DESTROYED
)
ge1
:
SetOperation
(
s
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
cm
.
ckfilter1
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_FIEND
)
and
c
:
IsPreviousLocation
(
LOCATION_
HAND
+
LOCATION_GRAVE
)
function
s
.
ckfilter1
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_FIEND
)
and
c
:
IsPreviousLocation
(
LOCATION_
MZONE
)
and
c
:
IsSummonLocation
(
LOCATION_HAND
)
and
c
:
IsSummonType
(
TYPE_SPSUMMON
)
end
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
cm
.
ckfilter1
,
1
,
nil
)
then
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
function
s
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
s
.
ckfilter1
,
1
,
nil
)
then
Duel
.
RegisterFlagEffect
(
tp
,
id
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
cm
.
spcon
(
e
,
c
)
function
s
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetFlagEffect
(
tp
,
m
)
>=
2
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetFlagEffect
(
tp
,
id
)
>=
2
end
function
cm
.
actcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
actcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
te
=
e
:
GetLabelObject
()
return
re
==
te
and
e
:
GetHandler
():
IsAbleToHand
()
end
function
cm
.
ckfilter1
(
c
)
return
c
:
IsFaceup
()
and
not
c
:
IsType
(
TYPE_LINK
)
function
s
.
ckfilter1
(
c
)
return
c
:
IsFaceup
()
and
not
c
:
IsType
(
TYPE_LINK
)
end
function
cm
.
actop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
actop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
SendtoHand
(
c
,
tp
,
REASON_EFFECT
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
ckfilter1
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
SendtoHand
(
c
,
tp
,
REASON_EFFECT
)
end
function
s
.
tkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousPosition
(
POS_FACEUP
)
end
function
s
.
tkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
ckfilter1
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
g
:
GetCount
()
>
0
then
local
tc
=
g
:
RandomSelect
(
tp
,
1
):
GetFirst
()
local
tc
=
g
:
RandomSelect
(
tp
,
1
):
GetFirst
()
local
predef
=
tc
:
GetDefense
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e1
:
SetValue
(
-
3
000
)
e1
:
SetValue
(
-
2
000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
if
predef
~=
0
and
tc
:
IsDefense
(
0
)
then
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
end
end
end
function
cm
.
spcon2
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
GetTurnCount
()
>=
7
and
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
function
s
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_HAND
)
end
function
cm
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnCount
()
>=
7
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_HAND
)
function
s
.
ckfilter3
(
c
)
return
c
:
IsFaceup
()
and
not
(
c
:
IsDefense
(
0
)
or
c
:
IsType
(
TYPE_LINK
))
end
function
cm
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
())
end
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
5000
)
function
s
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
ckfilter3
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
())
end
local
g
=
Duel
.
GetMatchingGroup
(
s
.
ckfilter3
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
500
)
end
function
cm
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
aux
.
ExceptThisCard
(
e
))
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
5000
,
REASON_EFFECT
)
function
s
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
ckfilter3
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
tg
=
Group
.
CreateGroup
()
if
g
:
GetCount
()
>
0
then
local
tc
=
g
:
GetFirst
()
while
tc
do
local
predef
=
tc
:
GetDefense
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e1
:
SetValue
(
-
1000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
if
predef
~=
0
and
tc
:
IsDefense
(
0
)
then
tg
:
AddCard
(
tc
)
end
tc
=
g
:
GetNext
()
end
end
if
tg
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
tg
,
REASON_EFFECT
)
end
Duel
.
Damage
(
1
-
tp
,
500
,
REASON_EFFECT
)
end
function
cm
.
atklimit
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
atklimit
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
...
...
@@ -130,7 +146,7 @@ function cm.atklimit(e,tp,eg,ep,ev,re,r,rp)
e
:
GetHandler
():
RegisterEffect
(
e1
)
end
function
cm
.
atlimit
(
e
,
c
)
function
s
.
atlimit
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
end
...
...
expansions/script/c12812001.lua
View file @
66e3c25e
...
...
@@ -7,7 +7,7 @@ function c12812001.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
cm
.
psplimit
)
c
:
RegisterEffect
(
e1
)
...
...
expansions/script/c12812002.lua
View file @
66e3c25e
...
...
@@ -7,7 +7,7 @@ function c12812002.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
cm
.
psplimit
)
c
:
RegisterEffect
(
e1
)
...
...
expansions/script/c12812003.lua
View file @
66e3c25e
...
...
@@ -7,7 +7,7 @@ function c12812003.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
cm
.
psplimit
)
c
:
RegisterEffect
(
e1
)
...
...
expansions/script/c12812004.lua
View file @
66e3c25e
...
...
@@ -7,7 +7,7 @@ function c12812004.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
cm
.
psplimit
)
c
:
RegisterEffect
(
e1
)
...
...
expansions/script/c12812005.lua
View file @
66e3c25e
...
...
@@ -3,7 +3,7 @@ local m=12812005
local
cm
=
_G
[
"c"
..
m
]
function
c12812005
.
initial_effect
(
c
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0xa73
)
,
4
,
2
)
aux
.
AddXyzProcedure
(
c
,
nil
,
4
,
2
)
c
:
EnableReviveLimit
()
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
,
false
)
...
...
@@ -11,7 +11,7 @@ function c12812005.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
cm
.
psplimit
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -40,6 +40,9 @@ function c12812005.initial_effect(c)
e4
:
SetTarget
(
cm
.
pentg
)
e4
:
SetOperation
(
cm
.
penop
)
c
:
RegisterEffect
(
e4
)
--
cm
.
self_summon_effect
=
e3
end
function
cm
.
psplimit
(
e
,
c
,
tp
,
sumtp
,
sumpos
)
return
not
c
:
IsSetCard
(
0xa73
)
and
bit
.
band
(
sumtp
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
...
...
expansions/script/c12812006.lua
View file @
66e3c25e
...
...
@@ -8,7 +8,7 @@ function c12812006.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
cm
.
psplimit
)
c
:
RegisterEffect
(
e1
)
...
...
expansions/script/c12812007.lua
View file @
66e3c25e
...
...
@@ -7,7 +7,7 @@ function c12812007.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
cm
.
psplimit
)
c
:
RegisterEffect
(
e1
)
...
...
expansions/script/c12812010.lua
View file @
66e3c25e
...
...
@@ -7,7 +7,7 @@ function c12812010.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
cm
.
psplimit
)
c
:
RegisterEffect
(
e1
)
...
...
expansions/script/c30700008.lua
View file @
66e3c25e
...
...
@@ -55,13 +55,14 @@ function cm.costfilter(c)
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
function
cm
.
gvcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
and
(
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
)
end
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsDiscardable
()
and
(
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
or
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
)
end
if
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
30700037
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DEATTACHFROM
)
local
c
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
):
GetFirst
()
c
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
else
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
c
)
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
...
...
expansions/script/c31300020.lua
View file @
66e3c25e
...
...
@@ -120,7 +120,7 @@ function s.filter2(c,e,tp,m,f,chkf,check)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
end
function
s
.
checkfilter
(
c
)
return
c
:
GetBaseAttack
(
35
)
and
c
:
IsFaceup
()
return
c
:
GetBaseAttack
(
)
==
35
and
c
:
IsFaceup
()
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c31300023.lua
View file @
66e3c25e
...
...
@@ -86,7 +86,7 @@ function s.filter2(c,e,tp,m,f,chkf,check)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
end
function
s
.
checkfilter
(
c
)
return
c
:
GetBaseAttack
(
35
)
and
c
:
IsFaceup
()
return
c
:
GetBaseAttack
(
)
==
35
and
c
:
IsFaceup
()
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c31300024.lua
View file @
66e3c25e
...
...
@@ -71,7 +71,7 @@ function s.filter2(c,e,tp,m,f,chkf,check)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
end
function
s
.
checkfilter
(
c
)
return
c
:
GetBaseAttack
(
35
)
and
c
:
IsFaceup
()
return
c
:
GetBaseAttack
(
)
==
35
and
c
:
IsFaceup
()
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c31300025.lua
View file @
66e3c25e
...
...
@@ -70,7 +70,7 @@ function s.filter2(c,e,tp,m,f,chkf,check)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
end
function
s
.
checkfilter
(
c
)
return
c
:
GetBaseAttack
(
35
)
and
c
:
IsFaceup
()
return
c
:
GetBaseAttack
(
)
==
35
and
c
:
IsFaceup
()
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c31300026.lua
View file @
66e3c25e
...
...
@@ -79,7 +79,7 @@ function s.filter2(c,e,tp,m,f,chkf,check)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
end
function
s
.
checkfilter
(
c
)
return
c
:
GetBaseAttack
(
35
)
and
c
:
IsFaceup
()
return
c
:
GetBaseAttack
(
)
==
35
and
c
:
IsFaceup
()
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
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