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
1
Issues
1
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
HiiragiGuardians
ygopro-THC-cards
Commits
828c8466
Commit
828c8466
authored
Aug 04, 2022
by
wyykak
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch-3' into 'master'
Update c21061.lua 修复跳红 See merge request
!23
parents
9882e3e7
69ae68f5
Pipeline
#15353
passed with stage
in 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
18 deletions
+16
-18
script/c21061.lua
script/c21061.lua
+16
-18
No files found.
script/c21061.lua
View file @
828c8466
...
...
@@ -26,7 +26,7 @@ function c21061.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c21061
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
g
:
GetCount
()
>
0
then
local
g1
=
g
:
GetMinGroup
(
Card
.
GetAttack
)
...
...
@@ -62,34 +62,32 @@ function c21061.op(e,tp,eg,ep,ev,re,r,rp)
local
sel
=
e
:
GetLabel
()
if
sel
<
1
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g1
=
g
:
GetMinGroup
(
Card
.
GetAttack
)
local
g2
=
g
:
GetMaxGroup
(
Card
.
GetAttack
):
Filter
(
Card
.
IsCanTurnSet
,
nil
)
if
sel
==
1
and
g1
:
GetCount
()
>
0
then
Duel
.
Destroy
(
g1
,
REASON_EFFECT
)
elseif
sel
==
2
and
g2
:
GetCount
()
>
0
then
Duel
.
ChangePosition
(
g2
,
POS_FACEDOWN_DEFENSE
)
else
return
end
if
g
:
GetCount
()
>
0
then
local
g1
=
g
:
GetMinGroup
(
Card
.
GetAttack
)
local
g2
=
g
:
GetMaxGroup
(
Card
.
GetAttack
):
Filter
(
Card
.
IsCanTurnSet
,
nil
)
if
sel
==
1
and
g1
:
GetCount
()
>
0
then
Duel
.
Destroy
(
g1
,
REASON_EFFECT
)
elseif
sel
==
2
and
g2
:
GetCount
()
>
0
then
Duel
.
ChangePosition
(
g2
,
POS_FACEDOWN_DEFENSE
)
end
end
end
function
c21061
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
c21061
.
desfilter
(
c
)
return
c
:
IsFacedown
()
and
c
:
IsDestructable
()
return
c
:
IsFacedown
()
end
function
c21061
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
c21061
.
desfilter
(
chkc
)
end
if
chk
==
0
then
return
true
end
if
Duel
.
IsExistingTarget
(
c21061
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c21061
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c21061
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c21061
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
c21061
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
Is
Facedown
()
and
tc
:
Is
RelateToEffect
(
e
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
\ No newline at end of file
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