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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
f76fc0d9
Commit
f76fc0d9
authored
Aug 19, 2024
by
Huangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
12063f27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
75 deletions
+4
-75
expansions/script/1000373.lua
expansions/script/1000373.lua
+0
-71
expansions/script/c1000373.lua
expansions/script/c1000373.lua
+4
-4
No files found.
expansions/script/1000373.lua
deleted
100644 → 0
View file @
12063f27
--倾·物语
function
c1000373
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
0
,
1000373
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetTarget
(
c1000373
.
target1
)
e1
:
SetOperation
(
c1000373
.
operation
)
c
:
RegisterEffect
(
e1
)
--remove
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
1000373
,
1
))
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e2
:
SetCountLimit
(
1
,
1000373
)
e2
:
SetCost
(
c1000373
.
cost2
)
e2
:
SetTarget
(
c1000373
.
target2
)
e2
:
SetOperation
(
c1000373
.
operation
)
c
:
RegisterEffect
(
e2
)
--race
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
+
LOCATION_GRAVE
,
LOCATION_MZONE
+
LOCATION_GRAVE
)
e2
:
SetCode
(
EFFECT_CHANGE_RACE
)
e2
:
SetValue
(
RACE_ZOMBIE
)
c
:
RegisterEffect
(
e2
)
end
function
c1000373
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0xc200
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c1000373
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToRemove
()
end
if
chk
==
0
then
return
true
end
if
Duel
.
CheckReleaseGroup
(
tp
,
c1000373
.
cfilter
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
1000373
,
0
))
then
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
local
cg
=
Duel
.
SelectReleaseGroup
(
tp
,
c1000373
.
cfilter
,
1
,
1
,
nil
)
Duel
.
Release
(
cg
,
REASON_COST
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
1
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
1000373
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
else
e
:
SetProperty
(
0
)
end
end
function
c1000373
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c1000373
.
cfilter
,
1
,
nil
)
end
local
cg
=
Duel
.
SelectReleaseGroup
(
tp
,
c1000373
.
cfilter
,
1
,
1
,
nil
)
Duel
.
Release
(
cg
,
REASON_COST
)
end
function
c1000373
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToRemove
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
1000373
)
==
0
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
1
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
1000373
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c1000373
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
if
not
g
then
return
end
g
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
end
\ No newline at end of file
expansions/script/c1000373.lua
View file @
f76fc0d9
...
...
@@ -37,10 +37,10 @@ end
function
c1000373
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToRemove
()
end
if
chk
==
0
then
return
true
end
if
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
c1000373
.
cfilter
,
1
,
nil
)
if
Duel
.
CheckReleaseGroup
(
tp
,
c1000373
.
cfilter
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
1000373
,
0
))
then
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
local
cg
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
c1000373
.
cfilter
,
1
,
1
,
nil
)
local
cg
=
Duel
.
SelectReleaseGroup
(
tp
,
c1000373
.
cfilter
,
1
,
1
,
nil
)
Duel
.
Release
(
cg
,
REASON_COST
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
1
,
2
,
nil
)
...
...
@@ -49,8 +49,8 @@ function c1000373.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
else
e
:
SetProperty
(
0
)
end
end
function
c1000373
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
c1000373
.
cfilter
,
1
,
nil
)
end
local
cg
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
c1000373
.
cfilter
,
1
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c1000373
.
cfilter
,
1
,
nil
)
end
local
cg
=
Duel
.
SelectReleaseGroup
(
tp
,
c1000373
.
cfilter
,
1
,
1
,
nil
)
Duel
.
Release
(
cg
,
REASON_COST
)
end
function
c1000373
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
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