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
ab45162a
Commit
ab45162a
authored
Apr 18, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
92935c8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
script/c100203029.lua
script/c100203029.lua
+2
-1
script/c101009061.lua
script/c101009061.lua
+14
-12
No files found.
script/c100203029.lua
View file @
ab45162a
...
@@ -54,7 +54,8 @@ function c100203029.costfilter(c,tp,g)
...
@@ -54,7 +54,8 @@ function c100203029.costfilter(c,tp,g)
and
Duel
.
IsExistingMatchingCard
(
c100203029
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
,
Group
.
FromCards
(
c
))
and
Duel
.
IsExistingMatchingCard
(
c100203029
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
,
Group
.
FromCards
(
c
))
end
end
function
c100203029
.
desfilter
(
c
,
g
)
function
c100203029
.
desfilter
(
c
,
g
)
return
not
g
:
IsContains
(
c
:
GetEquipTarget
())
local
ec
=
c
:
GetEquipTarget
()
return
not
ec
or
not
g
:
IsContains
(
ec
)
end
end
function
c100203029
.
fselect
(
g
,
tp
)
function
c100203029
.
fselect
(
g
,
tp
)
if
Duel
.
IsExistingMatchingCard
(
c100203029
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
g
:
GetCount
(),
g
,
g
)
then
if
Duel
.
IsExistingMatchingCard
(
c100203029
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
g
:
GetCount
(),
g
,
g
)
then
...
...
script/c101009061.lua
View file @
ab45162a
...
@@ -59,17 +59,19 @@ end
...
@@ -59,17 +59,19 @@ end
function
c101009061
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101009061
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101009061
.
cffilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101009061
.
cffilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
#
g
>
0
then
Duel
.
ShuffleHand
(
tp
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
local
sg
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_HAND
,
0
,
nil
,
g
:
GetFirst
():
GetCode
())
Duel
.
ShuffleHand
(
tp
)
local
tc
=
sg
:
GetFirst
()
local
sg
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_HAND
,
0
,
nil
,
g
:
GetFirst
():
GetCode
())
while
tc
do
local
tc
=
sg
:
GetFirst
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
while
tc
do
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetCode
(
EFFECT_UPDATE_LEVEL
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetValue
(
-
1
)
e1
:
SetCode
(
EFFECT_UPDATE_LEVEL
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetValue
(
-
1
)
tc
:
RegisterEffect
(
e1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
+
RESET_PHASE
+
PHASE_END
)
tc
=
sg
:
GetNext
()
tc
:
RegisterEffect
(
e1
)
tc
=
sg
:
GetNext
()
end
end
end
end
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