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
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
八宫一月
ygopro-THC-cards
Commits
4defaeb0
Commit
4defaeb0
authored
May 21, 2022
by
wyykak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 26145
Signed-off-by:
wyykak
<
wyy_1414@126.com
>
parent
14192d81
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
script/c26145.lua
script/c26145.lua
+10
-5
No files found.
script/c26145.lua
View file @
4defaeb0
...
@@ -25,16 +25,21 @@ function c26145.initial_effect(c)
...
@@ -25,16 +25,21 @@ function c26145.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c26145
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c26145
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
t1
=
Duel
.
IsExistingMatchingCard
(
c26145
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
local
t1
=
Duel
.
IsExistingMatchingCard
(
c26145
.
h
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
local
t2
=
Duel
.
IsExistingMatchingCard
(
c26145
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
)
>
0
local
t2
=
Duel
.
IsExistingMatchingCard
(
c26145
.
exfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c26145
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c26145
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
return
t1
or
t2
return
t1
or
t2
end
end
function
c26145
.
cfilter
(
c
)
function
c26145
.
cfilter
(
c
)
return
(
c
:
IsSetCard
(
0x252
)
or
c
:
IsSetCard
(
0x251
))
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsAbleToGrave
()
return
(
c
:
IsSetCard
(
0x252
)
or
c
:
IsSetCard
(
0x251
))
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsAbleToGrave
()
end
end
function
c26145
.
filter
(
c
,
e
,
tp
)
function
c26145
.
h
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x252a
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
true
,
POS_FACEUP
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x252a
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
true
,
POS_FACEUP
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
end
function
c26145
.
exfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x252a
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
true
,
POS_FACEUP
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
end
end
function
c26145
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c26145
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -42,8 +47,8 @@ function c26145.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,8 +47,8 @@ function c26145.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
12
,
0
,
aux
.
Stringid
(
26145
,
4
))
Duel
.
Hint
(
12
,
0
,
aux
.
Stringid
(
26145
,
4
))
local
t
=
{}
local
t
=
{}
local
p
=
1
local
p
=
1
if
Duel
.
IsExistingMatchingCard
(
c26145
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
then
t
[
p
]
=
aux
.
Stringid
(
26145
,
1
)
p
=
p
+
1
end
if
Duel
.
IsExistingMatchingCard
(
c26145
.
h
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
then
t
[
p
]
=
aux
.
Stringid
(
26145
,
1
)
p
=
p
+
1
end
if
Duel
.
IsExistingMatchingCard
(
c26145
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
)
>
0
if
Duel
.
IsExistingMatchingCard
(
c26145
.
exfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c26145
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
t
[
p
]
=
aux
.
Stringid
(
26145
,
2
)
p
=
p
+
1
end
and
Duel
.
IsExistingMatchingCard
(
c26145
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
t
[
p
]
=
aux
.
Stringid
(
26145
,
2
)
p
=
p
+
1
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
26145
,
3
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
26145
,
3
))
local
sel
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
t
))
+
1
local
sel
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
t
))
+
1
...
...
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