Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
daaf7017
Commit
daaf7017
authored
Jan 28, 2024
by
Uytrewq
Committed by
GitHub
Jan 28, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (#2384)
parent
bc1b1692
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
19 deletions
+12
-19
c30989084.lua
c30989084.lua
+2
-2
c51250293.lua
c51250293.lua
+3
-3
c88654892.lua
c88654892.lua
+7
-14
No files found.
c30989084.lua
View file @
daaf7017
...
...
@@ -88,8 +88,8 @@ function s.cfilter(c,g)
end
function
s
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lg
=
e
:
GetHandler
():
GetLinkedGroup
()
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
s
.
cfilter
,
1
,
nil
,
lg
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
s
.
cfilter
,
1
,
1
,
nil
,
lg
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
s
.
cfilter
,
1
,
nil
,
lg
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
s
.
cfilter
,
1
,
1
,
nil
,
lg
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
s
.
rmfilter
(
c
,
e
,
tp
)
...
...
c51250293.lua
View file @
daaf7017
...
...
@@ -25,10 +25,10 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetLabel
(
0
)
local
res
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
if
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
s
.
cfilter
,
1
,
nil
,
tp
)
if
Duel
.
CheckReleaseGroup
(
tp
,
s
.
cfilter
,
1
,
nil
,
tp
)
and
(
not
res
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
)))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
s
.
cfilter
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
s
.
cfilter
,
1
,
1
,
nil
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
e
:
SetLabel
(
LOCATION_DECK
)
end
...
...
@@ -36,7 +36,7 @@ end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
or
e
:
IsCostChecked
()
and
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
s
.
cfilter
,
1
,
nil
,
tp
)
or
e
:
IsCostChecked
()
and
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
CheckReleaseGroup
(
tp
,
s
.
cfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
))
end
if
not
e
:
IsCostChecked
()
then
e
:
SetLabel
(
0
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
+
e
:
GetLabel
())
...
...
c88654892.lua
View file @
daaf7017
...
...
@@ -6,34 +6,27 @@ function c88654892.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
88654892
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetLabel
(
0
)
e1
:
SetCost
(
c88654892
.
cost
)
e1
:
SetTarget
(
c88654892
.
target
)
e1
:
SetOperation
(
c88654892
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c88654892
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
100
)
return
true
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c88654892
.
filter1
,
1
,
nil
,
e
,
tp
)
end
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c88654892
.
filter1
,
1
,
1
,
nil
,
e
,
tp
)
e
:
SetLabel
(
rg
:
GetFirst
():
GetLevel
())
Duel
.
Release
(
rg
,
REASON_COST
)
end
function
c88654892
.
filter1
(
c
,
e
,
tp
,
ft
)
function
c88654892
.
filter1
(
c
,
e
,
tp
)
local
lv
=
c
:
GetLevel
()
return
lv
>
0
and
c
:
IsReleasable
()
and
(
c
:
IsType
(
TYPE_FUSION
)
or
c
:
IsType
(
TYPE_SYNCHRO
))
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
return
lv
>
0
and
(
c
:
IsType
(
TYPE_FUSION
)
or
c
:
IsType
(
TYPE_SYNCHRO
))
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
Duel
.
IsExistingMatchingCard
(
c88654892
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
lv
,
e
,
tp
)
end
function
c88654892
.
filter2
(
c
,
lv
,
e
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsLevel
(
lv
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c88654892
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
c88654892
.
filter1
,
1
,
nil
,
e
,
tp
,
ft
)
end
local
rg
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
c88654892
.
filter1
,
1
,
1
,
nil
,
e
,
tp
,
ft
)
e
:
SetLabel
(
rg
:
GetFirst
():
GetLevel
())
Duel
.
Release
(
rg
,
REASON_COST
)
if
chk
==
0
then
return
e
:
IsCostChecked
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c88654892
.
activate
(
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