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
xiaoye
ygopro-222DIY-cards
Commits
a547650d
You need to sign in or sign up before continuing.
Commit
a547650d
authored
May 25, 2023
by
songtongtong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
203a96fb
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
410 additions
and
409 deletions
+410
-409
expansions/script/c33331904.lua
expansions/script/c33331904.lua
+66
-66
expansions/script/c33405004.lua
expansions/script/c33405004.lua
+100
-100
expansions/script/c60151708.lua
expansions/script/c60151708.lua
+84
-84
expansions/script/c64832013.lua
expansions/script/c64832013.lua
+107
-107
expansions/script/c81004206.lua
expansions/script/c81004206.lua
+53
-52
No files found.
expansions/script/c33331904.lua
View file @
a547650d
...
@@ -41,7 +41,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -41,7 +41,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
end
end
--send to grave
--send to grave
function
cm
.
thfilter
(
c
)
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x3567
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x3567
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
m
)
end
end
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c33405004.lua
View file @
a547650d
...
@@ -37,11 +37,11 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -37,11 +37,11 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
cm
.
cfilter
(
c
,
r
e
)
function
cm
.
cfilter
(
c
,
r
,
re
)
return
(
c
:
IsReason
(
REASON_BATTLE
)
and
c
:
GetReasonCard
():
IsSetCard
(
0x6410
))
or
(
c
:
IsReason
(
REASON_EFFECT
)
and
re
and
re
:
GetOwner
():
IsSetCard
(
0x6410
))
return
(
r
&
REASON_BATTLE
~=
0
and
c
:
GetReasonCard
():
IsSetCard
(
0x6410
))
or
(
c
:
IsReason
(
REASON_EFFECT
)
and
re
and
re
:
GetOwner
():
IsSetCard
(
0x6410
))
end
end
function
cm
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFlagEffect
(
tp
,
m
)
>
Duel
.
GetFlagEffect
(
tp
,
m
+
1
)
and
eg
:
IsExists
(
cm
.
cfilter
,
1
,
nil
,
r
e
)
return
Duel
.
GetFlagEffect
(
tp
,
m
)
>
Duel
.
GetFlagEffect
(
tp
,
m
+
1
)
and
eg
:
IsExists
(
cm
.
cfilter
,
1
,
nil
,
r
,
re
)
end
end
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
return
c
:
IsSetCard
(
0x6410
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x6410
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
...
...
expansions/script/c60151708.lua
View file @
a547650d
...
@@ -22,10 +22,10 @@ function cm.initial_effect(c)
...
@@ -22,10 +22,10 @@ function cm.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_DESTROYED
)
e3
:
SetCode
(
EVENT_DESTROYED
)
e3
:
SetCountLimit
(
1
,
m
+
100
)
e3
:
SetCountLimit
(
1
,
6011708
)
e3
:
SetCondition
(
c
m
.
spcon2
)
e3
:
SetCondition
(
c
60151708
.
spcon2
)
e3
:
SetTarget
(
c
m
.
sptg2
)
e3
:
SetTarget
(
c
60151708
.
sptg2
)
e3
:
SetOperation
(
c
m
.
spop2
)
e3
:
SetOperation
(
c
60151708
.
spop2
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
@@ -62,22 +62,22 @@ end
...
@@ -62,22 +62,22 @@ end
function
cm
.
ffilter
(
c
,
e
,
tp
)
function
cm
.
ffilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x3b26
)
and
c
:
IsFaceup
()
return
c
:
IsSetCard
(
0x3b26
)
and
c
:
IsFaceup
()
end
end
function
c
m
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
60151708
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
return
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
end
end
function
c
m
.
thfilter
(
c
,
e
,
tp
)
function
c
60151708
.
thfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x3b26
)
and
not
c
:
IsCode
(
m
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x3b26
)
and
not
c
:
IsCode
(
60151708
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
cm
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60151708
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
thfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c60151708
.
thfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c60151708
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
cm
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c60151708
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
function
c60151708
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
...
...
expansions/script/c64832013.lua
View file @
a547650d
...
@@ -37,7 +37,7 @@ function c64832013.initial_effect(c)
...
@@ -37,7 +37,7 @@ function c64832013.initial_effect(c)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e4
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e4
:
SetCountLimit
(
1
+
EFFECT_COUNT_CODE_SINGLE
)
e4
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_SINGLE
)
e4
:
SetCondition
(
c64832013
.
thcon
)
e4
:
SetCondition
(
c64832013
.
thcon
)
e4
:
SetTarget
(
c64832013
.
thtg
)
e4
:
SetTarget
(
c64832013
.
thtg
)
e4
:
SetOperation
(
c64832013
.
thop
)
e4
:
SetOperation
(
c64832013
.
thop
)
...
...
expansions/script/c81004206.lua
View file @
a547650d
...
@@ -15,6 +15,7 @@ function cm.initial_effect(c)
...
@@ -15,6 +15,7 @@ function cm.initial_effect(c)
e1
:
SetOperation
(
cm
.
operation
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
cm
.
Attack_Defense_Listed
=
1
cm
.
Attack_Defense_Listed
=
1
end
function
cm
.
cfilter
(
c
)
function
cm
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttack
(
1550
)
and
c
:
IsDefense
(
1050
)
return
c
:
IsFaceup
()
and
c
:
IsAttack
(
1550
)
and
c
:
IsDefense
(
1050
)
end
end
...
...
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