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
a2bac9c2
Commit
a2bac9c2
authored
Nov 03, 2024
by
八宫一月
Committed by
GitHub
Nov 03, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c9024198.lua (#2727)
parent
3db5c394
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
c9024198.lua
c9024198.lua
+8
-11
No files found.
c9024198.lua
View file @
a2bac9c2
...
@@ -28,16 +28,13 @@ function c9024198.initial_effect(c)
...
@@ -28,16 +28,13 @@ function c9024198.initial_effect(c)
e2
:
SetOperation
(
c9024198
.
spop
)
e2
:
SetOperation
(
c9024198
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c9024198
.
setfilter
1
(
c
,
tp
)
function
c9024198
.
setfilter
(
c
)
return
c
:
IsSetCard
(
0xaf
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
return
c
:
IsSetCard
(
0xaf
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
and
Duel
.
IsExistingMatchingCard
(
c9024198
.
setfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
:
GetCode
())
end
function
c9024198
.
setfilter2
(
c
,
code
)
return
c
:
IsSetCard
(
0xaf
)
and
not
c
:
IsCode
(
code
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
end
end
function
c9024198
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c9024198
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c9024198
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
and
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
and
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
and
Duel
.
IsExistingMatchingCard
(
c9024198
.
setfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
end
and
g
:
GetClassCount
(
Card
.
GetCode
)
>=
2
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
tp
,
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
tp
,
1000
)
end
end
function
c9024198
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9024198
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -51,12 +48,12 @@ function c9024198.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,12 +48,12 @@ function c9024198.setop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
end
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c9024198
.
setfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c9024198
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tc1
=
g1
:
GetFirst
()
if
g
:
GetClassCount
(
Card
.
GetCode
)
<
2
then
return
end
if
not
tc1
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c9024198
.
setfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tc1
:
GetCode
())
local
g1
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
2
,
2
)
local
tc2
=
g2
:
GetFirst
()
local
tc1
=
g1
:
GetFirst
()
local
tc2
=
g1
:
GetNext
()
if
Duel
.
MoveToField
(
tc1
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
false
)
then
if
Duel
.
MoveToField
(
tc1
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
false
)
then
if
Duel
.
MoveToField
(
tc2
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
false
)
then
if
Duel
.
MoveToField
(
tc2
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
false
)
then
Duel
.
Damage
(
tp
,
1000
,
REASON_EFFECT
)
Duel
.
Damage
(
tp
,
1000
,
REASON_EFFECT
)
...
...
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