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
77a8092b
Commit
77a8092b
authored
Aug 22, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
byd
parent
ee75e408
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
24 deletions
+28
-24
expansions/script/c31300037.lua
expansions/script/c31300037.lua
+5
-5
expansions/script/c37564765.lua
expansions/script/c37564765.lua
+13
-12
expansions/script/c60010029.lua
expansions/script/c60010029.lua
+4
-4
expansions/script/c60010053.lua
expansions/script/c60010053.lua
+2
-1
expansions/script/c64800019.lua
expansions/script/c64800019.lua
+4
-2
No files found.
expansions/script/c31300037.lua
View file @
77a8092b
...
...
@@ -58,15 +58,15 @@ function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
s
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
rmfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
ShuffleExtra
(
1
-
tp
)
local
sg
=
g
:
RandomSelect
(
tp
,
1
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_EFFECT
)
local
og
=
Duel
.
GetOperatedGroup
()
local
sc
=
og
:
GetFirst
()
Duel
.
ConfirmCards
(
1
-
tp
,
og
)
local
sc
=
sg
:
GetFirst
()
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
Hint
(
HINT_CARD
,
0
,
sc
:
GetOriginalCode
())
local
tg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
local
tg
=
Duel
.
GetMatchingGroup
(
aux
.
AND
(
Card
.
IsAbleToDeck
,
Card
.
IsFaceupEx
)
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
local
exg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
if
sc
:
IsAttack
(
35
)
then
if
#
tg
>
0
then
...
...
expansions/script/c37564765.lua
View file @
77a8092b
...
...
@@ -1178,6 +1178,7 @@ function cm.NanahiraTrap(c,...)
if
te
:
GetCode
()
==
EVENT_FREE_CHAIN
then
e1
:
SetHintTiming
(
0x1e0
)
end
e1
:
SetCountLimit
(
1
)
e1
:
SetCost
(
cm
.
SelfReleaseCost
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
...
...
expansions/script/c60010029.lua
View file @
77a8092b
...
...
@@ -68,13 +68,13 @@ function cm.srop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Get
Type
,
tp
,
LOCATION_HAND
,
0
,
nil
,
TYPE_MONSTER
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
Type
,
tp
,
LOCATION_HAND
,
0
,
nil
,
TYPE_MONSTER
)
return
g
:
GetClassCount
(
Card
.
GetRace
)
==
g
:
GetCount
()
and
g
:
GetClassCount
(
Card
.
GetAttribute
)
==
g
:
GetCount
()
end
function
cm
.
rcheck
(
c
)
local
tp
=
c
:
GetControler
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Get
Type
,
tp
,
LOCATION_HAND
,
0
,
nil
,
TYPE_MONSTER
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
Type
,
tp
,
LOCATION_HAND
,
0
,
nil
,
TYPE_MONSTER
)
local
tf
=
false
if
g
:
GetCount
()
>=
3
then
g
:
AddCard
(
c
)
...
...
@@ -92,8 +92,8 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local
lg
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_HAND
,
0
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
lg
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Get
Type
,
tp
,
LOCATION_HAND
,
0
,
nil
,
TYPE_MONSTER
)
local
dg
=
Duel
.
GetMatchingGroup
(
Card
.
Get
Type
,
tp
,
LOCATION_DECK
,
0
,
nil
,
TYPE_MONSTER
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
Type
,
tp
,
LOCATION_HAND
,
0
,
nil
,
TYPE_MONSTER
)
local
dg
=
Duel
.
GetMatchingGroup
(
Card
.
Is
Type
,
tp
,
LOCATION_DECK
,
0
,
nil
,
TYPE_MONSTER
)
local
ac
=
dg
:
GetFirst
()
local
cg
=
Group
.
CreateGroup
()
for
i
=
1
,
#
dg
do
...
...
expansions/script/c60010053.lua
View file @
77a8092b
...
...
@@ -50,7 +50,8 @@ function cm.retg1(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
cm
.
retop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
#
g
~=
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
ffil
,
tp
,
LOCATION_FZONE
,
0
,
1
,
nil
)
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
...
...
expansions/script/c64800019.lua
View file @
77a8092b
...
...
@@ -58,6 +58,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp,chk)
e6
:
SetProperty
(
EFFECT_FLAG_NO_TURN_RESET
)
e6
:
SetCountLimit
(
1
)
e6
:
SetOperation
(
cm
.
spop
)
e6
:
SetReset
(
RESET_PHASE
+
PHASE_STANDBY
,
2
)
Duel
.
RegisterEffect
(
e6
,
tp
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -65,6 +66,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp,chk)
e7
:
SetProperty
(
EFFECT_FLAG_NO_TURN_RESET
)
e7
:
SetCountLimit
(
1
)
e7
:
SetOperation
(
cm
.
spop
)
e7
:
SetReset
(
RESET_PHASE
+
PHASE_BATTLE
,
2
)
Duel
.
RegisterEffect
(
e7
,
tp
)
c
:
RegisterFlagEffect
(
m
+
1
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
0
,
0
,
0
)
end
...
...
@@ -84,7 +86,7 @@ function cm.spfilter1(c,e,tp)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
m
+
1
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
c
:
GetFlagEffect
(
m
+
1
)
>
0
and
Duel
.
GetTurnCount
()
-
c
:
GetTurnID
()
==
1
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter1
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
nil
,
e
,
tp
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
3
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
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