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
a484a523
Commit
a484a523
authored
Nov 19, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hop
parent
3b3a9ca1
Pipeline
#31217
failed with stages
in 18 minutes and 49 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
9 deletions
+21
-9
expansions/script/c50224275.lua
expansions/script/c50224275.lua
+7
-4
expansions/script/c50224280.lua
expansions/script/c50224280.lua
+14
-5
No files found.
expansions/script/c50224275.lua
View file @
a484a523
...
...
@@ -7,13 +7,15 @@ function c50224275.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_
SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_
CUSTOM
+
50224275
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e1
:
SetCondition
(
c50224275
.
spcon1
)
e1
:
SetTarget
(
c50224275
.
sptg1
)
e1
:
SetOperation
(
c50224275
.
spop1
)
c
:
RegisterEffect
(
e1
)
aux
.
RegisterMergedDelayedEvent
(
c
,
50224275
,
EVENT_SPSUMMON_SUCCESS
)
--release
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_RELEASE
+
CATEGORY_ATKCHANGE
)
...
...
@@ -44,18 +46,19 @@ function c50224275.spfilter1(c,e,tp,attr)
end
function
c50224275
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
sg
=
eg
:
Filter
(
Card
.
IsSummonPlayer
,
e
:
GetHandler
(),
1
-
tp
)
if
#
sg
<
1
then
return
end
local
attr
=
0
local
sc
=
sg
:
GetFirst
()
while
sc
do
attr
=
attr
+
sc
:
GetAttribute
()
Debug
.
Message
(
sc
:
GetCode
())
attr
=
attr
|
sc
:
GetAttribute
()
sc
=
sg
:
GetNext
()
end
e
:
SetLabel
(
attr
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
50224275
)
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c50224275
.
spfilter1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
,
attr
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
)
e
:
GetHandler
():
RegisterFlagEffect
(
50224275
,
RESET_CHAIN
,
0
,
1
)
end
function
c50224275
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
1
then
return
end
...
...
expansions/script/c50224280.lua
View file @
a484a523
...
...
@@ -7,13 +7,15 @@ function c50224280.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_
SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_
CUSTOM
+
50224280
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e1
:
SetCondition
(
c50224280
.
spcon1
)
e1
:
SetTarget
(
c50224280
.
sptg1
)
e1
:
SetOperation
(
c50224280
.
spop1
)
c
:
RegisterEffect
(
e1
)
aux
.
RegisterMergedDelayedEvent
(
c
,
50224280
,
EVENT_SPSUMMON_SUCCESS
)
--release
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -46,14 +48,13 @@ function c50224280.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
local
attr
=
0
local
sc
=
sg
:
GetFirst
()
while
sc
do
attr
=
attr
+
sc
:
GetAttribute
(
)
attr
=
attr
|
sc
:
GetAttribute
(
attr
)
sc
=
sg
:
GetNext
()
end
e
:
SetLabel
(
attr
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
50224280
)
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c50224280
.
spfilter1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
,
attr
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
)
e
:
GetHandler
():
RegisterFlagEffect
(
50224280
,
RESET_CHAIN
,
0
,
1
)
end
function
c50224280
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
1
then
return
end
...
...
@@ -98,5 +99,13 @@ function c50224280.rlop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c50224280
.
efilter
(
e
,
re
)
return
re
:
GetOwner
()
~=
e
:
GetOwner
()
and
not
e
:
GetHandler
():
GetLinkedGroup
():
IsContains
(
re
:
GetHandler
())
if
re
:
GetOwner
()
==
e
:
GetOwner
()
then
return
false
end
local
c
=
e
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
local
zone
=
c
:
GetLinkedZone
()
local
loc
=
re
:
GetActivateLocation
()
if
loc
&
LOCATION_MZONE
==
0
then
return
true
end
local
seq
=
re
:
GetActivateSequence
()
if
re
:
GetOwnerPlayer
()
~=
e
:
GetOwnerPlayer
()
then
seq
=
seq
+
16
end
return
bit
.
extract
(
zone
,
seq
)
==
0
end
\ No newline at end of file
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