Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-THC-cards
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
八宫一月
ygopro-THC-cards
Commits
51860c27
Commit
51860c27
authored
Feb 09, 2022
by
Grajade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c86379654.lua
parent
e0938fbb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
25 deletions
+36
-25
script/c86379654.lua
script/c86379654.lua
+36
-25
No files found.
script/c86379654.lua
View file @
51860c27
...
...
@@ -111,22 +111,22 @@ function c86379654.operation(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c86379654
.
spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
rc
=
g
:
GetFirst
()
local
rc
=
Duel
.
GetOperatedGroup
()
:
GetFirst
()
local
tg
=
rc
:
GetColumnGroup
()
tg
:
AddCard
(
rc
)
Duel
.
Remove
(
tg
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_TEMPORARY
)
if
Duel
.
Remove
(
tg
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_TEMPORARY
)
<
1
then
return
end
local
fid
=
c
:
GetFieldID
()
local
rg
=
Duel
.
GetOperatedGroup
()
if
rg
:
GetCount
()
>
0
then
rg
:
KeepAlive
()
for
tc
in
aux
.
Next
(
rg
)
do
tc
:
RegisterFlagEffect
(
86379654
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
tc
:
RegisterFlagEffect
(
86379655
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
2
,
fid
)
end
rg
:
KeepAlive
()
local
ct
=
Duel
.
GetTurnCount
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabel
(
fid
)
e1
:
SetLabel
(
fid
,
ct
)
e1
:
SetLabelObject
(
rg
)
e1
:
SetCondition
(
c86379654
.
con1_2
)
e1
:
SetOperation
(
c86379654
.
op1_2
)
...
...
@@ -134,23 +134,34 @@ function c86379654.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
end
end
function
c86379654
.
refilter
(
c
)
return
c
:
GetFlagEffect
(
86379654
)
>
0
end
function
c86379654
.
con1_2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
e
:
GetLabelObject
()
local
sg
=
g
:
Filter
(
c86379654
.
refilter
,
nil
)
return
sg
:
GetCount
()
<=
0
local
fid
,
ct
=
e
:
GetLabel
()
return
Duel
.
GetTurnCount
()
~=
ct
end
function
c86379654
.
refilter2
(
c
,
fid
)
return
c
:
GetFlagEffect
(
86379655
)
>
0
and
c
:
GetFlagEffectLabel
(
86379655
)
==
fid
end
function
c86379654
.
op1_2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
fid
,
oil
=
e
:
GetLabel
()
local
g
=
e
:
GetLabelObject
()
local
sg
=
g
:
Filter
(
c86379654
.
refilter2
,
nil
,
e
:
GetLabel
())
local
sg
=
g
:
Filter
(
c86379654
.
refilter2
,
nil
,
fid
)
for
i
=
1
,
2
do
local
p
=
tp
if
i
==
2
then
p
=
1
-
tp
end
if
sg
:
GetCount
()
<
1
then
return
end
local
lg
=
sg
:
Filter
(
Card
.
IsPreviousControler
,
nil
,
p
)
local
ft
=
Duel
.
GetLocationCount
(
p
,
LOCATION_MZONE
)
if
lg
and
ft
>
0
and
ft
<
lg
:
GetCount
()
then
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
aux
.
Stringid
(
86379654
,
4
))
local
rg
=
lg
:
Select
(
p
,
ft
,
ft
,
nil
)
for
tc
in
aux
.
Next
(
rg
)
do
Duel
.
ReturnToField
(
tc
)
sg
:
RemoveCard
(
tc
)
end
end
end
if
sg
:
GetCount
()
<
1
then
return
end
for
tc
in
aux
.
Next
(
sg
)
do
Duel
.
ReturnToField
(
tc
)
...
...
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