Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-THC-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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
HiiragiGuardians
ygopro-THC-cards
Commits
6b20c22e
Commit
6b20c22e
authored
Dec 15, 2023
by
GuGu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c7770133.lua 对单卡“不能使用”效果相关问题修复
parent
3a045bb3
Pipeline
#24393
passed with stage
in 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
script/c7770133.lua
script/c7770133.lua
+31
-1
No files found.
script/c7770133.lua
View file @
6b20c22e
...
@@ -54,10 +54,20 @@ function l.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,10 +54,20 @@ function l.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
)
e2
:
SetCode
(
EFFECT_FORBIDDEN
)
e2
:
SetCode
(
EFFECT_FORBIDDEN
)
e2
:
SetCondition
(
l
.
bancon
)
e2
:
SetTargetRange
(
0xff
,
0xff
)
--e2:SetCondition(l.bancon)
e2
:
SetTarget
(
l
.
bantg
)
e2
:
SetTarget
(
l
.
bantg
)
e2
:
SetLabelObject
(
tc
)
e2
:
SetLabelObject
(
tc
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
--adjust
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetCode
(
EVENT_ADJUST
)
e3
:
SetOperation
(
l
.
adjustcon
)
e3
:
SetOperation
(
l
.
adjustop
)
e3
:
SetLabelObject
(
e2
)
Duel
.
RegisterEffect
(
e3
,
tp
)
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
end
end
...
@@ -72,6 +82,26 @@ function l.bancon(e)
...
@@ -72,6 +82,26 @@ function l.bancon(e)
e
:
Reset
()
e
:
Reset
()
return
false
return
false
end
end
function
l
.
banfilter2
(
c
,
tc
)
return
c
==
tc
and
c
:
IsPublic
()
end
function
l
.
adjustcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e2
=
e
:
GetLabelObject
()
if
not
e2
then
return
false
end
local
tc
=
e2
:
GetLabelObject
()
if
not
tc
then
return
false
end
return
not
Duel
.
IsExistingMatchingCard
(
l
.
banfilter2
,
tp
,
LOCATION_HAND
,
LOCATION_HAND
,
1
,
nil
,
tc
)
end
function
l
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e2
=
e
:
GetLabelObject
()
if
not
e2
then
return
false
end
local
tc
=
e2
:
GetLabelObject
()
if
not
tc
then
return
false
end
if
not
Duel
.
IsExistingMatchingCard
(
l
.
banfilter2
,
tp
,
LOCATION_HAND
,
LOCATION_HAND
,
1
,
nil
,
tc
)
then
e2
:
Reset
()
e
:
Reset
()
end
end
function
l
.
bantg
(
e
,
c
)
function
l
.
bantg
(
e
,
c
)
return
c
==
e
:
GetLabelObject
()
return
c
==
e
:
GetLabelObject
()
end
end
\ No newline at end of file
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