Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
3009ec8d
Commit
3009ec8d
authored
May 09, 2015
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e60544e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
script/c41855169.lua
script/c41855169.lua
+4
-1
script/c81674782.lua
script/c81674782.lua
+12
-0
No files found.
script/c41855169.lua
View file @
3009ec8d
...
@@ -19,8 +19,11 @@ function c41855169.initial_effect(c)
...
@@ -19,8 +19,11 @@ function c41855169.initial_effect(c)
e2
:
SetOperation
(
c41855169
.
operation
)
e2
:
SetOperation
(
c41855169
.
operation
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c41855169
.
cfilter
(
c
)
return
c
:
IsDiscardable
()
and
c
:
IsAbleToGraveAsCost
()
and
not
c
:
IsHasEffect
(
81674782
)
end
function
c41855169
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c41855169
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c41855169
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
local
sg
=
g
:
RandomSelect
(
tp
,
1
)
local
sg
=
g
:
RandomSelect
(
tp
,
1
)
Duel
.
SendtoGrave
(
sg
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
sg
,
REASON_COST
+
REASON_DISCARD
)
...
...
script/c81674782.lua
View file @
3009ec8d
...
@@ -15,7 +15,19 @@ function c81674782.initial_effect(c)
...
@@ -15,7 +15,19 @@ function c81674782.initial_effect(c)
e2
:
SetTargetRange
(
0xff
,
0xff
)
e2
:
SetTargetRange
(
0xff
,
0xff
)
e2
:
SetValue
(
LOCATION_REMOVED
)
e2
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
81674782
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e3
:
SetTargetRange
(
0xff
,
0xff
)
e3
:
SetTarget
(
c81674782
.
checktg
)
c
:
RegisterEffect
(
e3
)
end
end
function
c81674782
.
rmtarget
(
e
,
c
)
function
c81674782
.
rmtarget
(
e
,
c
)
return
not
c
:
IsLocation
(
0x80
)
and
not
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
not
c
:
IsLocation
(
0x80
)
and
not
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
end
function
c81674782
.
checktg
(
e
,
c
)
return
not
c
:
IsPublic
()
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