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
cc068293
Commit
cc068293
authored
Jan 30, 2025
by
伊蕾娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c74561065.lua
parent
7f89413f
Pipeline
#32870
passed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
script/c74561065.lua
script/c74561065.lua
+6
-6
No files found.
script/c74561065.lua
View file @
cc068293
...
...
@@ -46,7 +46,7 @@ function cCardno.tkcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
DiscardHand
(
tp
,
nil
,
1
,
1
,
REASON_COST
,
nil
)
end
function
cCardno
.
spellfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x201
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
c
:
GetCode
(),
0x201
,
0x11
,
500
,
0
,
1
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
,
POS_FACEUP
)
return
c
:
IsSetCard
(
0x201
)
and
c
:
IsType
(
TYPE_SPELL
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
c
:
GetCode
(),
0x201
,
TYPE_MONSTER
+
TYPE_NORMAL
+
TYPE_SPIRIT
,
500
,
0
,
1
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
,
POS_FACEUP
)
end
function
cCardno
.
tktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cCardno
.
spellfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
@@ -59,10 +59,10 @@ function cCardno.tkop(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
t
g
=
sg
:
GetFirst
()
if
t
g
then
t
g
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_SPIRIT
,
ATTRIBUTE_LIGHT
,
RACE_WARRIOR
,
1
,
500
,
0
)
Duel
.
SpecialSummon
(
t
g
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
local
t
c
=
sg
:
GetFirst
()
if
t
c
then
t
c
:
AddMonsterAttribute
(
TYPE_MONSTER
+
TYPE_NORMAL
+
TYPE_SPIRIT
,
ATTRIBUTE_LIGHT
,
RACE_WARRIOR
,
1
,
500
,
0
)
Duel
.
SpecialSummon
(
t
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
Duel
.
BreakEffect
()
if
c
:
IsLocation
(
LOCATION_MZONE
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
Cardno
,
1
))
then
...
...
@@ -77,7 +77,7 @@ end
--special summon
function
cCardno
.
spfilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsType
(
TYPE_SPIRIT
)
and
c
:
IsReleasable
()
and
(
c
:
IsLocation
(
LOCATION_HAND
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
or
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
)
and
(
c
:
IsLocation
(
LOCATION_HAND
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
or
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
)
end
function
cCardno
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
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