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
Ai
ygopro-222DIY-cards
Commits
560f75a3
Commit
560f75a3
authored
Mar 31, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得得得得得
parent
382b122b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
3 deletions
+63
-3
expansions/script/c53702500.lua
expansions/script/c53702500.lua
+63
-3
No files found.
expansions/script/c53702500.lua
View file @
560f75a3
...
...
@@ -31,6 +31,39 @@ function cm.AllGlobalCheck(c)
Duel
.
DisableShuffleCheck
()
Duel
.
SendtoGrave
(
g
,
reason
)
end
cm
[
2
]
=
Card
.
RemoveOverlayCard
Card
.
RemoveOverlayCard
=
function
(
card
,
player
,
min
,
max
,
reason
)
local
g
=
card
:
GetOverlayGroup
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVEXYZ
)
g
=
g
:
Select
(
player
,
min
,
max
,
reason
)
Duel
.
SendtoGrave
(
g
,
reason
)
local
ct
=
Duel
.
GetOperatedGroup
():
GetCount
()
if
ct
>
0
then
return
1
else
return
0
end
end
cm
[
3
]
=
Duel
.
RemoveOverlayCard
Duel
.
RemoveOverlayCard
=
function
(
player
,
ints
,
into
,
min
,
max
,
reason
)
if
ints
==
1
then
ints
=
LOCATION_ONFIELD
end
if
into
==
1
then
into
=
LOCATION_ONFIELD
end
local
g
=
Duel
.
GetMatchingGroup
(
function
(
c
)
return
c
:
CheckRemoveOverlayCard
(
player
,
min
,
reason
)
end
,
player
,
ints
,
into
,
nil
)
local
sg
=
Group
.
CreateGroup
()
for
tc
in
aux
.
Next
(
g
)
do
sg
:
Merge
(
tc
:
GetOverlayGroup
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVEXYZ
)
sg
=
sg
:
Select
(
player
,
min
,
max
,
reason
)
Duel
.
SendtoGrave
(
sg
,
reason
)
local
ct
=
Duel
.
GetOperatedGroup
():
GetCount
()
if
ct
>
0
then
return
1
else
return
0
end
end
cm
[
4
]
=
Duel
.
SendtoGrave
Duel
.
SendtoGrave
=
function
(
target
,
reason
)
local
tg
=
Group
.
__add
(
target
,
target
)
local
g
=
tg
:
Filter
(
function
(
c
)
return
c
:
IsLocation
(
LOCATION_OVERLAY
)
and
c
:
IsOriginalSetCard
(
0x3537
)
and
not
c
:
IsHasEffect
(
EFFECT_TO_GRAVE_REDIRECT
)
and
c
:
GetOriginalType
()
&
TYPE_PENDULUM
+
TYPE_LINK
==
0
and
c
:
IsAbleToDeck
()
end
,
nil
)
for
tc
in
aux
.
Next
(
g
)
do
Duel
.
Hint
(
HINT_CARD
,
0
,
tc
:
GetOriginalCodeRule
())
Duel
.
SendtoDeck
(
tc
,
nil
,
1
,
reason
)
tc
:
ReverseInDeck
()
end
cm
[
4
](
Group
.
__sub
(
tg
,
g
),
reason
)
end
--cm[2]=Card.ReverseInDeck
--Card.ReverseInDeck=function(card)
--card:RegisterFlagEffect(53707050,RESET_EVENT+0x53c0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(53702500,2))
...
...
@@ -113,7 +146,7 @@ function cm.Peacecho(c)
c
:
RegisterEffect
(
e9
)
end
function
cm
.
PeacechoRepFilter
(
c
)
return
c
:
GetDestination
()
==
LOCATION_GRAVE
and
c
:
IsOriginalSetCard
(
0x3537
)
and
not
c
:
IsHasEffect
(
EFFECT_TO_GRAVE_REDIRECT
)
and
c
:
GetOriginalType
()
&
TYPE_PENDULUM
==
0
return
c
:
GetDestination
()
==
LOCATION_GRAVE
and
c
:
IsOriginalSetCard
(
0x3537
)
and
not
c
:
IsHasEffect
(
EFFECT_TO_GRAVE_REDIRECT
)
and
c
:
GetOriginalType
()
&
TYPE_PENDULUM
+
TYPE_LINK
==
0
and
c
:
IsAbleToDeck
()
end
function
cm
.
PeacechoToDeckTarget1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -1754,8 +1787,21 @@ function cm.Hartrazlkop(marker)
if
g
:
GetCount
()
==
0
then
break
end
sg2
:
Merge
(
g
)
end
c
:
SetMaterial
(
sg2
)
Duel
.
SendtoGrave
(
sg2
,
REASON_MATERIAL
+
REASON_LINK
)
sg2
:
KeepAlive
()
local
self
=
Group
.
FromCards
(
c
)
self
:
KeepAlive
()
cm
[
100
]
=
sg2
cm
[
101
]
=
e
cm
[
102
]
=
self
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_MOVE
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCondition
(
cm
.
adjustcon2
)
e3
:
SetOperation
(
cm
.
adjustop2
)
Duel
.
RegisterEffect
(
e3
,
tp
)
c
:
SetMaterial
(
sg2
)
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -1773,6 +1819,20 @@ function cm.Hartrazlkop(marker)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
c
:
RegisterEffect
(
e2
)
c
:
CompleteProcedure
()
Debug
.
Message
(
c
:
GetLinkMarker
())
c
:
RegisterFlagEffect
(
53729000
,
0
,
0
,
0
)
Duel
.
RaiseEvent
(
e
:
GetHandler
(),
EVENT_ADJUST
,
nil
,
0
,
PLAYER_NONE
,
PLAYER_NONE
,
0
)
end
end
function
cm
.
adjustcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
cm
[
102
]:
GetFirst
():
GetFlagEffect
(
53729000
)
>
0
end
function
cm
.
adjustop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Debug
.
Message
(
#
cm
[
100
])
local
sc
=
cm
[
102
]:
GetFirst
()
Debug
.
Message
(
sc
:
GetCode
())
if
sc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
return
end
Duel
.
RaiseEvent
(
cm
[
100
],
EVENT_BE_MATERIAL
,
cm
[
101
],
REASON_SYNCHRO
,
tp
,
tp
,
0
)
for
tc
in
aux
.
Next
(
cm
[
100
])
do
Duel
.
RaiseSingleEvent
(
tc
,
EVENT_BE_MATERIAL
,
cm
[
101
],
REASON_SYNCHRO
,
tp
,
tp
,
0
)
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