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
33935dd3
Commit
33935dd3
authored
May 10, 2022
by
wyykak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 22202201
Signed-off-by:
wyykak
<
wyy_1414@126.com
>
parent
91ab3096
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
script/c22202201.lua
script/c22202201.lua
+8
-10
No files found.
script/c22202201.lua
View file @
33935dd3
...
...
@@ -36,24 +36,22 @@ function c22202201.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetCondition
(
c22202201
.
con
)
e1
:
SetTarget
(
c22202201
.
tg
)
e1
:
SetOperation
(
c22202201
.
op
)
e1
:
SetLabel
(
nseq
)
e1
:
SetLabel
(
nseq
,
1
-
tp
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
end
end
function
c22202201
.
filter
(
c
,
nseq
)
return
c
:
GetSequence
()
==
nseq
end
function
c22202201
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c22202201
.
filter
,
1
,
nil
,
e
:
GetLabel
())
function
c22202201
.
filter
(
c
,
nseq
,
player
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
GetSequence
()
==
nseq
and
c
:
IsControler
(
player
)
end
function
c22202201
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetTargetCard
(
eg
)
if
chk
==
0
then
return
eg
:
IsExists
(
c22202201
.
filter
,
1
,
nil
,
e
:
GetLabel
())
end
local
g
=
eg
:
Filter
(
c22202201
.
filter
,
nil
,
e
:
GetLabel
())
g
:
ForEach
(
Card
.
CreateEffectRelation
,
e
)
g
:
KeepAlive
()
e
:
SetLabelObject
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c22202201
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -61,7 +59,7 @@ function c22202201.op(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanTurnSet
()
then
Duel
.
ChangePosition
(
c
,
POS_FACEDOWN
)
Duel
.
RaiseEvent
(
c
,
EVENT_SSET
,
e
,
REASON_EFFECT
,
tp
,
tp
,
0
)
local
g
=
e
g
:
Filter
(
c22202201
.
filter
,
nil
,
e
:
GetLabel
()
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
):
Filter
(
Card
.
IsAbleToGrave
,
nil
)
local
g
=
e
:
GetLabelObject
(
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
):
Filter
(
Card
.
IsAbleToGrave
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
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