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
62d6b1cd
Commit
62d6b1cd
authored
Jan 05, 2025
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace c12866815.lua
parent
acecb19e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
30 deletions
+20
-30
expansions/script/c12866815.lua
expansions/script/c12866815.lua
+20
-30
No files found.
expansions/script/c12866815.lua
View file @
62d6b1cd
...
...
@@ -31,39 +31,29 @@ function s.initial_effect(c)
e1
:
SetOperation
(
s
.
chainop
)
Duel
.
RegisterEffect
(
e1
,
0
)
s
.
globle_check
=
true
AKM_hack_fusion_check
=
Card
.
CheckFusionMaterial
function
Card
.
CheckFusionMaterial
(
card
,
Group_fus
,
Card_g
,
int_chkf
,
not_mat
)
AKM_hack_fusion_mat_get
=
Duel
.
GetFusionMaterial
function
Duel
.
GetFusionMaterial
(
player
)
local
ori_group
=
AKM_hack_fusion_mat_get
(
player
)
local
exg
=
Group
.
CreateGroup
()
exg
=
Duel
.
GetMatchingGroup
(
s
.
filter0
,
int_chkf
,
0
,
LOCATION_MZONE
,
nil
)
exg
=
Group
.
__bxor
(
exg
,
Group_fus
):
Filter
(
s
.
filter0
,
nil
,
e
)
if
exg
:
GetCount
()
>
0
then
if
Duel
.
GetFlagEffect
(
0
,
id
+
1
)
~=
0
and
Duel
.
GetFlagEffect
(
0
,
id
+
2
)
==
0
then
Duel
.
RegisterFlagEffect
(
0
,
id
+
2
,
RESET_EVENT
+
RESET_CHAIN
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
card
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e1
:
SetOperation
(
s
.
resetop
)
e1
:
SetReset
(
RESET_EVENT
+
RESET_CHAIN
)
Duel
.
RegisterEffect
(
e1
,
0
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_CHAIN_NEGATED
)
Duel
.
RegisterEffect
(
e2
,
0
)
end
local
hg
=
Group
.
__add
(
exg
,
Group_fus
)
return
AKM_hack_fusion_check
(
card
,
hg
,
Card_g
,
int_chkf
,
not_mat
)
end
return
AKM_hack_fusion_check
(
card
,
Group_fus
,
Card_g
,
int_chkf
,
not_mat
)
end
AKM_hack_fusion_select
=
Duel
.
SelectFusionMaterial
function
Duel
.
SelectFusionMaterial
(
tp
,
card
,
mg
,
gc_nil
,
chkf
)
if
Duel
.
GetFlagEffect
(
0
,
id
+
1
)
~=
0
and
Duel
.
GetFlagEffect
(
0
,
id
+
2
)
~=
0
then
exg
=
Duel
.
GetMatchingGroup
(
s
.
filter0
,
int_chkf
,
0
,
LOCATION_MZONE
,
nil
)
if
exg
:
GetCount
()
>
0
then
mg
:
Merge
(
exg
)
exg
=
Duel
.
GetMatchingGroup
(
s
.
filter0
,
player
,
0
,
LOCATION_MZONE
,
nil
)
exg
=
Group
.
__bxor
(
exg
,
ori_group
):
Filter
(
s
.
filter0
,
nil
,
e
)
if
exg
:
GetCount
()
>
0
then
if
Duel
.
GetFlagEffect
(
0
,
id
+
1
)
~=
0
and
Duel
.
GetFlagEffect
(
0
,
id
+
2
)
==
0
then
Duel
.
RegisterFlagEffect
(
0
,
id
+
2
,
RESET_EVENT
+
RESET_CHAIN
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e1
:
SetOperation
(
s
.
resetop
)
e1
:
SetReset
(
RESET_EVENT
+
RESET_CHAIN
)
Duel
.
RegisterEffect
(
e1
,
0
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_CHAIN_NEGATED
)
Duel
.
RegisterEffect
(
e2
,
0
)
end
local
hg
=
Group
.
__add
(
exg
,
ori_group
)
return
hg
end
Duel
.
ResetFlagEffect
(
0
,
id
+
2
)
return
AKM_hack_fusion_select
(
tp
,
card
,
mg
,
gc_nil
,
chkf
)
return
ori_group
end
end
end
...
...
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