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
d79c0d07
Commit
d79c0d07
authored
Jul 18, 2017
by
nekrozar
Committed by
mercury233
Jul 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (#895)
parent
2d50e7a5
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
29 additions
and
19 deletions
+29
-19
c10406322.lua
c10406322.lua
+3
-2
c10809984.lua
c10809984.lua
+2
-1
c15800838.lua
c15800838.lua
+2
-1
c18631392.lua
c18631392.lua
+8
-7
c24413299.lua
c24413299.lua
+2
-1
c33423043.lua
c33423043.lua
+2
-1
c39238953.lua
c39238953.lua
+2
-1
c39913299.lua
c39913299.lua
+3
-2
c72403299.lua
c72403299.lua
+3
-2
c78053598.lua
c78053598.lua
+2
-1
No files found.
c10406322.lua
View file @
d79c0d07
...
@@ -30,8 +30,9 @@ function c10406322.initial_effect(c)
...
@@ -30,8 +30,9 @@ function c10406322.initial_effect(c)
end
end
function
c10406322
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10406322
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
local
ac
=
Duel
.
AnnounceCard
(
tp
)
c10406322
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
local
ac
=
Duel
.
AnnounceCardFilter
(
tp
,
table.unpack
(
c10406322
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
end
end
...
...
c10809984.lua
View file @
d79c0d07
...
@@ -17,7 +17,8 @@ end
...
@@ -17,7 +17,8 @@ end
function
c10809984
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10809984
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
local
ac
=
Duel
.
AnnounceCard
(
tp
)
c10809984
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
local
ac
=
Duel
.
AnnounceCardFilter
(
tp
,
table.unpack
(
c10809984
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
end
end
...
...
c15800838.lua
View file @
d79c0d07
...
@@ -14,7 +14,8 @@ function c15800838.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -14,7 +14,8 @@ function c15800838.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
and
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
local
ac
=
Duel
.
AnnounceCard
(
tp
)
c15800838
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
local
ac
=
Duel
.
AnnounceCardFilter
(
tp
,
table.unpack
(
c15800838
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
end
end
...
...
c18631392.lua
View file @
d79c0d07
...
@@ -46,17 +46,18 @@ function c18631392.spop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -46,17 +46,18 @@ function c18631392.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
SendtoGrave
(
g1
,
REASON_COST
)
Duel
.
SendtoGrave
(
g1
,
REASON_COST
)
end
end
function
c18631392
.
anctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c18631392
.
anctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
if
not
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
3
)
then
return
false
end
if
not
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
3
)
then
return
false
end
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
3
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
3
)
return
g
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
>
0
return
g
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
>
0
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
0
)
c18631392
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
local
ac1
=
Duel
.
AnnounceCard
(
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
0
)
local
ac1
=
Duel
.
AnnounceCardFilter
(
tp
,
table.unpack
(
c18631392
.
announce_filter
))
local
ac2
=
Duel
.
AnnounceCard
(
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
0
)
local
ac2
=
Duel
.
AnnounceCardFilter
(
tp
,
table.unpack
(
c18631392
.
announce_filter
))
local
ac3
=
Duel
.
AnnounceCard
(
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
local
ac3
=
Duel
.
AnnounceCardFilter
(
tp
,
table.unpack
(
c18631392
.
announce_filter
))
e
:
SetOperation
(
c18631392
.
retop
(
ac1
,
ac2
,
ac3
))
e
:
SetOperation
(
c18631392
.
retop
(
ac1
,
ac2
,
ac3
))
end
end
function
c18631392
.
hfilter
(
c
,
code1
,
code2
,
code3
)
function
c18631392
.
hfilter
(
c
,
code1
,
code2
,
code3
)
...
...
c24413299.lua
View file @
d79c0d07
...
@@ -19,7 +19,8 @@ function c24413299.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -19,7 +19,8 @@ function c24413299.target(e,tp,eg,ep,ev,re,r,rp,chk)
and
(
Duel
.
IsExistingMatchingCard
(
Card
.
IsControlerCanBeChanged
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
(
Duel
.
IsExistingMatchingCard
(
Card
.
IsControlerCanBeChanged
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
c24413299
.
desfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
))
end
or
Duel
.
IsExistingMatchingCard
(
c24413299
.
desfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
))
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
local
ac
=
Duel
.
AnnounceCard
(
tp
)
c24413299
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
local
ac
=
Duel
.
AnnounceCardFilter
(
tp
,
table.unpack
(
c24413299
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
end
end
...
...
c33423043.lua
View file @
d79c0d07
...
@@ -13,7 +13,8 @@ function c33423043.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -13,7 +13,8 @@ function c33423043.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
and
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
and
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
local
ac
=
Duel
.
AnnounceCard
(
tp
)
c33423043
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
local
ac
=
Duel
.
AnnounceCardFilter
(
tp
,
table.unpack
(
c33423043
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
end
end
...
...
c39238953.lua
View file @
d79c0d07
...
@@ -18,7 +18,8 @@ function c39238953.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -18,7 +18,8 @@ function c39238953.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_DECK
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_DECK
,
1
,
nil
)
or
Duel
.
IsPlayerCanSpecialSummon
(
tp
)
end
or
Duel
.
IsPlayerCanSpecialSummon
(
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
local
ac
=
Duel
.
AnnounceCard
(
tp
,
TYPE_MONSTER
)
c39238953
.
announce_filter
=
{
TYPE_MONSTER
,
OPCODE_ISTYPE
,
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
,
OPCODE_AND
}
local
ac
=
Duel
.
AnnounceCardFilter
(
tp
,
table.unpack
(
c39238953
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
end
end
...
...
c39913299.lua
View file @
d79c0d07
...
@@ -16,8 +16,9 @@ end
...
@@ -16,8 +16,9 @@ end
function
c39913299
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c39913299
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
local
ac
=
Duel
.
AnnounceCard
(
tp
)
c39913299
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
local
ac
=
Duel
.
AnnounceCardFilter
(
tp
,
table.unpack
(
c39913299
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
end
end
...
...
c72403299.lua
View file @
d79c0d07
...
@@ -13,8 +13,9 @@ function c72403299.initial_effect(c)
...
@@ -13,8 +13,9 @@ function c72403299.initial_effect(c)
end
end
function
c72403299
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c72403299
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
local
ac
=
Duel
.
AnnounceCard
(
tp
)
c72403299
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
local
ac
=
Duel
.
AnnounceCardFilter
(
tp
,
table.unpack
(
c72403299
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
end
end
...
...
c78053598.lua
View file @
d79c0d07
...
@@ -12,7 +12,8 @@ end
...
@@ -12,7 +12,8 @@ end
function
c78053598
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c78053598
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_DECK
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_DECK
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
local
code
=
Duel
.
AnnounceCard
(
tp
,
TYPE_MONSTER
)
c78053598
.
announce_filter
=
{
TYPE_MONSTER
,
OPCODE_ISTYPE
,
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
,
OPCODE_AND
}
local
code
=
Duel
.
AnnounceCardFilter
(
tp
,
table.unpack
(
c78053598
.
announce_filter
))
Duel
.
SetTargetParam
(
code
)
Duel
.
SetTargetParam
(
code
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
TYPE_MONSTER
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
TYPE_MONSTER
)
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