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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
8c4ee299
Commit
8c4ee299
authored
Oct 30, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace c22134505.lua
parent
845ed997
Pipeline
#30862
canceled with stages
in 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
expansions/script/c22134505.lua
expansions/script/c22134505.lua
+7
-5
No files found.
expansions/script/c22134505.lua
View file @
8c4ee299
--荒芜之地·粉碎奇迹
local
s
,
id
,
o
=
GetID
()
local
e22134505
function
s
.
initial_effect
(
c
)
-- 让这张卡就算被无效也能放指示物
-- 以后定义哪张卡可以放指示物要在这里输入0x760
...
...
@@ -37,7 +38,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
ec1
)
-- 检测指示物是否属于自主减少
local
ec0
=
Effect
.
CreateEffect
(
c
)
ec0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_
SINGLE
)
ec0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_
FIELD
)
ec0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
ec0
:
SetRange
(
LOCATION_MZONE
+
LOCATION_PZONE
)
ec0
:
SetCode
(
EVENT_REMOVE_COUNTER
+
0x760
)
...
...
@@ -186,6 +187,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if
not
Card
.
IsCanBeSpecialSummoned
(
c
,
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0x760
,
5
,
REASON_EFFECT
)
then
return
end
if
not
Duel
.
RemoveCounter
(
tp
,
1
,
0
,
0x760
,
5
,
REASON_EFFECT
)
then
return
end
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
Duel
.
RaiseEvent
(
e
:
GetHandler
(),
EVENT_REMOVE_COUNTER
+
0x760
,
e22134505
,
REASON_EFFECT
,
tp
,
tp
,
count
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
s
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
ct
==
0
or
(
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
)))
then
return
end
Duel
.
BreakEffect
()
...
...
@@ -290,12 +292,12 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
elseif
wh
==
LOCATION_GRAVE
then
if
not
(
b3
and
bb
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
RTOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
tdfilter2
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
c
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
elseif
wh
==
LOCATION_REMOVED
then
if
not
(
b4
and
bb
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
RTOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
tdfilter2
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
1
,
c
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
end
...
...
@@ -322,8 +324,8 @@ function s.chkcop(e,tp,eg,ep,ev,re,r,rp)
e
:
SetLabel
(
cnt
)
end
function
s
.
chkncop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
GetFlagEffect
(
22134501
)
==
0
then
e
:
GetHandler
():
RegisterFlagEffect
(
22134501
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
+
RESET_CHAIN
,
0
,
1
)
if
e
:
GetHandler
():
GetFlagEffect
(
22134501
)
==
0
and
e22134505
then
e
22134505
:
SetLabel
(
e
:
GetHandler
():
GetCounter
(
0x760
)
)
end
end
function
s
.
htccop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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