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
306fe320
Commit
306fe320
authored
Jan 12, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8e609c44
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
9 deletions
+6
-9
c42461852.lua
c42461852.lua
+2
-3
c6579928.lua
c6579928.lua
+0
-1
c6795211.lua
c6795211.lua
+0
-2
c96012004.lua
c96012004.lua
+4
-3
No files found.
c42461852.lua
View file @
306fe320
...
...
@@ -48,13 +48,12 @@ function c42461852.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
c42461852
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
IsPlayerCanSpecialSummon
(
tp
)
or
Duel
.
GetLocationCountFromEx
(
tp
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummon
(
tp
)
or
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
==
0
then
return
end
Duel
.
ShuffleExtra
(
tp
)
Duel
.
ConfirmExtratop
(
tp
,
1
)
local
tc
=
Duel
.
GetExtraTopGroup
(
tp
,
1
):
GetFirst
()
if
tc
:
IsType
(
TYPE_LINK
)
and
tc
:
IsRace
(
RACE_CYBERSE
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
tc
)
>
0
and
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
if
tc
:
IsType
(
TYPE_LINK
)
and
tc
:
IsRace
(
RACE_CYBERSE
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
c6579928.lua
View file @
306fe320
...
...
@@ -5,7 +5,6 @@ function c6579928.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
6579928
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetTarget
(
c6579928
.
thtg
)
e1
:
SetOperation
(
c6579928
.
thop
)
...
...
c6795211.lua
View file @
306fe320
...
...
@@ -37,8 +37,6 @@ end
function
c6795211
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
>
0
or
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c6795211
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
...
...
c96012004.lua
View file @
306fe320
...
...
@@ -17,7 +17,7 @@ function c96012004.initial_effect(c)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCondition
(
c96012004
.
coincon
)
e2
:
SetOperation
(
c96012004
.
coinop
)
e2
:
SetLabel
(
1
)
e2
:
SetLabel
(
2
)
c
:
RegisterEffect
(
e2
)
end
function
c96012004
.
coincon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -34,14 +34,15 @@ function c96012004.cointg(e,tp,eg,ep,ev,re,r,rp,chk)
if
cc
==
1
then
return
end
local
te
=
Duel
.
GetChainInfo
(
cc
-
1
,
CHAININFO_TRIGGERING_EFFECT
)
local
ex
,
eg
,
et
,
cp
,
ct
=
Duel
.
GetOperationInfo
(
cc
-
1
,
CATEGORY_COIN
)
if
ex
and
ct
==
1
and
te
:
IsActiveType
(
TYPE_MONSTER
)
then
if
ex
and
ct
==
1
and
te
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
SelectYesNo
(
tp
,
94
)
then
e
:
SetLabel
(
1
)
e
:
SetLabelObject
(
te
)
end
end
function
c96012004
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
e
:
GetLabel
()
==
0
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
e
:
GetLabel
()
==
0
then
return
end
if
e
:
GetLabel
()
==
2
and
Duel
.
GetCurrentChain
()
~=
ev
+
1
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_COIN
)
local
res
=
1
-
Duel
.
SelectOption
(
tp
,
60
,
61
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
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