Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
nanahira
ygopro-scripts
Commits
018fd752
Commit
018fd752
authored
Dec 19, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch-getszonecount' into develop
parents
6a7cf7dd
94196fea
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
56 deletions
+12
-56
c10024317.lua
c10024317.lua
+1
-6
c18716735.lua
c18716735.lua
+1
-6
c29223325.lua
c29223325.lua
+6
-20
c33256280.lua
c33256280.lua
+1
-6
c60473572.lua
c60473572.lua
+1
-6
c69351984.lua
c69351984.lua
+1
-6
c7868571.lua
c7868571.lua
+1
-6
No files found.
c10024317.lua
View file @
018fd752
...
...
@@ -29,12 +29,7 @@ function c10024317.initial_effect(c)
end
function
c10024317
.
desfilter
(
c
,
tp
)
if
c
:
IsFacedown
()
then
return
false
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
if
ft
==
0
and
c
:
IsLocation
(
LOCATION_SZONE
)
and
c
:
GetSequence
()
<
5
then
return
Duel
.
IsExistingMatchingCard
(
c10024317
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
true
)
else
return
Duel
.
IsExistingMatchingCard
(
c10024317
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
false
)
end
return
Duel
.
GetSZoneCount
(
tp
,
c
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c10024317
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
true
)
end
function
c10024317
.
filter
(
c
,
ignore
)
return
c
:
IsSetCard
(
0xe1
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSSetable
(
ignore
)
...
...
c18716735.lua
View file @
018fd752
...
...
@@ -28,12 +28,7 @@ function c18716735.initial_effect(c)
end
function
c18716735
.
desfilter
(
c
,
tp
)
if
c
:
IsFacedown
()
then
return
false
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
if
ft
==
0
and
c
:
IsLocation
(
LOCATION_SZONE
)
and
c
:
GetSequence
()
<
5
then
return
Duel
.
IsExistingMatchingCard
(
c18716735
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
true
)
else
return
Duel
.
IsExistingMatchingCard
(
c18716735
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
false
)
end
return
Duel
.
GetSZoneCount
(
tp
,
c
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c18716735
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
true
)
end
function
c18716735
.
filter
(
c
,
ignore
)
return
c
:
IsSetCard
(
0xe1
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSSetable
(
ignore
)
...
...
c29223325.lua
View file @
018fd752
...
...
@@ -24,33 +24,19 @@ end
function
c29223325
.
filter
(
c
)
return
c
:
IsSetCard
(
0x97
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSSetable
(
true
)
end
function
c29223325
.
desfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
c29223325
.
desfilter2
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
GetSequence
()
<
5
function
c29223325
.
desfilter
(
c
,
tp
,
ft
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
Duel
.
GetSZoneCount
(
tp
,
c
)
>
ft
end
function
c29223325
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
c29223325
.
desfilter
(
chkc
)
and
chkc
~=
e
:
GetHandler
()
end
if
chk
==
0
then
if
not
Duel
.
IsExistingMatchingCard
(
c29223325
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
then
return
false
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
if
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
then
ft
=
ft
-
1
end
if
ft
<
0
then
return
false
elseif
ft
>
0
then
return
Duel
.
IsExistingTarget
(
c29223325
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
())
else
return
Duel
.
IsExistingTarget
(
c29223325
.
desfilter2
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
end
local
ft
=
0
if
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
then
ft
=
1
end
return
Duel
.
IsExistingTarget
(
c29223325
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
(),
tp
,
ft
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
local
g
=
nil
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
if
ft
>
0
then
g
=
Duel
.
SelectTarget
(
tp
,
c29223325
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
e
:
GetHandler
())
else
g
=
Duel
.
SelectTarget
(
tp
,
c29223325
.
desfilter2
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
())
end
local
g
=
Duel
.
SelectTarget
(
tp
,
c29223325
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
e
:
GetHandler
(),
tp
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
c29223325
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c33256280.lua
View file @
018fd752
...
...
@@ -16,12 +16,7 @@ function c33256280.initial_effect(c)
end
function
c33256280
.
desfilter
(
c
,
tp
)
if
c
:
IsFacedown
()
then
return
false
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
if
ft
==
0
and
c
:
IsLocation
(
LOCATION_SZONE
)
and
c
:
GetSequence
()
<
5
then
return
Duel
.
IsExistingMatchingCard
(
c33256280
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
true
)
else
return
Duel
.
IsExistingMatchingCard
(
c33256280
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
false
)
end
return
Duel
.
GetSZoneCount
(
tp
,
c
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c33256280
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
true
)
end
function
c33256280
.
filter
(
c
,
ignore
)
return
c
:
IsSetCard
(
0xe1
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSSetable
(
ignore
)
...
...
c60473572.lua
View file @
018fd752
...
...
@@ -16,12 +16,7 @@ function c60473572.initial_effect(c)
end
function
c60473572
.
desfilter
(
c
,
tp
)
if
c
:
IsFacedown
()
then
return
false
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
if
ft
==
0
and
c
:
IsLocation
(
LOCATION_SZONE
)
and
c
:
GetSequence
()
<
5
then
return
Duel
.
IsExistingMatchingCard
(
c60473572
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
true
)
else
return
Duel
.
IsExistingMatchingCard
(
c60473572
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
false
)
end
return
Duel
.
GetSZoneCount
(
tp
,
c
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c60473572
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
true
)
end
function
c60473572
.
filter
(
c
,
ignore
)
return
c
:
IsSetCard
(
0xe1
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSSetable
(
ignore
)
...
...
c69351984.lua
View file @
018fd752
...
...
@@ -16,12 +16,7 @@ function c69351984.initial_effect(c)
end
function
c69351984
.
desfilter
(
c
,
tp
)
if
c
:
IsFacedown
()
then
return
false
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
if
ft
==
0
and
c
:
IsLocation
(
LOCATION_SZONE
)
and
c
:
GetSequence
()
<
5
then
return
Duel
.
IsExistingMatchingCard
(
c69351984
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
true
)
else
return
Duel
.
IsExistingMatchingCard
(
c69351984
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
false
)
end
return
Duel
.
GetSZoneCount
(
tp
,
c
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c69351984
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
true
)
end
function
c69351984
.
filter
(
c
,
ignore
)
return
c
:
IsSetCard
(
0xe1
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSSetable
(
ignore
)
...
...
c7868571.lua
View file @
018fd752
...
...
@@ -16,12 +16,7 @@ function c7868571.initial_effect(c)
end
function
c7868571
.
desfilter
(
c
,
tp
)
if
c
:
IsFacedown
()
then
return
false
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
if
ft
==
0
and
c
:
IsLocation
(
LOCATION_SZONE
)
and
c
:
GetSequence
()
<
5
then
return
Duel
.
IsExistingMatchingCard
(
c7868571
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
true
)
else
return
Duel
.
IsExistingMatchingCard
(
c7868571
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
false
)
end
return
Duel
.
GetSZoneCount
(
tp
,
c
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c7868571
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
true
)
end
function
c7868571
.
filter
(
c
,
ignore
)
return
c
:
IsSetCard
(
0xe1
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSSetable
(
ignore
)
...
...
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