Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
c7425346
Commit
c7425346
authored
Jun 09, 2024
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'LEDE' of
https://github.com/Fluorohydride/ygopro-scripts
parents
2533ae88
97f2df23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
c27260347.lua
c27260347.lua
+6
-4
c28279365.lua
c28279365.lua
+3
-3
No files found.
c27260347.lua
View file @
c7425346
...
...
@@ -38,17 +38,19 @@ function s.mvcon(e,tp,eg,ep,ev,re,r,rp)
else
ft2
=
ft2
+
1
end
e
:
SetLabelObject
(
ac
)
return
ac
and
ac
:
IsControler
(
1
-
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>=
ft1
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_SZONE
)
>=
ft2
end
function
s
.
mvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
c
=
e
:
GetHandler
()
local
ac
=
c
:
GetBattleTarget
()
if
chk
==
0
then
return
ac
~=
nil
end
Duel
.
SetTargetCard
(
ac
)
end
function
s
.
mvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ac
=
e
:
GetLabelObjec
t
()
if
not
ac
:
IsRelateTo
Battle
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
false
end
local
ac
=
Duel
.
GetFirstTarge
t
()
if
not
ac
:
IsRelateTo
Effect
(
e
)
or
not
c
:
IsRelateToEffect
(
e
)
or
ac
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
or
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
or
not
ac
:
IsControler
(
1
-
tp
)
then
return
false
end
local
ft1
=
0
local
ft2
=
0
if
c
:
GetOwner
()
==
tp
then
...
...
c28279365.lua
View file @
c7425346
...
...
@@ -2,7 +2,7 @@
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOEXTRA
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_TOEXTRA
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
@@ -19,7 +19,6 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
s
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOEXTRA
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
nil
,
tp
,
LOCATION_GRAVE
)
end
function
s
.
mgfilter
(
c
,
e
,
tp
,
link
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
...
...
@@ -32,7 +31,8 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local
mg
=
tc
:
GetMaterial
():
Filter
(
aux
.
NecroValleyFilter
(
s
.
mgfilter
),
nil
,
e
,
tp
,
tc
)
local
sumtype
=
tc
:
GetSummonType
()
if
Duel
.
SendtoDeck
(
tc
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
~=
0
and
sumtype
==
SUMMON_TYPE_LINK
and
tc
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
mg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
0
))
then
and
tc
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
mg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
mg
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
BreakEffect
()
...
...
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