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
de31666c
Commit
de31666c
authored
Jun 04, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nmbd
parent
1185860e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
expansions/script/c12038005.lua
expansions/script/c12038005.lua
+5
-4
No files found.
expansions/script/c12038005.lua
View file @
de31666c
...
@@ -49,8 +49,8 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -49,8 +49,8 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
e2
:
SetCode
(
EFFECT_PUBLIC
)
e2
:
SetCode
(
EFFECT_PUBLIC
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
tc
=
g
:
GetNext
()
tc
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
tc
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
tc
=
g
:
GetNext
()
end
end
local
ex
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
ex
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
ex
:
SetType
(
EFFECT_TYPE_FIELD
)
ex
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -84,13 +84,14 @@ function cm.negcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -84,13 +84,14 @@ function cm.negcon(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
if
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
return
true
return
true
end
end
function
filter
(
c
,
code
)
function
filter
(
c
,
rc
)
return
c
:
IsAbleToHand
()
and
c
:
IsCode
(
code
)
and
not
re
:
GetHandler
():
IsCode
(
table.unpack
(
Srprzm_setback
))
return
c
:
IsAbleToHand
()
and
c
:
IsCode
(
rc
:
GetCode
()
)
and
not
re
:
GetHandler
():
IsCode
(
table.unpack
(
Srprzm_setback
))
end
end
function
cm
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
1
,
rc
,
rc
:
GetCode
()
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
1
,
rc
,
rc
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
0
)
Srprzm_setback
[
#
Srprzm_setback
+
1
]
=
rc
:
GetCode
()
end
end
function
cm
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
...
...
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