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
483612d6
Commit
483612d6
authored
Apr 15, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pic
parent
0229a5ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
expansions/script/c30611103.lua
expansions/script/c30611103.lua
+7
-7
expansions/script/c30655631.lua
expansions/script/c30655631.lua
+2
-2
expansions/script/c81046035.lua
expansions/script/c81046035.lua
+3
-2
No files found.
expansions/script/c30611103.lua
View file @
483612d6
...
...
@@ -90,23 +90,23 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
return
Duel
.
CheckReleaseGroupEx
(
tp
,
cm
.
costfilter0
,
1
,
REASON_COST
,
e
:
GetHandler
())
return
Duel
.
CheckReleaseGroupEx
(
tp
,
cm
.
costfilter0
,
1
,
REASON_COST
,
true
,
e
:
GetHandler
())
end
e
:
SetLabel
(
0
)
local
off
=
1
local
ops
=
{}
local
opval
=
{}
if
Duel
.
CheckReleaseGroupEx
(
tp
,
cm
.
costfilter1
,
1
,
REASON_COST
,
e
:
GetHandler
())
then
if
Duel
.
CheckReleaseGroupEx
(
tp
,
cm
.
costfilter1
,
1
,
REASON_COST
,
true
,
e
:
GetHandler
())
then
ops
[
off
]
=
aux
.
Stringid
(
m
,
1
)
opval
[
off
-
1
]
=
1
off
=
off
+
1
end
if
Duel
.
CheckReleaseGroupEx
(
tp
,
cm
.
costfilter2
,
1
,
REASON_COST
,
e
:
GetHandler
())
then
if
Duel
.
CheckReleaseGroupEx
(
tp
,
cm
.
costfilter2
,
1
,
REASON_COST
,
true
,
e
:
GetHandler
())
then
ops
[
off
]
=
aux
.
Stringid
(
m
,
2
)
opval
[
off
-
1
]
=
2
off
=
off
+
1
end
if
Duel
.
CheckReleaseGroupEx
(
tp
,
cm
.
costfilter3
,
1
,
REASON_COST
,
e
:
GetHandler
())
then
if
Duel
.
CheckReleaseGroupEx
(
tp
,
cm
.
costfilter3
,
1
,
REASON_COST
,
true
,
e
:
GetHandler
())
then
ops
[
off
]
=
aux
.
Stringid
(
m
,
3
)
opval
[
off
-
1
]
=
3
off
=
off
+
1
...
...
@@ -114,15 +114,15 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
off
==
1
then
return
end
local
op
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
ops
))
if
opval
[
op
]
==
1
then
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
cm
.
costfilter1
,
1
,
1
,
REASON_COST
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
cm
.
costfilter1
,
1
,
1
,
REASON_COST
,
true
,
e
:
GetHandler
())
Duel
.
Release
(
g
,
REASON_COST
)
e
:
SetLabel
(
1
)
elseif
opval
[
op
]
==
2
then
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
cm
.
costfilter2
,
1
,
1
,
REASON_COST
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
cm
.
costfilter2
,
1
,
1
,
REASON_COST
,
true
,
e
:
GetHandler
())
Duel
.
Release
(
g
,
REASON_COST
)
e
:
SetLabel
(
2
)
elseif
opval
[
op
]
==
3
then
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
cm
.
costfilter3
,
1
,
1
,
REASON_COST
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
cm
.
costfilter3
,
1
,
1
,
REASON_COST
,
true
,
e
:
GetHandler
())
Duel
.
Release
(
g
,
REASON_COST
)
e
:
SetLabel
(
3
)
end
...
...
expansions/script/c30655631.lua
View file @
483612d6
...
...
@@ -23,9 +23,9 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
return
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
CheckReleaseGroupEx
(
REASON_COST
,
tp
,
cm
.
filter
,
1
,
nil
)
return
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
CheckReleaseGroupEx
(
tp
,
cm
.
filter
,
1
,
REASON_COST
,
true
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroupEx
(
REASON_COST
,
tp
,
cm
.
filter
,
1
,
99
,
nil
)
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
cm
.
filter
,
1
,
99
,
REASON_COST
,
true
,
nil
)
local
atk
=
g
:
GetSum
(
Card
.
GetAttack
)
Duel
.
Release
(
g
,
REASON_COST
)
e
:
SetLabel
(
0
,
atk
)
...
...
expansions/script/c81046035.lua
View file @
483612d6
...
...
@@ -25,7 +25,8 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
rfilter
(
c
,
tp
)
return
c
:
IsLevelAbove
(
1
)
and
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
c
:
GetLevel
())
local
level
=
c
:
GetLevel
()
return
c
:
IsLevelAbove
(
1
)
and
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
c
:
GetLevel
())
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>=
level
end
function
cm
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
cm
.
rfilter
,
1
,
nil
,
tp
)
end
...
...
@@ -37,8 +38,8 @@ function cm.rfilter(c,tp)
return
c
:
IsLevelAbove
(
1
)
and
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
c
:
GetLevel
())
end
function
cm
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
ct
=
e
:
GetLabel
()
if
chk
==
0
then
return
ct
>
0
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>=
ct
and
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
ct
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
ct
)
end
function
cm
.
disop
(
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