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
3ce78b45
Commit
3ce78b45
authored
Nov 12, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace c22134515.lua
parent
6d593e52
Pipeline
#31116
passed with stages
in 45 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
expansions/script/c22134515.lua
expansions/script/c22134515.lua
+4
-3
No files found.
expansions/script/c22134515.lua
View file @
3ce78b45
...
...
@@ -38,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
)
...
...
@@ -279,10 +279,11 @@ function s.tdfilter2(c)
end
-- 用于让卡被无效之后指示物也不会被去除
function
s
.
chkcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e22134515
=
e
local
cnt
=
e
:
GetHandler
():
GetCounter
(
0x760
)
local
chc
=
e
:
GetLabel
()
if
chc
then
if
chc
>=
cnt
then
if
chc
>=
cnt
and
cnt
<=
1
and
e
:
GetHandler
():
GetFlagEffect
(
22134501
)
==
0
then
e
:
SetLabel
(
chc
)
Duel
.
RaiseEvent
(
e
:
GetHandler
(),
EVENT_CUSTOM
+
id
,
e
,
0
,
0
,
0
,
0
)
return
...
...
@@ -306,5 +307,5 @@ function s.htccop(e,tp,eg,ep,ev,re,r,rp)
end
function
s
.
resetcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
GetLabel
(
e22134515
)
e22134515
:
SetLabel
()
e22134515
:
SetLabel
(
0
)
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