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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
d94ca6b7
Commit
d94ca6b7
authored
Jun 29, 2025
by
Huangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
36aeb326
Pipeline
#38257
passed with stages
in 88 minutes and 32 seconds
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
154 additions
and
88 deletions
+154
-88
expansions/FiNALE.cdb
expansions/FiNALE.cdb
+0
-0
expansions/script/c12816130.lua
expansions/script/c12816130.lua
+48
-44
expansions/script/c16104408.lua
expansions/script/c16104408.lua
+35
-37
expansions/script/c60002191.lua
expansions/script/c60002191.lua
+1
-1
expansions/script/c60010016.lua
expansions/script/c60010016.lua
+50
-0
expansions/script/c60151908.lua
expansions/script/c60151908.lua
+4
-4
expansions/script/c60151909.lua
expansions/script/c60151909.lua
+1
-1
expansions/script/c65810045.lua
expansions/script/c65810045.lua
+1
-1
expansions/script/c79250061.lua
expansions/script/c79250061.lua
+14
-0
No files found.
expansions/FiNALE.cdb
View file @
d94ca6b7
No preview for this file type
expansions/script/c12816130.lua
View file @
d94ca6b7
...
...
@@ -37,6 +37,7 @@ function s.initial_effect(c)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e0
:
SetType
(
EFFECT_TYPE_IGNITION
)
e0
:
SetCategory
(
CATEGORY_SUMMON
)
e0
:
SetRange
(
LOCATION_PZONE
)
e0
:
SetCountLimit
(
1
,
id
)
e0
:
SetTarget
(
s
.
e2tg
)
...
...
@@ -49,9 +50,8 @@ function s.initial_effect(c)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_CHAIN
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
s
.
pencon
)
e1
:
SetCost
(
s
.
pencost
)
e1
:
SetTarget
(
s
.
pentg
)
e1
:
SetOperation
(
s
.
penop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -72,34 +72,16 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e3
)
if
not
s
.
global_check
then
s
.
global_check
=
true
gm_hack_release
=
Duel
.
Release
function
Duel
.
Release
(
tg
,
reason
,
player
)
local
e
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_EFFECT
)
local
exg
=
Duel
.
GetMatchingGroup
(
function
(
c
)
return
c
:
GetFlagEffect
(
id
)
>
0
and
c
:
IsReleasable
()
end
,
player
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
if
#
exg
>
0
and
tg
==
e
:
GetHandler
()
and
Duel
.
SelectYesNo
(
player
,
aux
.
Stringid
(
id
,
4
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
player
,
aux
.
Stringid
(
id
,
5
))
local
sg
=
exg
:
Select
(
player
,
1
,
1
,
nil
)
local
tc
=
sg
:
GetFirst
()
if
tg
==
e
:
GetHandler
()
then
tg
=
tc
end
end
return
gm_hack_release
(
tg
,
reason
,
player
)
end
local
ge4
=
Effect
.
CreateEffect
(
c
)
ge4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge4
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
ge4
:
SetCondition
(
s
.
con
)
ge4
:
SetOperation
(
s
.
op
)
Duel
.
RegisterEffect
(
ge4
,
0
)
end
end
end
function
s
.
rtg
(
e
,
c
)
if
not
(
c
~=
e
:
GetHandler
()
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
))
then
return
false
end
if
Duel
.
GetCurrentChain
()
<
2
then
return
not
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
and
not
c
:
IsStatus
(
STATUS_ACTIVATE_DISABLED
)
end
return
true
return
c
~=
e
:
GetHandler
()
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
s
.
otcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
...
...
@@ -115,12 +97,28 @@ end
function
s
.
splimit
(
e
,
c
)
return
not
(
c
:
IsSetCard
(
0xccb
,
0xccd
)
or
c
:
IsRace
(
RACE_FAIRY
))
end
function
s
.
sumfilter
(
c
,
ec
)
if
not
(
c
:
IsSetCard
(
0xccd
)
and
c
:
IsLevelAbove
(
6
))
then
return
false
end
local
e1
=
Effect
.
CreateEffect
(
ec
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_ADD_EXTRA_TRIBUTE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetTargetRange
(
0
,
LOCATION_ONFIELD
)
e1
:
SetTarget
(
function
(
e
,
c
)
return
not
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
and
not
c
:
IsStatus
(
STATUS_ACTIVATE_DISABLED
)
end
)
e1
:
SetValue
(
POS_FACEUP_ATTACK
+
POS_FACEDOWN_DEFENSE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
local
res
=
c
:
IsSummonable
(
true
,
nil
,
1
)
e1
:
Reset
()
return
res
end
function
s
.
e2tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
minc
,
maxc
=
c
:
GetTributeRequirement
()
local
b1
=
Duel
.
IsPlayerCanSummon
(
tp
,
SUMMON_TYPE_NORMAL
,
c
)
and
Duel
.
CheckTribute
(
c
,
minc
,
maxc
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
s
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
:
GetHandler
()
)
if
chk
==
0
then
return
b1
or
b2
end
local
op
=
0
if
b1
or
b2
then
...
...
@@ -130,8 +128,9 @@ function s.e2tg(e,tp,eg,ep,ev,re,r,rp,chk)
end
e
:
SetLabel
(
op
)
if
op
==
1
then
e
:
SetCategory
(
CATEGORY_SUMMON
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
c
,
1
,
tp
,
LOCATION_PZONE
)
else
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
s
.
e2op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -145,28 +144,25 @@ function s.e2op(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Summon
(
tp
,
c
,
true
,
nil
,
1
)
end
elseif
e
:
GetLabel
()
==
2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
sg
)
local
tc
=
sg
:
GetFirst
()
if
tc
and
not
tc
:
IsImmuneToEffect
(
e
)
then
tc
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
id
,
3
))
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
c
):
GetFirst
()
if
tc
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_EXTRA_RELEASE_SUM
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCode
(
EFFECT_ADD_EXTRA_TRIBUTE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetTargetRange
(
0
,
LOCATION_ONFIELD
)
e1
:
SetValue
(
POS_FACEUP_ATTACK
+
POS_FACEDOWN_DEFENSE
)
e1
:
SetTarget
(
function
(
e
,
c
)
return
not
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
and
not
c
:
IsStatus
(
STATUS_ACTIVATE_DISABLED
)
end
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_EXTRA_RELEASE_NONSUM
)
e2
:
SetValue
(
1
)
tc
:
RegisterEffect
(
e2
)
Duel
.
Summon
(
tp
,
tc
,
true
,
nil
,
1
)
end
end
end
function
s
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
return
tc
:
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
and
tc
:
IsCode
(
id
)
return
tc
:
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
and
tc
:
IsCode
(
id
)
and
tc
:
IsFaceup
()
end
function
s
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
...
...
@@ -178,10 +174,6 @@ function s.pencon(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
eg
:
GetFirst
()
return
tc
:
IsSetCard
(
0xccb
)
and
tc
~=
e
:
GetHandler
()
end
function
s
.
pencost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
end
Duel
.
PayLPCost
(
tp
,
1000
)
end
function
s
.
penfilter
(
c
,
code
)
return
c
:
IsSetCard
(
0xccb
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
and
not
c
:
IsCode
(
code
)
and
c
:
IsFaceup
()
end
...
...
@@ -201,7 +193,7 @@ function s.penop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
filter
(
c
,
tp
)
return
c
:
IsPreviousControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsSetCard
(
0xccb
,
0xccd
)
return
c
:
IsPreviousControler
(
tp
)
and
(
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
or
c
:
GetOriginalType
()
&
TYPE_MONSTER
~=
0
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsSetCard
(
0xccb
,
0xccd
)
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
filter
,
1
,
e
:
GetHandler
(),
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
id
)
>
0
...
...
@@ -221,4 +213,16 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SetLP
(
1
-
tp
,
math.ceil
(
lp
/
2
))
end
end
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetValue
(
0
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EFFECT_NO_EFFECT_DAMAGE
)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e4
,
tp
)
end
\ No newline at end of file
expansions/script/c16104408.lua
View file @
d94ca6b7
...
...
@@ -43,15 +43,15 @@ function cm.sumfilter(c,e,tp)
res
=
c
:
IsSummonable
(
true
,
nil
)
else
local
minc
,
maxc
=
c
:
GetTributeRequirement
()
res
=
Duel
.
IsPlayerCanSummon
(
tp
,
SUMMON_TYPE_ADVANCE
,
c
)
and
Duel
.
CheckTribute
(
c
,
minc
,
maxc
)
and
not
c
:
Is
AbleToExtraAsCost
()
and
c
:
GetOriginalType
()
&
TYPE_SPSUMMON
==
0
and
c
:
GetOriginalType
()
&
TYPE_RITUAL
==
0
res
=
Duel
.
IsPlayerCanSummon
(
tp
,
SUMMON_TYPE_ADVANCE
,
c
)
and
Duel
.
CheckTribute
(
c
,
minc
,
maxc
)
and
not
c
:
Is
Type
(
TYPE_SYNCHRO
|
TYPE_XYZ
|
TYPE_FUSION
|
TYPE_LINK
|
TYPE_RITUAL
|
TYPE_SPSUMMON
)
end
return
c
:
GetOriginalType
()
&
TYPE_MONSTER
~=
0
and
(
res
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
))
and
c
:
IsSetCard
(
0xccb
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
atkfilter1
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
nil
,
c
:
GetTextAttack
())
return
c
:
GetOriginalType
()
&
TYPE_MONSTER
~=
0
and
(
res
or
(
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
))
and
c
:
IsSetCard
(
0xccb
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
atkfilter1
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
nil
,
c
:
GetTextAttack
())
end
function
cm
.
atkfilter1
(
c
,
atk
)
return
c
:
GetOriginalType
()
&
TYPE_MONSTER
~=
0
and
c
:
IsAttackBelow
(
atk
)
and
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_GRAVE
))
return
c
:
GetOriginalType
()
&
TYPE_MONSTER
~=
0
and
c
:
IsAttackBelow
(
atk
)
and
c
:
IsFaceupEx
()
end
function
cm
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
sumfilter
,
tp
,
LOCATION_HAND
+
LOCATION_SZONE
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
sumfilter
,
tp
,
LOCATION_HAND
+
LOCATION_SZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOEXTRA
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
c
,
1
,
tp
,
LOCATION_EXTRA
)
end
...
...
@@ -65,7 +65,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
res
=
tc
:
IsSummonable
(
true
,
nil
)
else
local
minc
,
maxc
=
tc
:
GetTributeRequirement
()
res
=
Duel
.
IsPlayerCanSummon
(
tp
,
SUMMON_TYPE_ADVANCE
,
tc
)
and
Duel
.
CheckTribute
(
tc
,
minc
,
maxc
)
and
not
tc
:
IsAbleToExtraAsCost
()
and
tc
:
GetOriginalType
()
&
TYPE_SPSUMMON
==
0
and
tc
:
GetOriginalType
()
&
TYPE_RITUAL
==
0
res
=
Duel
.
IsPlayerCanSummon
(
tp
,
SUMMON_TYPE_ADVANCE
,
tc
)
and
Duel
.
CheckTribute
(
tc
,
minc
,
maxc
)
and
not
c
:
IsType
(
TYPE_SYNCHRO
|
TYPE_XYZ
|
TYPE_FUSION
|
TYPE_LINK
|
TYPE_RITUAL
|
TYPE_SPSUMMON
)
end
if
tc
then
local
e0
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -78,49 +78,47 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
e0
:
Clone
()
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e1
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
if
not
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
or
(
res
and
Duel
.
SelectOption
(
tp
,
1152
,
1151
)
==
1
)
then
Duel
.
Summon
(
tp
,
tc
,
true
,
nil
)
Duel
.
BreakEffect
()
else
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
BreakEffect
()
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
atkfilter1
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
nil
,
tc
:
GetTextAttack
())
local
tc1
=
g
:
GetFirst
()
while
tc1
do
if
tc1
:
IsLocation
(
LOCATION_MZONE
)
and
tc1
:
IsType
(
TYPE_EFFECT
)
then
if
not
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
or
(
res
and
Duel
.
SelectOption
(
tp
,
1152
,
1151
)
==
1
)
then
Duel
.
Summon
(
tp
,
tc
,
true
,
nil
)
Duel
.
BreakEffect
()
else
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
BreakEffect
()
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
atkfilter1
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
nil
,
tc
:
GetTextAttack
())
local
tc1
=
g
:
GetFirst
()
while
tc1
do
if
tc1
:
IsLocation
(
LOCATION_MZONE
)
and
tc1
:
IsType
(
TYPE_EFFECT
)
then
Duel
.
NegateRelatedChain
(
tc1
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc1
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetValue
(
RESET_TURN_SET
)
tc1
:
RegisterEffect
(
e2
)
else
if
tc1
:
IsType
(
TYPE_EFFECT
)
then
Duel
.
NegateRelatedChain
(
tc1
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
0x17a0000
+
RESET_PHASE
+
PHASE_END
)
tc1
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetReset
(
RESET_EVENT
+
0x17a0000
+
RESET_PHASE
+
PHASE_END
)
tc1
:
RegisterEffect
(
e2
)
else
if
tc1
:
IsType
(
TYPE_EFFECT
)
then
Duel
.
NegateRelatedChain
(
tc1
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x17a0000
+
RESET_PHASE
+
PHASE_END
)
tc1
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
0x17a0000
+
RESET_PHASE
+
PHASE_END
)
tc1
:
RegisterEffect
(
e2
)
tc1
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x17a0000
+
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
0
))
end
tc1
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x17a0000
+
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
0
))
end
tc1
=
g
:
GetNext
()
end
tc1
=
g
:
GetNext
()
end
end
end
...
...
expansions/script/c60002191.lua
View file @
d94ca6b7
...
...
@@ -89,7 +89,7 @@ function cm.initial_effect(c)
end
function
cm
.
acost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
LOCATION_ONFIELD
,
0
,
0x625
,
1
,
REASON_COST
)
end
Duel
.
RemoveCounter
(
tp
,
LOCATION_ONFIELD
,
0
,
0x62
5
,
1
,
REASON_COST
)
Duel
.
RemoveCounter
(
tp
,
LOCATION_ONFIELD
,
0
,
0x62
4
,
1
,
REASON_COST
)
end
function
cm
.
thfilter
(
c
,
e
,
tp
)
return
c
:
IsCanHaveCounter
(
0x625
)
and
Duel
.
IsCanAddCounter
(
tp
,
0x625
,
1
,
c
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsCode
(
m
)
...
...
expansions/script/c60010016.lua
0 → 100644
View file @
d94ca6b7
--律龙械 安度西亚
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSynchroType
,
TYPE_SYNCHRO
),
aux
.
NonTuner
(
Card
.
IsSynchroType
,
TYPE_SYNCHRO
),
1
)
c
:
EnableReviveLimit
()
--indestructable
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
--negate
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_NEGATE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e2
:
SetCondition
(
cm
.
discon
)
e2
:
SetCost
(
cm
.
discost
)
e2
:
SetTarget
(
cm
.
distg
)
e2
:
SetOperation
(
cm
.
disop
)
c
:
RegisterEffect
(
e2
)
end
cm
.
material_type
=
TYPE_SYNCHRO
function
cm
.
discon
(
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
function
cm
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>=
4
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
end
function
cm
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>=
4
then
local
lg
=
Duel
.
GetDecktopGroup
(
tp
,
4
)
local
g1
=
lg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
g2
=
lg
:
Select
(
1
-
tp
,
1
,
1
,
nil
):
GetFirst
()
if
g1
==
g2
then
Duel
.
NegateActivation
(
ev
)
elseif
g1
~=
g2
then
Duel
.
SendtoHand
(
g1
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g1
)
end
end
end
expansions/script/c60151908.lua
View file @
d94ca6b7
...
...
@@ -51,7 +51,7 @@ function c60151908.initial_effect(c)
--special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
Set
Cod
e
(
EFFECT_TYPE_IGNITION
)
e2
:
Set
Typ
e
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCondition
(
c60151908
.
e2con
)
e2
:
SetCost
(
aux
.
bfgcost
)
...
...
@@ -132,18 +132,18 @@ end
function
c60151908
.
e2con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
end
function
c60151908
.
e2tgf
ilter
(
c
,
e
,
tp
)
function
c60151908
.
e2tgf
(
c
,
e
,
tp
)
return
c
:
IsCode
(
60151901
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c60151908
.
e2tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c60151908
.
e2tgf
ilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c60151908
.
e2tgf
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c60151908
.
e2op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60151908
.
e2tgf
ilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60151908
.
e2tgf
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
...
...
expansions/script/c60151909.lua
View file @
d94ca6b7
...
...
@@ -60,7 +60,7 @@ function c60151909.initial_effect(c)
--special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
Set
Cod
e
(
EFFECT_TYPE_IGNITION
)
e2
:
Set
Typ
e
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCondition
(
c60151909
.
e2con
)
e2
:
SetCost
(
aux
.
bfgcost
)
...
...
expansions/script/c65810045.lua
View file @
d94ca6b7
...
...
@@ -43,7 +43,7 @@ function s.initial_effect(c)
end
function
s
.
recon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentChain
()
==
1
and
(
e
:
GetHandler
():
GetFlagEffect
(
id
)
>
0
or
(
e
:
GetCode
()
~=
EVENT_CHAIN_NEGATED
))
and
Duel
.
GetFlagEffect
(
tp
,
id
)
==
0
return
Duel
.
GetCurrentChain
()
==
1
and
(
e
:
GetHandler
():
GetFlagEffect
(
id
+
1
)
>
0
or
(
e
:
GetCode
()
~=
EVENT_CHAIN_NEGATED
))
and
Duel
.
GetFlagEffect
(
tp
,
id
+
1
)
==
0
end
function
s
.
reop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c79250061.lua
View file @
d94ca6b7
...
...
@@ -92,6 +92,20 @@ function s.initial_effect(c)
e9
:
SetTarget
(
s
.
disable
)
e9
:
SetCode
(
EFFECT_DISABLE
)
c
:
RegisterEffect
(
e9
)
local
e11
=
Effect
.
CreateEffect
(
c
)
e11
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e11
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e11
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e11
:
SetOperation
(
s
.
spppop
)
c
:
RegisterEffect
(
e11
)
local
e12
=
e11
:
Clone
()
e12
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e12
)
end
function
s
.
spppop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Debug
.
Message
(
"弄臣沿着每个人来时的路往回走,却发现路的尽头总会出现祂自己。也不知是她们合在一起变成了祂,还是祂正逐渐变成她们了呢。"
)
Debug
.
Message
(
"沉思的弄臣。可悲的小丑。祂甚至没有那只指明方向的勇敢的毛孩,只是毫无意义地迈出步伐。"
)
Debug
.
Message
(
"决定相信自己的直觉后,弄臣边走边说出了在这条路上遇见的每一个人的名字。"
)
end
function
s
.
mfilter
(
c
,
xyzc
)
return
c
:
IsXyzType
(
TYPE_PENDULUM
)
and
c
:
IsLevel
(
8
)
...
...
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