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
41df056e
Commit
41df056e
authored
Mar 12, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uptate scripts
parent
f2d8ad57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
18 deletions
+12
-18
script/c100306003.lua
script/c100306003.lua
+12
-14
script/c100306022.lua
script/c100306022.lua
+0
-4
No files found.
script/c100306003.lua
View file @
41df056e
...
@@ -33,21 +33,23 @@ end
...
@@ -33,21 +33,23 @@ end
function
c100306003
.
counterfilter
(
c
)
function
c100306003
.
counterfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
end
end
function
c100306003
.
exfilter
(
c
,
p
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsFaceup
()
and
c
:
IsControler
(
p
)
and
c
:
IsHasEffect
(
EFFECT_EXTRA_RELEASE_NONSUM
)
end
function
c100306003
.
fselect
(
c
,
tp
,
rg
,
sg
)
function
c100306003
.
fselect
(
c
,
tp
,
rg
,
sg
)
sg
:
AddCard
(
c
)
sg
:
AddCard
(
c
)
local
res
=
sg
:
FilterCount
(
c100306003
.
exfilter
,
nil
,
1
-
tp
)
<=
1
local
res
=
c100306003
.
fgoal
(
tp
,
sg
)
or
rg
:
IsExists
(
c100306003
.
fselect
,
1
,
sg
,
tp
,
rg
,
sg
)
and
(
Duel
.
GetMZoneCount
(
tp
,
sg
)
>
0
or
rg
:
IsExists
(
c100306003
.
fselect
,
1
,
sg
,
tp
,
rg
,
sg
))
sg
:
RemoveCard
(
c
)
sg
:
RemoveCard
(
c
)
return
res
return
res
end
end
function
c100306003
.
relfilter
(
c
,
g
)
return
g
:
IsContains
(
c
)
end
function
c100306003
.
fgoal
(
tp
,
sg
)
if
sg
:
GetCount
()
>
0
and
Duel
.
GetMZoneCount
(
tp
,
sg
)
>
0
then
Duel
.
SetSelectedCard
(
sg
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
end
function
c100306003
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100306003
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
Card
.
IsAttribute
,
nil
,
ATTRIBUTE_DARK
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
Card
.
IsAttribute
,
nil
,
ATTRIBUTE_DARK
)
local
exg
=
Duel
.
GetMatchingGroup
(
c100306003
.
exfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
1
-
tp
)
rg
:
Merge
(
exg
)
local
g
=
Group
.
CreateGroup
()
local
g
=
Group
.
CreateGroup
()
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
100306003
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
100306003
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
and
rg
:
IsExists
(
c100306003
.
fselect
,
1
,
nil
,
tp
,
rg
,
g
)
end
and
rg
:
IsExists
(
c100306003
.
fselect
,
1
,
nil
,
tp
,
rg
,
g
)
end
...
@@ -61,16 +63,12 @@ function c100306003.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -61,16 +63,12 @@ function c100306003.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
while
true
do
while
true
do
local
mg
=
rg
:
Filter
(
c100306003
.
fselect
,
g
,
tp
,
rg
,
g
)
local
mg
=
rg
:
Filter
(
c100306003
.
fselect
,
g
,
tp
,
rg
,
g
)
if
mg
:
GetCount
()
==
0
or
(
g
:
GetCount
()
>
0
and
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
and
not
Duel
.
SelectYesNo
(
tp
,
210
))
then
break
end
if
mg
:
GetCount
()
==
0
or
(
c100306003
.
fgoal
(
tp
,
sg
)
and
not
Duel
.
SelectYesNo
(
tp
,
210
))
then
break
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
mg
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
c100306003
.
relfilter
,
1
,
1
,
nil
,
mg
)
g
:
Merge
(
sg
)
g
:
Merge
(
sg
)
end
end
e
:
SetLabel
(
g
:
GetCount
())
e
:
SetLabel
(
g
:
GetCount
())
if
g
:
FilterCount
(
c100306003
.
exfilter
,
nil
,
1
-
tp
)
>=
1
then
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
5
)
fc
:
RegisterFlagEffect
(
100306122
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c100306003
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
function
c100306003
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
...
...
script/c100306022.lua
View file @
41df056e
...
@@ -24,7 +24,6 @@ function c100306022.initial_effect(c)
...
@@ -24,7 +24,6 @@ function c100306022.initial_effect(c)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_DARK
))
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_DARK
))
e3
:
SetCountLimit
(
1
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
c100306022
.
relcon
)
e3
:
SetValue
(
c100306022
.
relval
)
e3
:
SetValue
(
c100306022
.
relval
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--token
--token
...
@@ -44,9 +43,6 @@ function c100306022.initial_effect(c)
...
@@ -44,9 +43,6 @@ function c100306022.initial_effect(c)
e5
:
SetOperation
(
c100306022
.
spop
)
e5
:
SetOperation
(
c100306022
.
spop
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c100306022
.
relcon
(
e
)
return
e
:
GetHandler
():
GetFlagEffect
(
100306122
)
==
0
end
function
c100306022
.
relval
(
e
,
re
,
r
,
rp
)
function
c100306022
.
relval
(
e
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_COST
)
~=
0
return
bit
.
band
(
r
,
REASON_COST
)
~=
0
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