Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-THC-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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
HiiragiGuardians
ygopro-THC-cards
Commits
631e5329
Commit
631e5329
authored
Jan 31, 2025
by
伊蕾娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c74562040.lua
parent
2c63729d
Pipeline
#32902
passed with stage
in 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
script/c74562040.lua
script/c74562040.lua
+4
-4
No files found.
script/c74562040.lua
View file @
631e5329
...
...
@@ -13,19 +13,19 @@ function cCardno.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
--Activate
function
cCardno
.
filter1
(
c
)
return
((
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeXyzMaterial
(
nil
))
or
not
c
:
IsType
(
TYPE_MONSTER
))
function
cCardno
.
filter1
(
c
,
e
)
return
((
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeXyzMaterial
(
nil
))
or
not
c
:
IsType
(
TYPE_MONSTER
))
and
not
c
:
IsImmuneToEffect
(
e
)
end
function
cCardno
.
filter2
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
c
:
IsSetCard
(
0x226
)
end
function
cCardno
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cCardno
.
filter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
())
and
Duel
.
IsExistingMatchingCard
(
cCardno
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cCardno
.
filter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
()
,
e
)
and
Duel
.
IsExistingMatchingCard
(
cCardno
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
cCardno
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
cCardno
.
filter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
cCardno
.
filter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
c
,
e
)
if
g
:
GetCount
()
>
0
and
Duel
.
IsExistingMatchingCard
(
cCardno
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
then
local
exg
=
Duel
.
SelectMatchingCard
(
tp
,
cCardno
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
exc
=
exg
:
GetFirst
()
...
...
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