Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Soulgamer
ygopro-222DIY-cards
Commits
7d8ed794
Commit
7d8ed794
authored
Feb 08, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ybb
parent
6906a6c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
expansions/script/c16400096.lua
expansions/script/c16400096.lua
+6
-3
expansions/script/c16499990.lua
expansions/script/c16499990.lua
+4
-3
No files found.
expansions/script/c16400096.lua
View file @
7d8ed794
...
...
@@ -11,7 +11,6 @@ function cm.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
m
+
100
)
e2
:
SetCondition
(
cm
.
sscon
)
e2
:
SetCost
(
cm
.
sscost
)
e2
:
SetTarget
(
cm
.
sstg
)
e2
:
SetOperation
(
cm
.
ssop
)
...
...
@@ -83,8 +82,12 @@ function cm.solvefun(g,tp)
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
end
end
function
cm
.
ssfilter
(
c
)
return
c
:
IsCode
(
m
)
and
c
:
IsSSetable
()
function
cm
.
sscost
(
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
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
function
cm
.
thcheck
(
c
)
return
(
c
:
IsSetCard
(
0x1ce0
)
or
c
:
IsSetCard
(
0x389
))
and
c
:
IsAbleToHand
()
end
function
cm
.
sstg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thcheck
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c16499990.lua
View file @
7d8ed794
--圣杯的探索-Emiya
local
m
=
16499990
local
cm
=
_G
[
"c"
..
m
]
function
c16499990
.
initial_effect
(
c
)
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -15,7 +17,7 @@ function c16499990.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_BE_MATERIAL
)
e2
:
SetProperty
(
EFFECT_FLAG_EVENT_PLAYER
)
e2
:
SetCountLimit
(
1
,
m
+
100
)
e2
:
SetCountLimit
(
1
,
16499991
)
e2
:
SetCondition
(
c16499990
.
effcon
)
e2
:
SetOperation
(
c16499990
.
effop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -23,9 +25,8 @@ function c16499990.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e3
:
SetDescription
(
aux
.
Stringid
(
16499990
,
1
))
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetCountLimit
(
1
,
m
)
e3
:
SetCondition
(
c16499990
.
condtion
)
e3
:
SetTarget
(
c16499990
.
target
)
e3
:
SetOperation
(
c16499990
.
operation
)
...
...
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