Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
Amiya
pre-release-database-cdb
Commits
1ac2d9f0
Commit
1ac2d9f0
authored
Dec 18, 2023
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ライトロード
https://github.com/Fluorohydride/ygopro-pre-script/pull/1273
parent
2f4cfd40
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
script/c101204023.lua
script/c101204023.lua
+1
-1
script/c101204024.lua
script/c101204024.lua
+5
-1
script/c101204043.lua
script/c101204043.lua
+3
-4
No files found.
script/c101204023.lua
View file @
1ac2d9f0
...
...
@@ -39,7 +39,7 @@ function s.spfilter(c)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x38
)
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_
MZON
E
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_
GRAV
E
,
0
,
1
,
nil
)
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
script/c101204024.lua
View file @
1ac2d9f0
...
...
@@ -20,6 +20,7 @@ function s.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetCondition
(
s
.
spcon
)
e2
:
SetTarget
(
s
.
sptg2
)
e2
:
SetOperation
(
s
.
spop2
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -45,8 +46,11 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
DiscardDeck
(
tp
,
2
,
REASON_EFFECT
)
end
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_DECK
)
end
function
s
.
spfilter
(
c
,
e
,
tp
)
return
not
c
:
IsCode
(
id
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x38
)
and
not
c
:
IsCode
(
id
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
s
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
spfilter
(
chkc
,
e
,
tp
)
end
...
...
script/c101204043.lua
View file @
1ac2d9f0
...
...
@@ -37,14 +37,13 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
s
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
function
s
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x38
)
and
c
:
IsAbleToGrave
()
return
c
:
IsSetCard
(
0x38
)
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
AbleToGrave
()
end
function
s
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetMaterial
():
FilterCount
(
Card
.
IsSetCard
,
nil
,
0x38
)
>
1
and
Duel
.
IsExistingMatchingCard
(
s
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetMaterial
():
FilterCount
(
Card
.
IsSetCard
,
nil
,
0x38
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
0
,
tp
,
LOCATION_DECK
)
end
function
s
.
fselect
(
g
)
...
...
@@ -63,7 +62,7 @@ function s.efilter(e,c,rp,r,re)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
re
and
r
&
REASON_EFFECT
>
0
and
rp
==
1
-
tp
end
function
s
.
refilter
(
c
)
return
c
:
IsSetCard
(
0x38
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsSetCard
(
0x38
)
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
AbleToRemoveAsCost
()
end
function
s
.
recost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
100
)
...
...
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