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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
74c09130
Commit
74c09130
authored
Jul 13, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
byd
parent
e60bf2b2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
9 deletions
+17
-9
expansions/script/c12899009.lua
expansions/script/c12899009.lua
+2
-2
expansions/script/c12899010.lua
expansions/script/c12899010.lua
+2
-2
expansions/script/c33405003.lua
expansions/script/c33405003.lua
+12
-4
expansions/script/c47390373.lua
expansions/script/c47390373.lua
+1
-1
No files found.
expansions/script/c12899009.lua
View file @
74c09130
...
@@ -120,8 +120,8 @@ function cm.splimit(e,c,sump,sumtype,sumpos,targetp,se)
...
@@ -120,8 +120,8 @@ function cm.splimit(e,c,sump,sumtype,sumpos,targetp,se)
end
end
function
cm
.
thfilter
(
c
)
function
cm
.
thfilter
(
c
)
return
c
:
Is
Race
(
RACE_MACHINE
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
Is
SetCard
(
0x5a71
,
0x6a71
)
and
c
:
IsAbleToHand
()
and
(
not
c
:
IsLocation
(
LOCATION_REMOVED
)
or
c
:
IsFaceup
())
and
c
:
IsFaceup
())
end
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
...
...
expansions/script/c12899010.lua
View file @
74c09130
...
@@ -48,11 +48,11 @@ function cm.spcon(e,c)
...
@@ -48,11 +48,11 @@ function cm.spcon(e,c)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
cm
.
spfilter
,
1
,
nil
,
ft
,
tp
)
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
cm
.
spfilter
,
1
,
nil
,
ft
,
tp
)
end
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
cm
.
spfilter
,
1
,
1
,
nil
,
ft
,
tp
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
cm
.
spfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
...
...
expansions/script/c33405003.lua
View file @
74c09130
...
@@ -139,13 +139,21 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -139,13 +139,21 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
cfilter2
(
c
,
tp
)
function
s
.
cfilter2
(
c
,
tp
)
return
c
:
GetOwner
()
==
1
-
tp
local
rc
if
c
:
GetReasonCard
()
then
rc
=
c
:
GetReasonCard
()
elseif
c
:
GetReasonEffect
()
then
rc
=
c
:
GetReasonEffect
():
GetHandler
()
else
return
false
end
return
c
:
GetOwner
()
==
1
-
tp
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
GetReasonPlayer
()
==
tp
and
c
:
GetReasonPlayer
()
==
tp
and
c
:
GetReasonCard
()
:
IsSetCard
(
0x6410
)
and
rc
:
IsSetCard
(
0x6410
)
end
end
function
s
.
thcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
thcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
cfilter2
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
id
+
20000
)
>
Duel
.
GetFlagEffect
(
tp
,
id
+
20001
)
return
eg
:
IsExists
(
s
.
cfilter2
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
id
+
20000
)
>
Duel
.
GetFlagEffect
(
tp
,
id
+
20001
)
end
end
function
s
.
thop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
thop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
id
+
20002
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
id
+
20002
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
...
@@ -200,7 +208,7 @@ function s.thop3(e,tp,eg,ep,ev,re,r,rp)
...
@@ -200,7 +208,7 @@ function s.thop3(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
(
tc
:
IsSummonable
(
true
,
nil
,
1
)
or
tc
:
IsMSetable
(
true
,
nil
,
1
))
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
6
))
then
if
(
tc
:
IsSummonable
(
true
,
nil
,
1
)
or
tc
:
IsMSetable
(
true
,
nil
,
1
))
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
6
))
then
local
s1
=
tc
:
IsSummonable
(
true
,
nil
,
1
)
local
s1
=
tc
:
IsSummonable
(
true
,
nil
,
1
)
local
s2
=
tc
:
IsMSetable
(
true
,
nil
,
1
)
local
s2
=
tc
:
IsMSetable
(
true
,
nil
,
1
)
if
(
s1
and
s2
and
Duel
.
SelectPosition
(
tp
,
tc
,
POS_FACEUP_ATTACK
+
POS_FACEDOWN_DEFENSE
)
==
POS_FACEUP_ATTACK
)
or
not
s2
then
if
(
s1
and
s2
and
Duel
.
SelectPosition
(
tp
,
tc
,
POS_FACEUP_ATTACK
+
POS_FACEDOWN_DEFENSE
)
==
POS_FACEUP_ATTACK
)
or
not
s2
then
...
...
expansions/script/c47390373.lua
View file @
74c09130
...
@@ -81,7 +81,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -81,7 +81,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
if
#
g
>
0
and
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_RETURN
)
>
0
then
if
#
g
>
0
and
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_RETURN
)
>
0
then
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
()
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
...
...
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