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
REIKAI
ygopro-222DIY-cards
Commits
0798500f
Commit
0798500f
authored
Dec 08, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
7
parent
c37258b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
expansions/script/c75600167.lua
expansions/script/c75600167.lua
+15
-16
No files found.
expansions/script/c75600167.lua
View file @
0798500f
...
...
@@ -16,21 +16,13 @@ function c75600167.initial_effect(c)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetOperation
(
c75600167
.
chainop
)
c
:
RegisterEffect
(
e3
)
if
not
c75600167
.
global_check
then
c75600167
.
global_check
=
true
c75600167
[
0
]
=
nil
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_PAY_LPCOST
)
ge1
:
SetOperation
(
c75600167
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
c75600167
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
cid
=
Duel
.
GetCurrentChain
()
if
cid
>
0
then
c75600167
[
0
]
=
Duel
.
GetChainInfo
(
cid
,
CHAININFO_CHAIN_ID
)
end
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetCode
(
EVENT_PAY_LPCOST
)
e0
:
SetRange
(
LOCATION_FZONE
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetOperation
(
c75600167
.
regop
)
c
:
RegisterEffect
(
e0
)
end
function
c75600167
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
@@ -54,8 +46,15 @@ function c75600167.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
end
end
function
c75600167
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
ep
==
tp
and
re
:
IsActivated
()
then
c
:
RegisterFlagEffect
(
75600167
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
+
RESET_CHAIN
,
0
,
1
)
end
end
function
c75600167
.
chainop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetChainInfo
(
0
,
CHAININFO_CHAIN_ID
)
==
c75600167
[
0
]
and
ep
==
tp
then
if
ep
==
tp
and
e
:
GetHandler
():
GetFlagEffect
(
75600167
)
>
0
then
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
aux
.
Stringid
(
75600167
,
0
))
and
Duel
.
CheckLPCost
(
tp
,
500
)
then
Duel
.
PayLPCost
(
tp
,
500
)
Duel
.
SetChainLimit
(
c75600167
.
chainlm
)
...
...
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