Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
Reinen
ygopro-scripts
Commits
6a003db6
Commit
6a003db6
authored
Feb 05, 2021
by
mercury233
Committed by
GitHub
Feb 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix クロノダイバー・ダブルバレル
parent
34f4a07e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
c91135480.lua
c91135480.lua
+7
-6
No files found.
c91135480.lua
View file @
6a003db6
...
...
@@ -26,7 +26,7 @@ function c91135480.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
g
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_MONSTER
)
then
return
true
end
if
g
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_SPELL
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsControlerCanBeChanged
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
then
return
true
end
and
Duel
.
IsExistingMatchingCard
(
c91135480
.
ctfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
then
return
true
end
if
g
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_TRAP
)
and
Duel
.
IsExistingMatchingCard
(
c91135480
.
dfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
then
return
true
end
return
false
...
...
@@ -40,15 +40,16 @@ end
function
c91135480
.
dfilter
(
c
)
return
c
:
IsFaceup
()
and
not
c
:
IsDisabled
()
and
c
:
IsType
(
TYPE_EFFECT
)
end
function
c91135480
.
ctfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsControlerCanBeChanged
()
end
function
c91135480
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
not
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
then
return
end
local
g
=
c
:
GetOverlayGroup
()
local
tg
=
Group
.
CreateGroup
()
if
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
then
tg
:
Merge
(
g
:
Filter
(
Card
.
IsType
,
nil
,
TYPE_MONSTER
))
end
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsControlerCanBeChanged
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
then
if
Duel
.
IsExistingMatchingCard
(
c91135480
.
ctfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
then
tg
:
Merge
(
g
:
Filter
(
Card
.
IsType
,
nil
,
TYPE_SPELL
))
end
if
Duel
.
IsExistingMatchingCard
(
c91135480
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
then
...
...
@@ -71,7 +72,7 @@ function c91135480.operation(e,tp,eg,ep,ev,re,r,rp)
if
sg
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_SPELL
)
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsControlerCanBeChanged
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c91135480
.
ctfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
Duel
.
GetControl
(
g
:
GetFirst
(),
tp
,
PHASE_END
,
1
)
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