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
2d338c5e
Commit
2d338c5e
authored
May 31, 2023
by
GuGu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c7770133.lua 不能使用相关效果椿务局调整
parent
052add4e
Pipeline
#22031
passed with stage
in 2 minutes and 12 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
18 deletions
+22
-18
script/c7770133.lua
script/c7770133.lua
+22
-18
No files found.
script/c7770133.lua
View file @
2d338c5e
...
...
@@ -49,25 +49,29 @@ function l.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_PUBLIC
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
--forbidden
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
)
e2
:
SetCode
(
EFFECT_FORBIDDEN
)
e2
:
SetTarget
(
l
.
bantarget
)
e2
:
SetCondition
(
l
.
bancon
)
e2
:
SetTarget
(
l
.
bantg
)
e2
:
SetLabelObject
(
tc
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_DISABLE
)
e3
:
SetTargetRange
(
LOCATION_ONFIELD
,
LOCATION_HAND
)
e3
:
SetTarget
(
l
.
bantarget
)
e3
:
SetLabelObject
(
tc
)
Duel
.
RegisterEffect
(
e3
,
tp
)
tc
=
g
:
GetNext
()
end
end
end
function
l
.
bantarget
(
e
,
c
)
function
l
.
banfilter
(
c
,
e
)
return
c
==
e
:
GetLabelObject
()
and
c
:
IsPublic
()
end
function
l
.
bancon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tc
=
e
:
GetLabelObject
()
if
Duel
.
IsExistingMatchingCard
(
l
.
banfilter
,
tp
,
LOCATION_HAND
,
LOCATION_HAND
,
1
,
nil
,
e
)
then
return
true
end
e
:
Reset
()
return
false
end
function
l
.
bantg
(
e
,
c
)
return
c
==
e
:
GetLabelObject
()
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