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
0da738b4
Commit
0da738b4
authored
Aug 24, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
byd
parent
73656441
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
21 deletions
+14
-21
expansions/script/c1171001.lua
expansions/script/c1171001.lua
+3
-9
expansions/script/c12400057.lua
expansions/script/c12400057.lua
+2
-2
expansions/script/c31300037.lua
expansions/script/c31300037.lua
+1
-1
expansions/script/c60010076.lua
expansions/script/c60010076.lua
+8
-9
No files found.
expansions/script/c1171001.lua
View file @
0da738b4
...
@@ -23,8 +23,8 @@ function c1171001.initial_effect(c)
...
@@ -23,8 +23,8 @@ function c1171001.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_QUICK_F
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_F
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e2
:
SetCondition
(
c1171001
.
con2
)
e2
:
SetCondition
(
c1171001
.
con2
)
e2
:
SetCost
(
c1171001
.
cost2
)
e2
:
SetTarget
(
c1171001
.
tg2
)
e2
:
SetTarget
(
c1171001
.
tg2
)
e2
:
SetOperation
(
c1171001
.
op2
)
e2
:
SetOperation
(
c1171001
.
op2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -59,18 +59,12 @@ function c1171001.con2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,18 +59,12 @@ function c1171001.con2(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
if
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
if
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
return
bit
.
band
(
rc
:
GetOriginalType
(),
TYPE_MONSTER
)
~=
0
and
rp
==
tp
return
rp
==
tp
and
bit
.
band
(
rc
:
GetOriginalType
(),
TYPE_MONSTER
)
~=
0
end
--
function
c1171001
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
GetFlagEffect
(
1171001
)
<
1
end
c
:
RegisterFlagEffect
(
1171001
,
RESET_CHAIN
,
0
,
1
)
end
end
--
--
function
c1171001
.
tg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c1171001
.
tg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsAbleToHand
()
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
c
,
1
,
0
,
0
)
end
end
--
--
...
...
expansions/script/c12400057.lua
View file @
0da738b4
...
@@ -62,7 +62,7 @@ if not s.global_check then
...
@@ -62,7 +62,7 @@ if not s.global_check then
end
end
function
s
.
filter1
(
c
,
e
)
function
s
.
filter1
(
c
,
e
)
return
c
:
IsLocation
(
LOCATION_HAND
)
and
not
c
:
IsImmuneToEffect
(
e
)
return
not
c
:
IsImmuneToEffect
(
e
)
end
end
function
s
.
filter2
(
c
,
e
,
tp
,
m
,
f
,
gc
,
chkf
)
function
s
.
filter2
(
c
,
e
,
tp
,
m
,
f
,
gc
,
chkf
)
return
c
:
IsType
(
TYPE_FUSION
)
and
(
not
f
or
f
(
c
))
return
c
:
IsType
(
TYPE_FUSION
)
and
(
not
f
or
f
(
c
))
...
@@ -73,7 +73,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -73,7 +73,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
if
chk
==
0
then
local
chkf
=
tp
local
chkf
=
tp
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
)
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
)
local
res
=
Duel
.
IsExistingMatchingCard
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
c
,
chkf
)
local
res
=
Duel
.
IsExistingMatchingCard
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
c
,
chkf
)
if
not
res
then
if
not
res
then
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
...
...
expansions/script/c31300037.lua
View file @
0da738b4
...
@@ -66,7 +66,7 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -66,7 +66,7 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
local
sc
=
sg
:
GetFirst
()
local
sc
=
sg
:
GetFirst
()
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
Hint
(
HINT_CARD
,
0
,
sc
:
GetOriginalCode
())
Duel
.
Hint
(
HINT_CARD
,
0
,
sc
:
GetOriginalCode
())
local
tg
=
Duel
.
GetMatchingGroup
(
aux
.
AND
(
Card
.
IsAbleToDeck
,
Card
.
IsFaceupEx
)
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
local
tg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
local
exg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
local
exg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
if
sc
:
IsAttack
(
35
)
then
if
sc
:
IsAttack
(
35
)
then
if
#
tg
>
0
then
if
#
tg
>
0
then
...
...
expansions/script/c60010076.lua
View file @
0da738b4
...
@@ -7,13 +7,13 @@ function cm.initial_effect(c)
...
@@ -7,13 +7,13 @@ function cm.initial_effect(c)
e11
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e11
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e11
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e11
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e11
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e11
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e11
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e11
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e11
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e11
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e11
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e11
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e11
:
SetCountLimit
(
1
,
m
+
10000000
)
e11
:
SetCountLimit
(
1
,
m
+
10000000
)
e11
:
SetCondition
(
cm
.
s
p
con
)
e11
:
SetCondition
(
cm
.
s
s
con
)
e11
:
SetTarget
(
cm
.
s
p
tg
)
e11
:
SetTarget
(
cm
.
s
s
tg
)
e11
:
SetOperation
(
cm
.
s
p
op
)
e11
:
SetOperation
(
cm
.
s
s
op
)
c
:
RegisterEffect
(
e11
)
c
:
RegisterEffect
(
e11
)
--search
--search
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
@@ -27,18 +27,17 @@ function cm.initial_effect(c)
...
@@ -27,18 +27,17 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
cm
.
cfilter
(
c
,
tp
)
function
cm
.
cfilter
(
c
,
tp
)
return
c
:
IsSummon
Player
(
1
-
tp
)
and
c
:
IsSummonLocation
(
LOCATION_EXTRA
)
return
c
:
IsSummon
Location
(
LOCATION_EXTRA
)
and
c
:
IsSummonPlayer
(
1
-
tp
)
end
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
sscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
eg
:
IsExists
(
cm
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
cm
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
cm
.
s
p
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
s
s
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
cm
.
s
p
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
s
s
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
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