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
052add4e
Commit
052add4e
authored
May 31, 2023
by
GuGu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c86379625.lua 不能使用相关效果椿务局调整
parent
08552682
Pipeline
#22030
passed with stage
in 1 minute and 47 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
22 deletions
+32
-22
script/c86379625.lua
script/c86379625.lua
+32
-22
No files found.
script/c86379625.lua
View file @
052add4e
...
@@ -71,28 +71,38 @@ function c86379625.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -71,28 +71,38 @@ function c86379625.operation(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsLocation
(
LOCATION_ONFIELD
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsLocation
(
LOCATION_ONFIELD
)
then
local
pos
=
0
if
tc
:
IsFacedown
()
then
pos
=
1
end
--forbidden
--forbidden
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
)
e1
:
SetCode
(
EFFECT_FORBIDDEN
)
e1
:
SetCode
(
EFFECT_FORBIDDEN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCondition
(
c86379625
.
bancon
)
e1
:
SetTargetRange
(
0xff
,
0xff
)
e1
:
SetTarget
(
c86379625
.
bantg
)
e1
:
SetTarget
(
c86379625
.
bantg
)
e1
:
SetLabel
(
pos
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
--[[
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_DISABLE)
e2:SetTargetRange(LOCATION_ONFIELD,LOCATION_ONFIELD)
e2:SetTarget(c86379625.bantg)
e2:SetLabelObject(tc)
e2:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e2,tp)
]]
--
end
end
end
end
function
c86379625
.
banfilter1
(
c
,
e
)
return
c
==
e
:
GetLabelObject
()
and
c
:
IsFaceup
()
and
c
:
IsOnField
()
end
function
c86379625
.
banfilter2
(
c
,
e
)
return
c
==
e
:
GetLabelObject
()
and
c
:
IsFacedown
()
and
c
:
IsOnField
()
end
function
c86379625
.
bancon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tc
=
e
:
GetLabelObject
()
local
pos
=
e
:
GetLabel
()
if
pos
==
1
and
Duel
.
IsExistingMatchingCard
(
c86379625
.
banfilter2
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
,
e
)
then
return
true
else
e
:
SetLabel
(
0
)
end
if
Duel
.
IsExistingMatchingCard
(
c86379625
.
banfilter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
,
e
)
then
return
true
end
e
:
Reset
()
return
false
end
function
c86379625
.
bantg
(
e
,
c
)
function
c86379625
.
bantg
(
e
,
c
)
return
c
==
e
:
GetLabelObject
()
return
c
==
e
:
GetLabelObject
()
end
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