Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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-scripts-888
Commits
167309ac
Commit
167309ac
authored
Apr 19, 2021
by
Chrono-Genex
Committed by
GitHub
Apr 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Extra Gate (#1622)
parent
b7e0addc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
c7405310.lua
c7405310.lua
+2
-4
No files found.
c7405310.lua
View file @
167309ac
...
...
@@ -9,7 +9,7 @@ function c7405310.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c7405310
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
~=
0
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_EXTRA
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINGMSG_LVRANK
)
local
lv
=
Duel
.
AnnounceLevel
(
tp
)
...
...
@@ -19,15 +19,13 @@ function c7405310.filter(c,lv)
return
c
:
IsLevel
(
lv
)
end
function
c7405310
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
IsPlayerCanRemove
(
tp
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c7405310
.
filter
,
1
-
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
:
GetLabel
())
if
g
:
GetCount
()
~=
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_REMOVE
)
local
rg
=
g
:
FilterSelect
(
1
-
tp
,
Card
.
IsAbleToRemove
,
1
,
1
,
nil
)
if
rg
:
GetCount
()
~=
0
then
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_EFFECT
)
else
local
cg
=
Duel
.
GetFieldGroup
(
1
-
tp
,
LOCATION_EXTRA
,
0
)
Duel
.
ConfirmCards
(
tp
,
cg
)
end
else
Duel
.
DiscardHand
(
tp
,
nil
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
...
...
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