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
01a0d43d
Commit
01a0d43d
authored
May 02, 2025
by
Satty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
23e8bfe2
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
58 additions
and
83 deletions
+58
-83
expansions/script/c12400101.lua
expansions/script/c12400101.lua
+2
-2
expansions/script/c12847577.lua
expansions/script/c12847577.lua
+1
-16
expansions/script/c17243569.lua
expansions/script/c17243569.lua
+2
-2
expansions/script/c18700912.lua
expansions/script/c18700912.lua
+2
-1
expansions/script/c18701004.lua
expansions/script/c18701004.lua
+1
-0
expansions/script/c33401055.lua
expansions/script/c33401055.lua
+3
-2
expansions/script/c33401058.lua
expansions/script/c33401058.lua
+12
-7
expansions/script/c52700743.lua
expansions/script/c52700743.lua
+1
-0
expansions/script/c79250000.lua
expansions/script/c79250000.lua
+3
-1
expansions/script/c92600200.lua
expansions/script/c92600200.lua
+6
-6
expansions/script/c92600205.lua
expansions/script/c92600205.lua
+4
-4
expansions/script/c92600210.lua
expansions/script/c92600210.lua
+2
-2
expansions/script/c92600215.lua
expansions/script/c92600215.lua
+2
-1
expansions/script/c92600230.lua
expansions/script/c92600230.lua
+2
-3
expansions/script/c92600235.lua
expansions/script/c92600235.lua
+15
-36
No files found.
expansions/script/c12400101.lua
View file @
01a0d43d
...
...
@@ -104,8 +104,8 @@ end
function
s
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
):
GetFirst
()
Duel
.
SendtoDeck
(
tc
,
nil
,
1
,
REASON_EFFECT
)
if
tc
:
IsLocation
(
LOCATION_EXTRA
)
and
tc
:
GetControler
()
==
tp
then
Duel
.
SendtoDeck
(
tc
,
nil
,
SEQ_DECKBOTTOM
,
REASON_EFFECT
)
if
tc
:
GetControler
()
==
tp
then
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
...
...
expansions/script/c12847577.lua
View file @
01a0d43d
...
...
@@ -73,8 +73,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
local
chkf
=
tp
local
mg1
=
Group
.
CreateGroup
()
local
mg4
=
Group
.
CreateGroup
()
local
mg1
=
Group
.
CreateGroup
()
local
mg3
=
Duel
.
GetMatchingGroup
(
s
.
filter3
,
tp
,
LOCATION_HAND
,
0
,
c
)
if
#
mg3
>
0
and
Duel
.
GetFlagEffect
(
1
-
tp
,
id
)
>
0
then
mg1
:
Merge
(
mg3
)
...
...
@@ -95,20 +94,6 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
#
mg7
>
0
and
Duel
.
GetFlagEffect
(
1
-
tp
,
id
+
4
)
>
0
then
mg1
:
Merge
(
mg7
)
end
local
ge
=
c
:
IsHasEffect
(
EFFECT_TO_GRAVE_REDIRECT
)
if
ge
and
ge
:
GetValue
()
&
LOCATION_DECK
and
c
:
IsCanBeFusionMaterial
()
and
c
:
IsAbleToGrave
()
and
Duel
.
GetFlagEffect
(
1
-
tp
,
id
+
1
)
>
0
then
mg4
:
AddCard
(
c
)
end
if
not
ge
and
c
:
IsCanBeFusionMaterial
()
and
c
:
IsAbleToRemove
()
and
Duel
.
GetFlagEffect
(
1
-
tp
,
id
+
3
)
>
0
then
mg4
:
AddCard
(
c
)
end
if
ge
and
ge
:
GetValue
()
&
LOCATION_REMOVED
and
c
:
IsCanBeFusionMaterial
()
and
c
:
IsAbleToDeck
()
and
Duel
.
GetFlagEffect
(
1
-
tp
,
id
+
4
)
>
0
then
mg4
:
AddCard
(
c
)
end
if
#
mg4
>
0
then
mg1
:
Merge
(
mg4
)
end
Auxiliary
.
FCheckAdditional
=
s
.
fcheck
Auxiliary
.
GCheckAdditional
=
s
.
gcheck
local
res
=
Duel
.
IsExistingMatchingCard
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
...
...
expansions/script/c17243569.lua
View file @
01a0d43d
...
...
@@ -4,13 +4,13 @@ local cm=_G["c"..m]
function
cm
.
initial_effect
(
c
)
--link summon
aux
.
AddLinkProcedure
(
c
,
nil
,
2
,
2
,
cm
.
lcheck
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--cannot link material
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_LINK_MATERIAL
)
e1
:
Set
Target
(
cm
.
lklimit
)
e1
:
Set
Value
(
cm
.
lklimit
)
c
:
RegisterEffect
(
e1
)
--atklimit
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c18700912.lua
View file @
01a0d43d
...
...
@@ -38,7 +38,8 @@ end
function
cm
.
atktg
(
e
,
c
)
return
c
:
IsSetCard
(
0x829
)
and
c
:
IsLevelAbove
(
7
)
end
function
cm
.
atkval
(
e
,
c
,
tp
)
function
cm
.
atkval
(
e
,
c
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
GetMatchingGroupCount
(
cm
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
*
100
+
Duel
.
GetFlagEffect
(
tp
,
m
)
*
50
end
...
...
expansions/script/c18701004.lua
View file @
01a0d43d
--甜甜圆骑士饱藏
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
18700935
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
...
...
expansions/script/c33401055.lua
View file @
01a0d43d
--永远的家人
local
s
,
id
=
GetID
()
function
s
.
initial_effect
(
c
)
--activate
--activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_RECOVER
+
CATEGORY_TOEXTRA
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
...
...
@@ -27,7 +27,8 @@ function s.filter2(c,e,tp)
return
c
:
IsSetCard
(
0xc342
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter2
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
filter2
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
local
g
=
Duel
.
GetMatchingGroup
(
s
.
filter2
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
1500
)
...
...
expansions/script/c33401058.lua
View file @
01a0d43d
...
...
@@ -41,17 +41,22 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp)
end
end
--
function
s
.
desfilter
(
c
)
return
c
:
IsSetCard
(
0x9341
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
function
s
.
desfilter
(
c
,
tc
,
tp
)
local
mg
=
Group
.
CreateGroup
()
mg
:
AddCard
(
tc
)
mg
:
AddCard
(
c
)
return
c
:
IsSetCard
(
0x9341
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
and
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
mg
)
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
local
c
=
e
:
GetHandler
()
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
c
,
c
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
s
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
s
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
c
,
c
,
tp
)
g1
:
AddCard
(
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
2
,
nil
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
2
,
g1
)
g1
:
Merge
(
g2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g1
,
g1
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
PLAYER_ALL
,
1000
)
...
...
expansions/script/c52700743.lua
View file @
01a0d43d
...
...
@@ -20,6 +20,7 @@ function s.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCountLimit
(
1
,
id
)
e3
:
SetTarget
(
s
.
sptg
)
e3
:
SetOperation
(
s
.
spop
)
...
...
expansions/script/c79250000.lua
View file @
01a0d43d
...
...
@@ -66,7 +66,9 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
+
LOCATION_EXTRA
,
0
,
1
,
c
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
+
LOCATION_EXTRA
,
0
,
c
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
g
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
+
LOCATION_EXTRA
)
Duel
.
SetChainLimit
(
aux
.
FALSE
)
if
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
Duel
.
SetChainLimit
(
aux
.
FALSE
)
end
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
sg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
+
LOCATION_EXTRA
,
0
,
c
)
...
...
expansions/script/c92600200.lua
View file @
01a0d43d
--神选士 苍穹
--神选士 苍穹
local
s
,
id
=
GetID
()
function
s
.
initial_effect
(
c
)
c
:
SetSPSummonOnce
(
id
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
3
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
s
.
spcon
)
e1
:
SetCondition
(
s
.
spcon
)
e1
:
SetTarget
(
s
.
sptg
)
e1
:
SetOperation
(
s
.
spop
)
e1
:
SetOperation
(
s
.
spop
)
e1
:
SetValue
(
SUMMON_VALUE_SELF
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -135,7 +135,6 @@ function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local
res
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
92600250
)
for
tc
in
aux
.
Next
(
g
)
do
typ
=
bit
.
bor
(
typ
,
bit
.
band
(
tc
:
GetType
(),
0x7
))
tc
=
g
:
GetNext
()
end
local
b1
=
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
typ
)
local
b2
=
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
typ
)
...
...
@@ -150,7 +149,8 @@ function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
cg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
typ2
=
c
:
GetType
()
&
7
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
if
res
and
c
:
IsOriginalCodeRule
(
92600250
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
92600250
,
0
))
then
if
res
and
c
:
IsOriginalCodeRule
(
92600250
)
and
(
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
,
typ
)
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
92600250
,
0
)))
then
c
:
RegisterFlagEffect
(
92600251
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
0
)
local
b1
=
g
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_MONSTER
)
local
b2
=
g
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_SPELL
)
...
...
expansions/script/c92600205.lua
View file @
01a0d43d
--神选士 阿波罗
--神选士 阿波罗
local
s
,
id
=
GetID
()
function
s
.
initial_effect
(
c
)
c
:
SetSPSummonOnce
(
id
)
...
...
@@ -21,7 +21,7 @@ function s.initial_effect(c)
e2
:
SetOperation
(
s
.
regop
)
e2
:
SetLabelObject
(
e1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
5
))
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_REMOVE
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
...
...
@@ -139,7 +139,6 @@ function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local
res
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
92600250
)
for
tc
in
aux
.
Next
(
g
)
do
typ
=
bit
.
bor
(
typ
,
bit
.
band
(
tc
:
GetType
(),
0x7
))
tc
=
g
:
GetNext
()
end
local
b1
=
Duel
.
IsExistingMatchingCard
(
s
.
filter1
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
typ
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
s
.
checkfilter1
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
...
...
@@ -154,7 +153,8 @@ function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
cg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
typ2
=
c
:
GetType
()
&
7
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
if
res
and
c
:
IsOriginalCodeRule
(
92600250
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
92600250
,
0
))
then
if
res
and
c
:
IsOriginalCodeRule
(
92600250
)
and
(
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
,
typ
)
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
92600250
,
0
)))
then
c
:
RegisterFlagEffect
(
92600251
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
0
)
local
b1
=
g
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_MONSTER
)
local
b2
=
g
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_SPELL
)
...
...
expansions/script/c92600210.lua
View file @
01a0d43d
...
...
@@ -139,7 +139,6 @@ function s.tg(e,tp,eg,ep,ev,re,r,rp,chk)
local
res
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
92600250
)
for
tc
in
aux
.
Next
(
g
)
do
typ
=
bit
.
bor
(
typ
,
bit
.
band
(
tc
:
GetType
(),
0x7
))
tc
=
g
:
GetNext
()
end
local
b1
=
Duel
.
IsExistingMatchingCard
(
s
.
filter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
,
typ
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
checkfilter1
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
...
...
@@ -154,7 +153,8 @@ function s.tg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
cg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
typ2
=
c
:
GetType
()
&
7
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
if
res
and
c
:
IsOriginalCodeRule
(
92600250
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
92600250
,
0
))
then
if
res
and
c
:
IsOriginalCodeRule
(
92600250
)
and
(
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
,
typ
)
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
92600250
,
0
)))
then
c
:
RegisterFlagEffect
(
92600251
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
0
)
local
b1
=
g
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_MONSTER
)
local
b2
=
g
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_SPELL
)
...
...
expansions/script/c92600215.lua
View file @
01a0d43d
...
...
@@ -124,7 +124,8 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
cg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
typ2
=
c
:
GetType
()
&
7
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
if
res
and
c
:
IsOriginalCodeRule
(
92600250
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
92600250
,
0
))
then
if
res
and
c
:
IsOriginalCodeRule
(
92600250
)
and
(
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
,
typ
)
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
92600250
,
0
)))
then
c
:
RegisterFlagEffect
(
92600251
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
0
)
local
b1
=
re
:
GetActiveType
()
==
TYPE_MONSTER
local
b2
=
re
:
GetActiveType
()
==
TYPE_SPELL
...
...
expansions/script/c92600230.lua
View file @
01a0d43d
...
...
@@ -60,15 +60,14 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
res
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
92600250
)
for
tc2
in
aux
.
Next
(
g2
)
do
typ
=
bit
.
bor
(
typ
,
bit
.
band
(
tc2
:
GetType
(),
0x7
))
tc2
=
g2
:
GetNext
()
end
if
chk
==
0
then
return
res
or
Duel
.
IsExistingMatchingCard
(
s
.
comcheck
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
(),
tp
,
e
)
end
local
cg
=
Duel
.
GetMatchingGroup
(
function
(
c
,
tp
,
typ
)
return
c
:
IsType
(
typ
)
or
(
c
:
IsOriginalCodeRule
(
92600250
)
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
92600250
))
end
,
tp
,
LOCATION_HAND
,
0
,
nil
,
tp
,
typ
)
local
cg
=
Duel
.
GetMatchingGroup
(
function
(
c
,
tp
,
typ
)
return
c
:
IsType
(
typ
)
or
(
c
:
IsOriginalCodeRule
(
92600250
)
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
92600250
))
end
,
tp
,
LOCATION_HAND
,
0
,
e
:
GetHandler
()
,
tp
,
typ
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
c
=
cg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
typ2
=
c
:
GetType
()
&
7
Duel
.
ConfirmCards
(
1
-
tp
,
c
)
if
res
and
c
:
IsOriginalCodeRule
(
92600250
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
92600250
,
0
))
then
if
res
and
c
:
IsOriginalCodeRule
(
92600250
)
and
(
not
Duel
.
IsExistingMatchingCard
(
s
.
comcheck
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
,
tp
,
e
)
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
92600250
,
0
)
))
then
c
:
RegisterFlagEffect
(
92600251
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
0
)
local
b1
=
g2
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_MONSTER
)
local
b2
=
g2
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_SPELL
)
...
...
expansions/script/c92600235.lua
View file @
01a0d43d
...
...
@@ -8,20 +8,19 @@ function s.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetCondition
(
s
.
con1
)
e1
:
SetOperation
(
s
.
activate
)
c
:
RegisterEffect
(
e1
)
--Activate
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_DISABLE
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_QUICK_O
)
local
e2
=
e1
:
Clone
()
e2
:
SetCondition
(
s
.
con2
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e2
:
SetCondition
(
s
.
hancon
)
e2
:
SetTarget
(
s
.
target
)
e2
:
SetOperation
(
s
.
activate
)
c
:
RegisterEffect
(
e2
)
--act trap in hand
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
c
:
RegisterEffect
(
e3
)
--todeck
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
1193
)
...
...
@@ -35,38 +34,18 @@ function s.initial_effect(c)
e4
:
SetOperation
(
s
.
thop
)
c
:
RegisterEffect
(
e4
)
end
function
s
.
hancon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_TRAP
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
function
s
.
con1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_TRAP_ACT_IN_HAND
)
end
function
s
.
con2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_TRAP
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
end
function
s
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x3921
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
res
=
e
:
GetDescription
()
+
1
==
aux
.
Stringid
(
id
,
1
)
+
1
local
c
=
e
:
GetHandler
()
if
res
and
chk
==
0
then
local
b1
=
c
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
)
e
:
SetType
(
EFFECT_TYPE_QUICK_O
+
EFFECT_TYPE_ACTIVATE
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAIN_END
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabelObject
(
e
)
e1
:
SetCondition
(
s
.
regcon
)
e1
:
SetOperation
(
s
.
regop
)
e1
:
SetLabel
(
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_CHAINING
)
Duel
.
RegisterEffect
(
e2
,
tp
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
b1
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
if
(
not
res
)
and
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
RegisterFlagEffect
(
tp
,
id
,
RESET_CHAIN
,
0
,
1
,
e
:
GetFieldID
())
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
end
function
s
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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