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
八宫一月
ygopro-scripts
Commits
6104bd93
Commit
6104bd93
authored
Sep 15, 2019
by
nekrozar
Committed by
GitHub
Sep 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Duel.ChangeChainOperation (#1219)
parent
50aeaa40
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
17 deletions
+3
-17
c42921475.lua
c42921475.lua
+0
-4
c53199020.lua
c53199020.lua
+0
-4
c65824822.lua
c65824822.lua
+0
-1
c69840739.lua
c69840739.lua
+0
-4
c84442536.lua
c84442536.lua
+3
-4
No files found.
c42921475.lua
View file @
6104bd93
...
@@ -62,10 +62,6 @@ function c42921475.chop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,10 +62,6 @@ function c42921475.chop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ChangeChainOperation
(
ev
,
c42921475
.
repop
)
Duel
.
ChangeChainOperation
(
ev
,
c42921475
.
repop
)
end
end
function
c42921475
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c42921475
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetType
()
==
TYPE_SPELL
or
c
:
GetType
()
==
TYPE_TRAP
then
c
:
CancelToGrave
(
false
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c42921475
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c42921475
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c53199020.lua
View file @
6104bd93
...
@@ -58,10 +58,6 @@ function c53199020.chop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,10 +58,6 @@ function c53199020.chop2(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ChangeChainOperation
(
ev
,
c53199020
.
rep_op
)
Duel
.
ChangeChainOperation
(
ev
,
c53199020
.
rep_op
)
end
end
function
c53199020
.
rep_op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c53199020
.
rep_op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetType
()
==
TYPE_SPELL
or
c
:
GetType
()
==
TYPE_TRAP
then
c
:
CancelToGrave
(
false
)
end
Duel
.
Hint
(
HINT_CARD
,
0
,
53199020
)
Duel
.
Hint
(
HINT_CARD
,
0
,
53199020
)
Duel
.
DiscardHand
(
1
-
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
1
-
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
end
end
c65824822.lua
View file @
6104bd93
...
@@ -10,7 +10,6 @@ function c65824822.initial_effect(c)
...
@@ -10,7 +10,6 @@ function c65824822.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c65824822
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65824822
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
CancelToGrave
(
false
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
local
sg
=
g
:
RandomSelect
(
1
-
tp
,
1
,
nil
)
local
sg
=
g
:
RandomSelect
(
1
-
tp
,
1
,
nil
)
...
...
c69840739.lua
View file @
6104bd93
...
@@ -50,10 +50,6 @@ function c69840739.filter(c)
...
@@ -50,10 +50,6 @@ function c69840739.filter(c)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
end
function
c69840739
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69840739
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetType
()
==
TYPE_SPELL
or
c
:
GetType
()
==
TYPE_TRAP
then
c
:
CancelToGrave
(
false
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c69840739
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c69840739
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c84442536.lua
View file @
6104bd93
...
@@ -20,7 +20,7 @@ function c84442536.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -20,7 +20,7 @@ function c84442536.condition(e,tp,eg,ep,ev,re,r,rp)
if
not
g
or
g
:
GetCount
()
~=
1
then
return
false
end
if
not
g
or
g
:
GetCount
()
~=
1
then
return
false
end
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
e
:
SetLabelObject
(
tc
)
e
:
SetLabelObject
(
tc
)
return
c84442536
.
cfilter
(
tc
,
tp
)
return
c84442536
.
cfilter
(
tc
,
tp
)
end
end
function
c84442536
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c84442536
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
...
@@ -57,8 +57,7 @@ end
...
@@ -57,8 +57,7 @@ end
function
c84442536
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c84442536
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
if
tc
:
IsRelateToEffect
(
e
)
then
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
c
:
CancelToGrave
(
false
)
end
end
end
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