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
95ea8e84
Commit
95ea8e84
authored
Mar 09, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
213ec7d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
script/c40732515.lua
script/c40732515.lua
+12
-7
No files found.
script/c40732515.lua
View file @
95ea8e84
...
@@ -36,24 +36,29 @@ function c40732515.initial_effect(c)
...
@@ -36,24 +36,29 @@ function c40732515.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c40732515
.
spcfilter
(
c
,
tp
)
function
c40732515
.
spcfilter
(
c
,
tp
)
return
c
:
IsCode
(
39910367
)
and
c
:
IsCanRemoveCounter
(
tp
,
0x1
,
6
,
REASON_COST
)
return
c
:
IsCode
(
39910367
)
and
c
:
IsCanRemoveCounter
(
tp
,
0x1
,
1
,
REASON_COST
)
end
end
function
c40732515
.
spcon
(
e
,
c
)
function
c40732515
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
Duel
.
IsExistingMatchingCard
(
c40732515
.
spcfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c40732515
.
spcfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
ct
=
0
for
tc
in
aux
.
Next
(
g
)
do
ct
=
ct
+
tc
:
GetCounter
(
0x1
)
end
return
ct
>=
6
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
end
function
c40732515
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c40732515
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c40732515
.
spcfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c40732515
.
spcfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
,
tp
)
local
tc
=
nil
if
#
g
==
1
then
if
#
g
==
1
then
tc
=
g
:
GetFirst
(
)
g
:
GetFirst
():
RemoveCounter
(
tp
,
0x1
,
6
,
REASON_RULE
)
else
else
for
i
=
1
,
6
do
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
40732515
,
2
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
40732515
,
2
))
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c40732515
.
spcfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
tp
)
tg
:
GetFirst
():
RemoveCounter
(
tp
,
0x1
,
1
,
REASON_RULE
)
end
end
end
tc
:
RemoveCounter
(
tp
,
0x1
,
6
,
REASON_RULE
)
end
end
function
c40732515
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c40732515
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SPECIAL
+
1
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SPECIAL
+
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