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
xiaoye
ygopro-222DIY-cards
Commits
edd79440
Commit
edd79440
authored
Jan 10, 2025
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace c11451908.lua
parent
47ddc85b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
14 deletions
+24
-14
expansions/script/c11451908.lua
expansions/script/c11451908.lua
+24
-14
No files found.
expansions/script/c11451908.lua
View file @
edd79440
...
...
@@ -73,21 +73,31 @@ function cm.initial_effect(c)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
if
chk
==
0
then
return
ft
>
0
and
Duel
.
GetFlagEffect
(
tp
,
11451902
)
>
0
end
Duel
.
ResetFlagEffect
(
tp
,
11451902
)
if
Duel
.
GetFlagEffect
(
1
,
11451901
)
==
0
then
--change code
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CHANGE_CODE
)
e3
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_REPEAT
+
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_OATH
)
e3
:
SetTargetRange
(
0xff
,
0xff
)
e3
:
SetTarget
(
function
(
e
,
c
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsOriginalCodeRule
,
0
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
c
,
table.unpack
({
c
:
GetOriginalCodeRule
()}))
end
)
e3
:
SetValue
(
function
(
e
,
c
)
return
c
:
GetOriginalCode
()
+
0x527
+
c
:
GetFieldID
()
end
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
if
chk
==
0
then
return
ft
>
0
and
Duel
.
GetFlagEffect
(
tp
,
11451902
)
>
0
end
Duel
.
RegisterFlagEffect
(
1
,
11451901
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
Duel
.
ResetFlagEffect
(
tp
,
11451902
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e1
:
SetOperation
(
function
(
e
)
if
Duel
.
GetFlagEffect
(
1
,
11451901
)
==
0
and
Duel
.
GetCurrentChain
()
==
e
:
GetLabel
()
then
--change code
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CHANGE_CODE
)
e3
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_REPEAT
+
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_OATH
)
e3
:
SetTargetRange
(
0xff
,
0xff
)
e3
:
SetTarget
(
function
(
e
,
c
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsOriginalCodeRule
,
0
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
c
,
table.unpack
({
c
:
GetOriginalCodeRule
()}))
end
)
e3
:
SetValue
(
function
(
e
,
c
)
return
c
:
GetOriginalCode
()
+
0x527
+
c
:
GetFieldID
()
end
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
Duel
.
RegisterFlagEffect
(
1
,
11451901
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
end
)
e1
:
SetReset
(
RESET_CHAIN
)
e1
:
SetLabel
(
Duel
.
GetCurrentChain
())
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
cm
.
nmfilter
(
c
)
return
c
:
GetFlagEffect
(
11451908
)
==
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsOriginalCodeRule
,
0
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
c
,
table.unpack
({
c
:
GetOriginalCodeRule
()}))
...
...
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