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
048be397
Commit
048be397
authored
Mar 25, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reclean
parent
ddd7e72e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
24 deletions
+33
-24
expansions/script/c21000920.lua
expansions/script/c21000920.lua
+4
-1
expansions/script/c33400470.lua
expansions/script/c33400470.lua
+29
-23
No files found.
expansions/script/c21000920.lua
View file @
048be397
...
@@ -74,6 +74,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -74,6 +74,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
s
.
sumlimit
)
e1
:
SetTarget
(
s
.
sumlimit
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
...
@@ -92,6 +93,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -92,6 +93,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
s
.
sumlimit
)
e1
:
SetTarget
(
s
.
sumlimit
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
...
@@ -112,7 +114,7 @@ function s.prop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -112,7 +114,7 @@ function s.prop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
and
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
>
0
and
g
:
GetFirst
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
tru
e
,
POS_FACEUP
)
then
if
g
:
GetCount
()
>
0
and
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
>
0
and
g
:
GetFirst
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
fals
e
,
POS_FACEUP
)
then
Duel
.
SpecialSummon
(
g
,
nil
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
nil
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
end
end
...
@@ -132,6 +134,7 @@ function s.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -132,6 +134,7 @@ function s.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
s
.
sumlimit
)
e1
:
SetTarget
(
s
.
sumlimit
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
...
...
expansions/script/c33400470.lua
View file @
048be397
...
@@ -55,16 +55,18 @@ end
...
@@ -55,16 +55,18 @@ end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
g
then
local
ss
=
0
local
tg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
tg
:
GetCount
()
>
0
then
local
ss
=
0
ss
=
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
if
tg
:
GetCount
()
>
0
then
end
ss
=
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
if
Duel
.
IsExistingMatchingCard
(
cm
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
m
,
3
))
if
Duel
.
IsExistingMatchingCard
(
cm
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
m
,
3
))
local
tc
=
tg
:
GetFirst
()
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
())
tc
:
AddCounter
(
0x34f
,
3
*
ss
)
local
tc
=
tg
:
GetFirst
()
tc
:
AddCounter
(
0x34f
,
3
*
ss
)
end
end
end
Duel
.
RegisterFlagEffect
(
tp
,
33400101
,
RESET_EVENT
+
RESET_PHASE
+
PHASE_END
,
0
,
0
)
Duel
.
RegisterFlagEffect
(
tp
,
33400101
,
RESET_EVENT
+
RESET_PHASE
+
PHASE_END
,
0
,
0
)
end
end
...
@@ -85,9 +87,11 @@ function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -85,9 +87,11 @@ function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
g
then
if
tg
:
GetCount
()
>
0
then
local
tg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
if
tg
:
GetCount
()
>
0
then
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
end
end
end
Duel
.
RegisterFlagEffect
(
tp
,
33400101
,
RESET_EVENT
+
RESET_PHASE
+
PHASE_END
,
0
,
0
)
Duel
.
RegisterFlagEffect
(
tp
,
33400101
,
RESET_EVENT
+
RESET_PHASE
+
PHASE_END
,
0
,
0
)
end
end
...
@@ -114,15 +118,17 @@ end
...
@@ -114,15 +118,17 @@ end
function
cm
.
desop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
desop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
g
then
if
tg
:
GetCount
()
>
0
then
local
tg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
if
tg
:
GetCount
()
>
0
then
end
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
if
Duel
.
IsExistingMatchingCard
(
cm
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
m
,
3
))
if
Duel
.
IsExistingMatchingCard
(
cm
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
local
tg2
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
m
,
3
))
local
tc
=
tg2
:
GetFirst
()
local
tg2
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
tc
:
AddCounter
(
0x34f
,
6
)
local
tc
=
tg2
:
GetFirst
()
end
tc
:
AddCounter
(
0x34f
,
6
)
end
end
Duel
.
RegisterFlagEffect
(
tp
,
33400101
,
RESET_EVENT
+
RESET_PHASE
+
PHASE_END
,
0
,
0
)
Duel
.
RegisterFlagEffect
(
tp
,
33400101
,
RESET_EVENT
+
RESET_PHASE
+
PHASE_END
,
0
,
0
)
end
end
\ No newline at end of file
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