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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
078451ce
Commit
078451ce
authored
Oct 28, 2023
by
REIKAI
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
29428686
Pipeline
#23878
passed with stages
in 31 minutes and 40 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
13 deletions
+20
-13
expansions/script/c16104414.lua
expansions/script/c16104414.lua
+1
-1
expansions/script/c16104427.lua
expansions/script/c16104427.lua
+12
-4
expansions/script/c16400081.lua
expansions/script/c16400081.lua
+1
-2
expansions/script/c16400097.lua
expansions/script/c16400097.lua
+1
-1
expansions/script/c47530131.lua
expansions/script/c47530131.lua
+1
-2
expansions/script/c50218218.lua
expansions/script/c50218218.lua
+3
-2
expansions/script/c50223175.lua
expansions/script/c50223175.lua
+1
-1
No files found.
expansions/script/c16104414.lua
View file @
078451ce
...
...
@@ -121,7 +121,7 @@ function cm.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
ofilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
e
:
GetHandler
(),
e
)
local
tc
=
g
:
GetFirst
()
if
not
tc
:
IsImmuneToEffect
(
e
)
then
if
tc
then
local
og
=
tc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
...
...
expansions/script/c16104427.lua
View file @
078451ce
...
...
@@ -19,7 +19,6 @@ function cm.initial_effect(c)
--LINK_DO
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCountLimit
(
1
,
m
)
...
...
@@ -174,17 +173,26 @@ end
function
cm
.
checkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFlagEffect
(
tp
,
m
)
>
0
or
(
Duel
.
GetFlagEffect
(
tp
,
m
)
==
0
and
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentChain
()
<
1
and
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
))
end
function
cm
.
rlfilter
(
c
,
tp
)
local
re
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_CANNOT_RELEASE
)
local
val
=
nil
if
re
then
val
=
re
:
GetValue
()
end
return
c
:
IsReleasable
()
or
(
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsLocation
(
LOCATION_HAND
)
and
(
val
==
nil
or
val
(
re
,
c
)
~=
true
))
end
function
cm
.
nametg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
,
true
)
if
chk
==
0
then
if
e
:
GetLabel
()
==
1
then
return
Duel
.
CheckReleaseGroupEx
(
tp
,
nil
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
rlfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
(),
tp
)
else
return
false
end
end
local
sg
=
Duel
.
SelectReleaseGroupEx
(
tp
,
nil
,
1
,
#
g
,
nil
)
Duel
.
Release
(
sg
,
REASON_COST
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
rlfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
99
,
e
:
GetHandler
(),
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
local
code
=
e
:
GetHandler
():
GetOriginalCode
()
getmetatable
(
e
:
GetHandler
()).
announce_filter
=
{
0xccb
,
OPCODE_ISSETCARD
,
TYPE_EFFECT
,
OPCODE_ISTYPE
,
OPCODE_AND
}
local
ac
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
getmetatable
(
e
:
GetHandler
()).
announce_filter
))
...
...
expansions/script/c16400081.lua
View file @
078451ce
...
...
@@ -15,12 +15,11 @@ function c16400081.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCountLimit
(
1
,
16400
1
81
)
e2
:
SetCountLimit
(
1
,
16400
2
81
)
e2
:
SetCondition
(
c16400081
.
spcon
)
e2
:
SetTarget
(
c16400081
.
sptg
)
e2
:
SetOperation
(
c16400081
.
spop
)
c
:
RegisterEffect
(
e2
)
end
--activate
function
c16400081
.
thfilter
(
c
)
...
...
expansions/script/c16400097.lua
View file @
078451ce
...
...
@@ -14,7 +14,7 @@ function c16400097.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TODECK
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
16400097
)
...
...
expansions/script/c47530131.lua
View file @
078451ce
...
...
@@ -76,8 +76,7 @@ function c47530131.efop(e,tp,eg,ep,ev,re,r,rp)
end
function
c47530131
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
(
c
:
IsReason
(
REASON_EFFECT
)
and
rp
==
1
-
tp
or
c
:
IsReason
(
REASON_BATTLE
)
and
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
))
return
c
:
IsReason
(
REASON_DESTROY
)
and
((
c
:
IsReason
(
REASON_EFFECT
)
and
rp
==
1
-
tp
)
or
(
c
:
IsReason
(
REASON_BATTLE
)
and
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)))
and
c
:
IsSummonType
(
SUMMON_TYPE_LINK
)
end
function
c47530131
.
filter
(
c
,
e
,
tp
)
...
...
expansions/script/c50218218.lua
View file @
078451ce
...
...
@@ -26,7 +26,8 @@ function c50218218.initial_effect(c)
--control
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_CONTROL
)
e3
:
SetType
(
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCountLimit
(
1
,
50218318
)
...
...
@@ -60,7 +61,7 @@ function c50218218.con3(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsDefensePos
()
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
end
function
c50218218
.
tg3f
(
c
,
e
,
tp
)
return
c
:
IsSummonPlayer
(
1
-
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
Is
AbleToChangeControler
()
return
c
:
IsSummonPlayer
(
1
-
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
Is
ControlerCanBeChanged
()
and
(
not
e
or
c
:
IsRelateToEffect
(
e
))
end
function
c50218218
.
tg3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c50223175.lua
View file @
078451ce
...
...
@@ -58,7 +58,7 @@ function c50223175.activate(e,tp,eg,ep,ev,re,r,rp)
end
Duel
.
BreakEffect
()
local
splv
=
tc
:
GetLevel
()
Duel
.
SetLP
(
tp
,
Duel
.
GetLP
(
p
)
-
(
splv
-
level
)
*
500
)
Duel
.
SetLP
(
tp
,
Duel
.
GetLP
(
t
p
)
-
(
splv
-
level
)
*
500
)
end
end
function
c50223175
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
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