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
Soulgamer
ygopro-222DIY-cards
Commits
e6b8d2b2
Commit
e6b8d2b2
authored
Oct 30, 2023
by
songtongtong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
4263cde0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
expansions/script/c12044023.lua
expansions/script/c12044023.lua
+15
-5
expansions/script/c35700504.lua
expansions/script/c35700504.lua
+1
-0
No files found.
expansions/script/c12044023.lua
View file @
e6b8d2b2
...
@@ -25,10 +25,20 @@ function c12044023.initial_effect(c)
...
@@ -25,10 +25,20 @@ function c12044023.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetRange
(
LOCATION_DECK
)
e2
:
SetRange
(
LOCATION_DECK
)
e2
:
SetCondition
(
c12044023
.
spcon
)
e2
:
SetCondition
(
c12044023
.
spcon
2
)
e2
:
SetOperation
(
c12044023
.
spop
)
e2
:
SetOperation
(
c12044023
.
spop
2
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--Special Summon effect
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCondition
(
c12044023
.
spcon
)
e1
:
SetTarget
(
c12044023
.
sptg
)
e1
:
SetOperation
(
c12044023
.
spop
)
c
:
RegisterEffect
(
e1
)
end
end
function
c12044023
.
spcost
(
e
,
c
,
tp
)
function
c12044023
.
spcost
(
e
,
c
,
tp
)
return
Duel
.
GetFlagEffect
(
tp
,
12044022
)
==
0
or
not
c
:
IsLocation
(
LOCATION_DECK
)
return
Duel
.
GetFlagEffect
(
tp
,
12044022
)
==
0
or
not
c
:
IsLocation
(
LOCATION_DECK
)
...
@@ -111,12 +121,12 @@ function c12044023.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -111,12 +121,12 @@ function c12044023.spop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c12044023
.
spcon
(
e
,
c
)
function
c12044023
.
spcon
2
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsFaceup
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsFaceup
()
and
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsCode
,
4
,
nil
,
12044025
)
end
end
function
c12044023
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c12044023
.
spop
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsCode
,
4
,
nil
,
12044025
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsCode
,
4
,
nil
,
12044025
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsType
,
4
,
4
,
nil
,
TYPE_TOKEN
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsType
,
4
,
4
,
nil
,
TYPE_TOKEN
)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
...
...
expansions/script/c35700504.lua
View file @
e6b8d2b2
...
@@ -92,6 +92,7 @@ function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -92,6 +92,7 @@ function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
end
end
function
cm
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
IsExistingMatchingCard
(
cm
.
dfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
,
e
,
tp
)
then
if
Duel
.
IsExistingMatchingCard
(
cm
.
dfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
,
e
,
tp
)
then
...
...
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