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
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
Commits
86caafdf
Commit
86caafdf
authored
Jul 31, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
25a6d661
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
9 deletions
+11
-9
c24838456.lua
c24838456.lua
+1
-1
c57707471.lua
c57707471.lua
+1
-1
c74439492.lua
c74439492.lua
+2
-2
c80549379.lua
c80549379.lua
+2
-1
c93016201.lua
c93016201.lua
+1
-1
c95519486.lua
c95519486.lua
+2
-2
c99064191.lua
c99064191.lua
+1
-1
utility.lua
utility.lua
+1
-0
No files found.
c24838456.lua
View file @
86caafdf
...
@@ -26,7 +26,7 @@ function c24838456.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -26,7 +26,7 @@ function c24838456.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
te
=
Duel
.
GetChainInfo
(
i
,
CHAININFO_TRIGGERING_EFFECT
)
local
te
=
Duel
.
GetChainInfo
(
i
,
CHAININFO_TRIGGERING_EFFECT
)
local
tc
=
te
:
GetHandler
()
local
tc
=
te
:
GetHandler
()
ng
:
AddCard
(
tc
)
ng
:
AddCard
(
tc
)
if
t
t
c
:
IsRelateToEffect
(
te
)
then
if
tc
:
IsRelateToEffect
(
te
)
then
dg
:
AddCard
(
tc
)
dg
:
AddCard
(
tc
)
end
end
end
end
...
...
c57707471.lua
View file @
86caafdf
...
@@ -67,7 +67,7 @@ function c57707471.xyztg(e,tp,eg,ep,ev,re,r,rp,chk,c,og,min,max)
...
@@ -67,7 +67,7 @@ function c57707471.xyztg(e,tp,eg,ep,ev,re,r,rp,chk,c,og,min,max)
mg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
)
mg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
)
end
end
local
b1
=
Duel
.
CheckXyzMaterial
(
c
,
nil
,
6
,
2
,
2
,
og
)
local
b1
=
Duel
.
CheckXyzMaterial
(
c
,
nil
,
6
,
2
,
2
,
og
)
local
b2
=
ct
<
1
and
(
not
min
or
min
<=
1
)
and
mg
:
IsExists
(
c57707471
.
ovfilter
,
1
,
nil
)
local
b2
=
ct
<
1
and
(
not
min
or
min
<=
1
)
and
mg
:
IsExists
(
c57707471
.
ovfilter
,
1
,
nil
,
tp
,
c
)
local
g
=
nil
local
g
=
nil
if
b2
and
(
not
b1
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
57707471
,
0
)))
then
if
b2
and
(
not
b1
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
57707471
,
0
)))
then
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
...
...
c74439492.lua
View file @
86caafdf
...
@@ -18,13 +18,13 @@ function c74439492.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -18,13 +18,13 @@ function c74439492.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c74439492
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c74439492
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c74439492
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
2
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c74439492
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
2
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c74439492
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
false
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c74439492
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c74439492
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c74439492
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
local
g
=
Duel
.
GetMatchingGroup
(
c74439492
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
true
)
local
g
=
Duel
.
GetMatchingGroup
(
c74439492
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
ac
=
g
:
GetFirst
()
local
ac
=
g
:
GetFirst
()
while
ac
do
while
ac
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c80549379.lua
View file @
86caafdf
...
@@ -14,8 +14,9 @@ function c80549379.filter(c)
...
@@ -14,8 +14,9 @@ function c80549379.filter(c)
end
end
function
c80549379
.
repcon
(
e
)
function
c80549379
.
repcon
(
e
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tp
=
c
:
GetControler
()
return
c
:
IsFaceup
()
and
c
:
IsReason
(
REASON_DESTROY
)
return
c
:
IsFaceup
()
and
c
:
IsReason
(
REASON_DESTROY
)
and
Duel
.
IsExistingMatchingCard
(
c80549379
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
()
)
and
Duel
.
IsExistingMatchingCard
(
c80549379
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
end
function
c80549379
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c80549379
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c93016201.lua
View file @
86caafdf
...
@@ -64,7 +64,7 @@ function c93016201.target1(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -64,7 +64,7 @@ function c93016201.target1(e,tp,eg,ep,ev,re,r,rp,chk)
local
te
=
Duel
.
GetChainInfo
(
ct
-
1
,
CHAININFO_TRIGGERING_EFFECT
)
local
te
=
Duel
.
GetChainInfo
(
ct
-
1
,
CHAININFO_TRIGGERING_EFFECT
)
local
tc
=
te
:
GetHandler
()
local
tc
=
te
:
GetHandler
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
tc
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
tc
,
1
,
0
,
0
)
if
t
t
c
:
IsRelateToEffect
(
te
)
then
if
tc
:
IsRelateToEffect
(
te
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
tc
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
tc
,
1
,
0
,
0
)
end
end
end
end
...
...
c95519486.lua
View file @
86caafdf
...
@@ -21,14 +21,14 @@ function c95519486.initial_effect(c)
...
@@ -21,14 +21,14 @@ function c95519486.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c95519486
.
cfilter
(
c
)
function
c95519486
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
c
:
GetCode
()
~=
95519486
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsCode
(
95519486
)
end
end
function
c95519486
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c95519486
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
()
==
Duel
.
GetAttacker
()
and
Duel
.
GetAttackTarget
()
return
e
:
GetHandler
()
==
Duel
.
GetAttacker
()
and
Duel
.
GetAttackTarget
()
and
Duel
.
IsExistingMatchingCard
(
c95519486
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c95519486
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
c95519486
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c95519486
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetAttackTarget
():
IsRelateToBattle
()
()
end
if
chk
==
0
then
return
Duel
.
GetAttackTarget
():
IsRelateToBattle
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
Duel
.
GetAttackTarget
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
Duel
.
GetAttackTarget
(),
1
,
0
,
0
)
end
end
function
c95519486
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c95519486
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c99064191.lua
View file @
86caafdf
...
@@ -34,7 +34,7 @@ function c99064191.target1(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -34,7 +34,7 @@ function c99064191.target1(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsChainDisablable
(
ct
-
1
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
99064191
,
1
))
then
and
Duel
.
IsChainDisablable
(
ct
-
1
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
99064191
,
1
))
then
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
tc
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
tc
,
1
,
0
,
0
)
if
t
t
c
:
IsRelateToEffect
(
pe
)
then
if
tc
:
IsRelateToEffect
(
pe
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
tc
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
tc
,
1
,
0
,
0
)
end
end
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
...
...
utility.lua
View file @
86caafdf
...
@@ -1577,6 +1577,7 @@ function Auxiliary.PendOperation()
...
@@ -1577,6 +1577,7 @@ function Auxiliary.PendOperation()
until
ft
==
0
or
ect
==
0
or
not
Duel
.
SelectYesNo
(
tp
,
210
)
until
ft
==
0
or
ect
==
0
or
not
Duel
.
SelectYesNo
(
tp
,
210
)
local
hg
=
tg
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
local
hg
=
tg
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
if
ft
>
0
and
ect
==
0
and
hg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
210
)
then
if
ft
>
0
and
ect
==
0
and
hg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
210
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
hg
:
Select
(
tp
,
1
,
ft
,
nil
)
local
g
=
hg
:
Select
(
tp
,
1
,
ft
,
nil
)
sg
:
Merge
(
g
)
sg
:
Merge
(
g
)
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