Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
MyCard
ygopro-pre-data
Commits
bc8bebea
Commit
bc8bebea
authored
Apr 14, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
0f370ce6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
script/c100424004.lua
script/c100424004.lua
+1
-0
script/c100424035.lua
script/c100424035.lua
+9
-2
No files found.
expansions/pre-release.cdb
View file @
bc8bebea
No preview for this file type
script/c100424004.lua
View file @
bc8bebea
...
@@ -43,6 +43,7 @@ function c100424004.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,6 +43,7 @@ function c100424004.activate(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetFirst
():
IsLocation
(
LOCATION_HAND
)
then
if
g
:
GetFirst
():
IsLocation
(
LOCATION_HAND
)
then
if
Duel
.
GetFlagEffect
(
tp
,
100424004
)
~=
0
then
return
end
if
Duel
.
GetFlagEffect
(
tp
,
100424004
)
~=
0
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
100424004
,
2
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e1
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e1
:
SetCode
(
EFFECT_EXTRA_SUMMON_COUNT
)
e1
:
SetCode
(
EFFECT_EXTRA_SUMMON_COUNT
)
...
...
script/c100424035.lua
View file @
bc8bebea
...
@@ -21,7 +21,7 @@ function c100424035.thfilter(c)
...
@@ -21,7 +21,7 @@ function c100424035.thfilter(c)
return
(
c
:
IsCode
(
77585513
)
or
aux
.
IsCodeListed
(
c
,
77585513
)
and
c
:
IsType
(
TYPE_MONSTER
))
and
c
:
IsAbleToHand
()
return
(
c
:
IsCode
(
77585513
)
or
aux
.
IsCodeListed
(
c
,
77585513
)
and
c
:
IsType
(
TYPE_MONSTER
))
and
c
:
IsAbleToHand
()
end
end
function
c100424035
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100424035
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c100424035
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c100424035
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c100424035
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
or
Duel
.
IsExistingMatchingCard
(
c100424035
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
0
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
0
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
0
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
0
,
tp
,
LOCATION_DECK
)
end
end
...
@@ -29,8 +29,15 @@ function c100424035.setfilter(c)
...
@@ -29,8 +29,15 @@ function c100424035.setfilter(c)
return
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
(
true
)
return
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
(
true
)
end
end
function
c100424035
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100424035
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sel
=
1
local
g
=
Duel
.
GetMatchingGroup
(
c100424035
.
setfilter
,
tp
,
0
,
LOCATION_HAND
+
LOCATION_DECK
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c100424035
.
setfilter
,
tp
,
0
,
LOCATION_HAND
+
LOCATION_DECK
,
nil
)
if
g
:
GetCount
()
>
0
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
100424035
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
aux
.
Stringid
(
100424035
,
0
))
if
g
:
GetCount
()
>
0
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_SZONE
)
>
0
then
sel
=
Duel
.
SelectOption
(
1
-
tp
,
1213
,
1214
)
else
sel
=
Duel
.
SelectOption
(
1
-
tp
,
1214
)
+
1
end
if
sel
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_SET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_SET
)
local
sg
=
g
:
Select
(
1
-
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
1
-
tp
,
1
,
1
,
nil
)
if
Duel
.
SSet
(
1
-
tp
,
sg
)
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
if
Duel
.
SSet
(
1
-
tp
,
sg
)
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
...
...
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