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
684b54f0
Commit
684b54f0
authored
Jan 27, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3902423f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
18 deletions
+27
-18
script/c100416027.lua
script/c100416027.lua
+20
-18
script/c100416038.lua
script/c100416038.lua
+7
-0
No files found.
script/c100416027.lua
View file @
684b54f0
...
...
@@ -29,25 +29,27 @@ function c100416027.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c100416027
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
return
ph
==
PHASE_MAIN1
or
ph
==
PHASE_MAIN2
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
end
function
c100416027
.
rfilter
(
c
)
if
c
:
IsLocation
(
LOCATION_HAND
+
LOCATION_GRAVE
)
then
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x261
)
and
c
:
IsReleasable
()
else
return
c
:
IsLevelAbove
(
7
)
and
c
:
IsSetCard
(
0x261
)
and
c
:
IsAbleToRemove
()
and
c
:
IsHasEffect
(
100416038
,
tp
)
end
function
c100416027
.
rfilter
(
c
,
tp
)
return
c
:
IsLevelAbove
(
7
)
and
(
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
()
and
c
:
IsControler
(
1
-
tp
))
end
function
c100416027
.
excostfilter
(
c
,
tp
)
return
c
:
IsAbleToRemove
()
and
c
:
IsHasEffect
(
100416038
,
tp
)
end
function
c100416027
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c100416038
.
rfilter
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c100416038
.
rfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
)
local
tc
=
g
:
GetFirst
()
local
te
=
tc
:
IsHasEffect
(
100416038
,
tp
)
if
te
then
te
:
UseCountLimit
(
tp
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
local
g1
=
Duel
.
GetReleaseGroup
(
tp
,
true
):
Filter
(
c100416027
.
rfilter
,
e
:
GetHandler
(),
tp
)
local
g2
=
Duel
.
GetMatchingGroup
(
c100416027
.
excostfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
tp
)
g1
:
Merge
(
g2
)
if
chk
==
0
then
return
g1
:
GetCount
()
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
tc
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
local
te
=
tc
:
IsHasEffect
(
100416038
,
tp
)
if
te
then
te
:
UseCountLimit
(
tp
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
end
else
Duel
.
Release
(
tc
,
REASON_COST
)
end
...
...
@@ -72,10 +74,10 @@ function c100416027.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c100416027
.
splimit
(
e
,
c
)
return
not
c
:
IsLevel
(
0
)
return
c
:
IsLevel
(
0
)
end
function
c100416027
.
thfilter
(
c
)
return
c
:
Is
LevelBelow
(
0x261
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
100416027
)
and
c
:
IsAbleToHand
()
return
c
:
Is
SetCard
(
0x261
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
100416027
)
and
c
:
IsAbleToHand
()
end
function
c100416027
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100416027
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
script/c100416038.lua
View file @
684b54f0
...
...
@@ -33,6 +33,7 @@ function c100416038.initial_effect(c)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCondition
(
c100416038
.
tkccon
)
e4
:
SetCost
(
c100416038
.
tkccost
)
e4
:
SetTarget
(
c100416038
.
tkctg
)
e4
:
SetOperation
(
c100416038
.
tkcop
)
...
...
@@ -41,6 +42,12 @@ end
function
c100416038
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x60
,
1
)
end
function
c100416038
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x261
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
end
function
c100416038
.
tkccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c100416038
.
cfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c100416038
.
tkccost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x60
,
7
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x60
,
e
:
GetHandler
():
GetCounter
(
0x60
),
REASON_COST
)
...
...
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