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
4
Merge Requests
4
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
7b948b34
Commit
7b948b34
authored
Sep 24, 2023
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove global var
parent
9ab4d90e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
5 deletions
+13
-5
c54289683.lua
c54289683.lua
+4
-1
c59332125.lua
c59332125.lua
+1
-0
c67797569.lua
c67797569.lua
+1
-1
c81558967.lua
c81558967.lua
+1
-1
c82886276.lua
c82886276.lua
+1
-1
c89181369.lua
c89181369.lua
+1
-0
c93130021.lua
c93130021.lua
+4
-1
No files found.
c54289683.lua
View file @
7b948b34
...
...
@@ -28,6 +28,7 @@ function c54289683.operation(e,tp,eg,ep,ev,re,r,rp)
local
t2
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
93130022
,
0
,
TYPES_TOKEN_MONSTER
,
tc
:
GetAttack
(),
tc
:
GetDefense
(),
tc
:
GetLevel
(),
tc
:
GetRace
(),
tc
:
GetAttribute
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
93130021
,
0
))
local
op
=
0
if
t1
and
t2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
93130021
,
1
),
aux
.
Stringid
(
93130021
,
2
),
aux
.
Stringid
(
93130021
,
3
))
elseif
t1
then
...
...
@@ -35,7 +36,9 @@ function c54289683.operation(e,tp,eg,ep,ev,re,r,rp)
elseif
t2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
93130021
,
1
),
aux
.
Stringid
(
93130021
,
3
))
if
op
==
1
then
op
=
2
end
else
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
93130021
,
1
))
end
else
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
93130021
,
1
))
end
if
op
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c54289683
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
...
...
c59332125.lua
View file @
7b948b34
...
...
@@ -68,6 +68,7 @@ function c59332125.activate(e,tp,eg,ep,ev,re,r,rp)
local
chkf
=
tp
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
c59332125
.
filter2
,
nil
,
e
)
local
mg2
=
Duel
.
GetMatchingGroup
(
c59332125
.
filter3
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
e
)
local
exmat
=
false
if
mg1
:
IsExists
(
c59332125
.
chkfilter
,
1
,
nil
,
tp
)
and
mg2
:
GetCount
()
>
0
then
mg1
:
Merge
(
mg2
)
exmat
=
true
...
...
c67797569.lua
View file @
7b948b34
...
...
@@ -45,7 +45,7 @@ function c67797569.drop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
tg
=
g
:
SelectSubGroup
(
tp
,
c67797569
.
tgcheck
,
false
,
2
,
2
)
local
tg
=
g
:
SelectSubGroup
(
tp
,
c67797569
.
tgcheck
,
false
,
2
,
2
)
if
tg
then
if
Duel
.
SendtoGrave
(
tg
,
REASON_EFFECT
)
==
0
then
Duel
.
ShuffleHand
(
p
)
...
...
c81558967.lua
View file @
7b948b34
...
...
@@ -42,7 +42,7 @@ function c81558967.operation(e,tp,eg,ep,ev,re,r,rp)
if
ct
==
0
then
return
end
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
ct
)
Duel
.
ConfirmDecktop
(
tp
,
ct
)
tg
=
g
:
Filter
(
c81558967
.
thfilter
,
nil
)
local
tg
=
g
:
Filter
(
c81558967
.
thfilter
,
nil
)
if
tg
:
GetCount
()
>
0
then
Duel
.
DisableShuffleCheck
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
c82886276.lua
View file @
7b948b34
...
...
@@ -83,7 +83,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
zone
=
zone
|
s
.
get_zone
(
sc
,
seq
)
end
local
_
,
flag_tmp
=
Duel
.
GetLocationCount
(
p
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
flag
=
(
~
flag_tmp
)
&
0x7f
local
flag
=
(
~
flag_tmp
)
&
0x7f
if
sc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
p
,
flag
)
then
avail_zone
=
avail_zone
|
(
flag
<<
(
p
==
tp
and
0
or
16
))
end
...
...
c89181369.lua
View file @
7b948b34
...
...
@@ -12,6 +12,7 @@ function c89181369.initial_effect(c)
end
function
c89181369
.
spfilter
(
c
,
e
,
tp
,
rg
)
if
not
c
:
IsType
(
TYPE_SYNCHRO
)
or
not
c
:
IsRace
(
RACE_DRAGON
)
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
return
false
end
local
result
=
false
if
rg
:
IsContains
(
c
)
then
rg
:
RemoveCard
(
c
)
result
=
rg
:
CheckWithSumEqual
(
Card
.
GetLevel
,
c
:
GetLevel
(),
1
,
99
)
...
...
c93130021.lua
View file @
7b948b34
...
...
@@ -24,6 +24,7 @@ function c93130021.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
t2
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
93130022
,
0
,
TYPES_TOKEN_MONSTER
,
c
:
GetAttack
(),
c
:
GetDefense
(),
c
:
GetLevel
(),
c
:
GetRace
(),
c
:
GetAttribute
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
93130021
,
0
))
local
op
=
0
if
t1
and
t2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
93130021
,
1
),
aux
.
Stringid
(
93130021
,
2
),
aux
.
Stringid
(
93130021
,
3
))
elseif
t1
then
...
...
@@ -31,7 +32,9 @@ function c93130021.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
elseif
t2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
93130021
,
1
),
aux
.
Stringid
(
93130021
,
3
))
if
op
==
1
then
op
=
2
end
else
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
93130021
,
1
))
end
else
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
93130021
,
1
))
end
e
:
SetLabel
(
op
)
if
op
==
1
then
e
:
SetCategory
(
CATEGORY_DESTROY
)
...
...
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