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
a5f5c123
Commit
a5f5c123
authored
Nov 20, 2017
by
nekrozar
Committed by
mercury233
Nov 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update (#973)
parent
f24f4371
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
21 additions
and
21 deletions
+21
-21
c1322368.lua
c1322368.lua
+1
-1
c1409474.lua
c1409474.lua
+1
-1
c18486927.lua
c18486927.lua
+1
-1
c20584712.lua
c20584712.lua
+1
-1
c21496848.lua
c21496848.lua
+2
-2
c39537362.lua
c39537362.lua
+3
-3
c40607210.lua
c40607210.lua
+2
-2
c41091257.lua
c41091257.lua
+1
-1
c53839837.lua
c53839837.lua
+2
-2
c54719828.lua
c54719828.lua
+2
-2
c56995655.lua
c56995655.lua
+1
-1
c58947797.lua
c58947797.lua
+1
-1
c73820802.lua
c73820802.lua
+1
-1
c7582066.lua
c7582066.lua
+1
-1
c94096018.lua
c94096018.lua
+1
-1
No files found.
c1322368.lua
View file @
a5f5c123
...
...
@@ -30,7 +30,7 @@ function c1322368.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_DECK
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c1322368
.
spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
zone
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CARDTYPE
)
e
:
SetLabel
(
Duel
.
SelectOption
(
tp
,
70
,
71
,
72
))
e
:
SetLabel
(
Duel
.
AnnounceType
(
tp
))
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
function
c1322368
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c1409474.lua
View file @
a5f5c123
...
...
@@ -22,7 +22,7 @@ end
function
c1409474
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CARDTYPE
)
Duel
.
SetTargetParam
(
Duel
.
SelectOption
(
tp
,
70
,
71
,
72
))
Duel
.
SetTargetParam
(
Duel
.
AnnounceType
(
tp
))
end
function
c1409474
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c18486927.lua
View file @
a5f5c123
...
...
@@ -24,7 +24,7 @@ end
function
c18486927
.
dectg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CARDTYPE
)
e
:
SetLabel
(
Duel
.
SelectOption
(
tp
,
70
,
71
,
72
))
e
:
SetLabel
(
Duel
.
AnnounceType
(
tp
))
end
function
c18486927
.
decop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c20584712.lua
View file @
a5f5c123
...
...
@@ -25,7 +25,7 @@ function c20584712.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_DECK
)
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CARDTYPE
)
e
:
SetLabel
(
Duel
.
SelectOption
(
tp
,
70
,
71
,
72
))
e
:
SetLabel
(
Duel
.
AnnounceType
(
tp
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
end
...
...
c21496848.lua
View file @
a5f5c123
...
...
@@ -14,8 +14,8 @@ function c21496848.initial_effect(c)
end
function
c21496848
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
0
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_DECK
)
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
21496848
,
5
)
)
local
ac
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
21496848
,
1
),
aux
.
Stringid
(
21496848
,
2
),
aux
.
Stringid
(
21496848
,
3
)
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CARDTYPE
)
local
ac
=
Duel
.
AnnounceType
(
tp
)
e
:
SetLabel
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
PLAYER_ALL
,
LOCATION_DECK
)
end
...
...
c39537362.lua
View file @
a5f5c123
...
...
@@ -23,7 +23,7 @@ end
function
c39537362
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
Duel
.
CheckEvent
(
EVENT_ATTACK_ANNOUNCE
)
and
tp
~=
Duel
.
GetTurnPlayer
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
39537362
,
1
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
39537362
,
1
))
then
e
:
SetLabel
(
1
)
Duel
.
SetTargetCard
(
Duel
.
GetAttacker
())
e
:
GetHandler
():
RegisterFlagEffect
(
0
,
RESET_CHAIN
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
39537362
,
2
))
...
...
@@ -41,8 +41,8 @@ function c39537362.activate(e,tp,eg,ep,ev,re,r,rp)
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
not
Duel
.
GetAttacker
():
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
):
RandomSelect
(
1
-
tp
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CARDTYPE
)
local
op
=
Duel
.
SelectOption
(
1
-
tp
,
70
,
71
,
72
)
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_CARDTYPE
)
local
op
=
Duel
.
AnnounceType
(
1
-
tp
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
Duel
.
ShuffleHand
(
tp
)
if
(
op
~=
0
and
tc
:
IsType
(
TYPE_MONSTER
))
or
(
op
~=
1
and
tc
:
IsType
(
TYPE_SPELL
))
or
(
op
~=
2
and
tc
:
IsType
(
TYPE_TRAP
))
then
...
...
c40607210.lua
View file @
a5f5c123
...
...
@@ -49,8 +49,8 @@ function c40607210.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c40607210
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
OPTION
)
local
op
=
Duel
.
SelectOption
(
tp
,
70
,
71
,
72
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
CARDTYPE
)
local
op
=
Duel
.
AnnounceType
(
tp
)
e
:
SetLabel
(
op
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
1
-
tp
,
LOCATION_DECK
)
end
...
...
c41091257.lua
View file @
a5f5c123
...
...
@@ -28,7 +28,7 @@ function c41091257.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CARDTYPE
)
e
:
SetLabel
(
Duel
.
SelectOption
(
tp
,
70
,
71
,
72
))
e
:
SetLabel
(
Duel
.
AnnounceType
(
tp
))
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c41091257
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c53839837.lua
View file @
a5f5c123
...
...
@@ -61,8 +61,8 @@ function c53839837.tgcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c53839837
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
53839837
,
5
)
)
local
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
53839837
,
1
),
aux
.
Stringid
(
53839837
,
2
),
aux
.
Stringid
(
53839837
,
3
)
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CARDTYPE
)
local
op
=
Duel
.
AnnounceType
(
tp
)
e
:
SetLabel
(
op
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
1
-
tp
,
LOCATION_DECK
)
end
...
...
c54719828.lua
View file @
a5f5c123
...
...
@@ -21,8 +21,8 @@ function c54719828.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c54719828
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
54719828
,
1
)
)
e
:
SetLabel
(
Duel
.
SelectOption
(
tp
,
70
,
71
,
72
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CARDTYPE
)
e
:
SetLabel
(
Duel
.
AnnounceType
(
tp
))
end
function
c54719828
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c56995655.lua
View file @
a5f5c123
...
...
@@ -28,7 +28,7 @@ function c56995655.op(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
if
not
tc
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CARDTYPE
)
local
op
=
Duel
.
SelectOption
(
tp
,
70
,
71
,
72
)
local
op
=
Duel
.
AnnounceType
(
tp
)
Duel
.
ConfirmCards
(
tp
,
tc
)
Duel
.
ShuffleHand
(
1
-
tp
)
if
(
op
==
0
and
tc
:
IsType
(
TYPE_MONSTER
))
or
(
op
==
1
and
tc
:
IsType
(
TYPE_SPELL
))
or
(
op
==
2
and
tc
:
IsType
(
TYPE_TRAP
))
then
...
...
c58947797.lua
View file @
a5f5c123
...
...
@@ -49,7 +49,7 @@ end
function
c58947797
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CARDTYPE
)
local
op
=
Duel
.
SelectOption
(
tp
,
70
,
71
,
72
)
local
op
=
Duel
.
AnnounceType
(
tp
)
e
:
SetLabel
(
bit
.
lshift
(
1
,
op
))
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
1
-
tp
,
LOCATION_DECK
)
end
...
...
c73820802.lua
View file @
a5f5c123
...
...
@@ -38,7 +38,7 @@ function c73820802.operation(e,tp,eg,ep,ev,re,r,rp)
if
e
:
GetLabel
()
==
0
then
return
end
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_CARDTYPE
)
local
op
=
Duel
.
SelectOption
(
1
-
tp
,
70
,
71
,
72
)
local
op
=
Duel
.
AnnounceType
(
1
-
tp
)
Duel
.
ConfirmDecktop
(
tp
,
1
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
local
tc
=
g
:
GetFirst
()
...
...
c7582066.lua
View file @
a5f5c123
...
...
@@ -23,7 +23,7 @@ function c7582066.atkop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
):
RandomSelect
(
tp
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CARDTYPE
)
local
op
=
Duel
.
SelectOption
(
tp
,
70
,
71
,
72
)
local
op
=
Duel
.
AnnounceType
(
tp
)
Duel
.
ConfirmCards
(
tp
,
tc
)
Duel
.
ShuffleHand
(
1
-
tp
)
if
(
op
==
0
and
tc
:
IsType
(
TYPE_MONSTER
))
or
(
op
==
1
and
tc
:
IsType
(
TYPE_SPELL
))
or
(
op
==
2
and
tc
:
IsType
(
TYPE_TRAP
))
then
...
...
c94096018.lua
View file @
a5f5c123
...
...
@@ -31,7 +31,7 @@ function c94096018.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_DECK
)
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CARDTYPE
)
e
:
SetLabel
(
Duel
.
SelectOption
(
tp
,
70
,
71
,
72
))
e
:
SetLabel
(
Duel
.
AnnounceType
(
tp
))
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
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