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
4c5cbcdb
Commit
4c5cbcdb
authored
Feb 22, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ybb
parent
8574601f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
expansions/script/c64832008.lua
expansions/script/c64832008.lua
+1
-1
expansions/script/c64832037.lua
expansions/script/c64832037.lua
+2
-5
No files found.
expansions/script/c64832008.lua
View file @
4c5cbcdb
...
...
@@ -85,7 +85,7 @@ function c64832008.tg(e,tp,eg,ep,ev,re,r,rp,chk)
return
e
:
GetHandler
():
IsDiscardable
(
REASON_COST
)
and
Duel
.
IsExistingMatchingCard
(
c64832008
.
costfil
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c64832008
.
costfil
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
())
if
g
:
GetFirst
():
IsCode
(
6
5010094
,
65010095
)
then
Duel
.
SetChainLimit
(
c64832008
.
chlimit
)
end
if
g
:
GetFirst
():
IsCode
(
6
4832010
,
64832011
)
then
Duel
.
SetChainLimit
(
c64832008
.
chlimit
)
end
g
:
AddCard
(
e
:
GetHandler
())
Duel
.
SendtoGrave
(
g
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
SetTargetPlayer
(
tp
)
...
...
expansions/script/c64832037.lua
View file @
4c5cbcdb
...
...
@@ -13,7 +13,7 @@ end
function
cm
.
setop
(
e
,
tp
)
local
c
=
rscf
.
GetSelf
(
e
)
local
tc
=
rscf
.
GetTargetCard
()
if
not
c
or
not
tc
or
Duel
.
SSet
(
tp
,
tc
)
<=
0
then
return
end
if
not
c
or
not
tc
or
Duel
.
SSet
(
tp
,
tc
)
<=
0
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
...
...
@@ -29,15 +29,12 @@ function cm.limitop(e,tp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCondition
(
rscon
.
sumtype
(
"adv"
,
cm
.
sfilter
))
e1
:
SetOperation
(
cm
.
sumsuc
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
cm
.
sfilter
(
c
,
e
,
tp
,
re
,
rp
)
return
c
:
GetSummonPlayer
()
==
tp
end
function
cm
.
sumsuc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
eg
:
GetFirst
():
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
then
return
end
Duel
.
SetChainLimitTillChainEnd
(
cm
.
limit
)
end
function
cm
.
limit
(
e
,
ep
,
tp
)
...
...
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