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
2fb0eec1
Commit
2fb0eec1
authored
Jul 12, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f2847f53
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
17 deletions
+65
-17
c15187079.lua
c15187079.lua
+20
-5
c89538537.lua
c89538537.lua
+23
-8
c99004752.lua
c99004752.lua
+22
-4
No files found.
c15187079.lua
View file @
2fb0eec1
...
...
@@ -22,7 +22,7 @@ function c15187079.initial_effect(c)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
e6
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
c
:
RegisterEffect
(
e6
)
--
damage
--
control
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetDescription
(
aux
.
Stringid
(
15187079
,
0
))
e7
:
SetCategory
(
CATEGORY_CONTROL
)
...
...
@@ -43,16 +43,31 @@ function c15187079.sdcon(e)
return
((
f1
==
nil
or
not
f1
:
IsFaceup
())
and
(
f2
==
nil
or
not
f2
:
IsFaceup
()))
end
function
c15187079
.
ctcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
1
,
e
:
GetHandler
())
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
nil
,
1
,
1
,
e
:
GetHandler
())
Duel
.
Release
(
g
,
REASON_COST
)
e
:
SetLabel
(
1
)
return
true
end
function
c15187079
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToChangeControler
()
end
function
c15187079
.
costfilter
(
c
,
tp
)
return
Duel
.
IsExistingTarget
(
c15187079
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
c
)
end
function
c15187079
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c15187079
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c15187079
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
if
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
return
Duel
.
CheckReleaseGroup
(
tp
,
c15187079
.
costfilter
,
1
,
c
,
tp
)
else
return
Duel
.
IsExistingTarget
(
c15187079
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
end
if
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
c15187079
.
costfilter
,
1
,
1
,
c
,
tp
)
Duel
.
Release
(
sg
,
REASON_COST
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c15187079
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
g
,
1
,
0
,
0
)
...
...
c89538537.lua
View file @
2fb0eec1
...
...
@@ -27,19 +27,34 @@ function c89538537.initial_effect(c)
e2
:
SetOperation
(
c89538537
.
thop
)
c
:
RegisterEffect
(
e2
)
end
function
c89538537
.
rthcfilter
(
c
)
function
c89538537
.
rthcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
return
true
end
function
c89538537
.
rthcfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x103
)
and
c
:
IsAbleToHandAsCost
()
and
Duel
.
IsExistingTarget
(
c89538537
.
rthtgfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
c
,
c
)
end
function
c89538537
.
rthcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c89538537
.
rthcfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
c
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c89538537
.
rthcfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
c
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_COST
)
function
c89538537
.
rthtgfilter
(
c
,
tc
)
return
c
:
IsAbleToHand
()
and
c
:
GetEquipTarget
()
~=
tc
end
function
c89538537
.
rthtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_ONFIELD
)
and
chkc
:
IsAbleToHand
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
if
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
return
Duel
.
IsExistingMatchingCard
(
c89538537
.
rthcfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
c
,
tp
)
else
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
end
if
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c89538537
.
rthcfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
c
,
tp
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_COST
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
...
...
c99004752.lua
View file @
2fb0eec1
...
...
@@ -12,13 +12,31 @@ function c99004752.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c99004752
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
nil
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
e
:
SetLabel
(
1
)
return
true
end
function
c99004752
.
tgfilter
(
c
,
tc
,
ec
)
return
c
:
IsFaceup
()
and
c
:
GetEquipTarget
()
~=
tc
and
c
~=
ec
end
function
c99004752
.
costfilter
(
c
,
ec
,
tp
)
return
Duel
.
IsExistingTarget
(
c99004752
.
tgfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
c
,
c
,
ec
)
end
function
c99004752
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
if
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
return
Duel
.
CheckReleaseGroup
(
tp
,
c99004752
.
costfilter
,
1
,
c
,
c
,
tp
)
else
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
end
if
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
c99004752
.
costfilter
,
1
,
1
,
c
,
c
,
tp
)
Duel
.
Release
(
sg
,
REASON_COST
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
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