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
2fe07269
Commit
2fe07269
authored
May 31, 2023
by
GuGu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c37009.lua 不能使用相关效果椿务局调整
parent
0b2715e1
Pipeline
#22027
passed with stage
in 1 minute and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
21 deletions
+38
-21
script/c37009.lua
script/c37009.lua
+38
-21
No files found.
script/c37009.lua
View file @
2fe07269
...
...
@@ -41,27 +41,44 @@ function c37009.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
g1
=
Duel
.
GetMatchingGroup
(
c37009
.
filter1
,
tp
,
0x12
,
0x12
,
nil
)
Duel
.
Remove
(
g1
,
POS_FACEUP
,
REASON_EFFECT
)
--forbidden
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetCode
(
EFFECT_FORBIDDEN
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
e2
:
SetTarget
(
c37009
.
bantg
)
e2
:
SetLabel
(
c
:
GetFieldID
())
e2
:
SetLabelObject
(
c
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_DISABLE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
e3
:
SetTarget
(
c37009
.
bantg
)
e3
:
SetLabel
(
c
:
GetFieldID
())
e3
:
SetLabelObject
(
c
)
c
:
RegisterEffect
(
e3
)
local
g
=
Duel
.
GetMatchingGroup
(
c37009
.
banfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
local
tc
=
g
:
GetFirst
()
while
tc
do
local
pos
=
0
if
tc
:
IsFacedown
()
then
pos
=
1
end
--forbidden
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
)
e1
:
SetCode
(
EFFECT_FORBIDDEN
)
e1
:
SetCondition
(
c37009
.
bancon
)
e1
:
SetTarget
(
c37009
.
bantg
)
e1
:
SetLabel
(
pos
)
e1
:
SetLabelObject
(
tc
)
Duel
.
RegisterEffect
(
e1
,
tp
)
tc
=
g
:
GetNext
()
end
end
function
c37009
.
banfilter
(
e
,
c
)
return
not
(
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
GetDefense
()
==
900
)
end
function
c37009
.
banfilter1
(
c
,
e
)
return
c
==
e
:
GetLabelObject
()
and
c
:
IsFaceup
()
and
c
:
IsOnField
()
end
function
c37009
.
banfilter2
(
c
,
e
)
return
c
==
e
:
GetLabelObject
()
and
c
:
IsFacedown
()
and
c
:
IsOnField
()
end
function
c37009
.
bancon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tc
=
e
:
GetLabelObject
()
local
pos
=
e
:
GetLabel
()
if
pos
==
1
and
Duel
.
IsExistingMatchingCard
(
c37009
.
banfilter2
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
,
e
)
then
return
true
else
e
:
SetLabel
(
0
)
end
if
Duel
.
IsExistingMatchingCard
(
c37009
.
banfilter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
,
e
)
then
return
true
end
e
:
Reset
()
return
false
end
function
c37009
.
bantg
(
e
,
c
)
return
c
:
GetFieldID
()
<
e
:
GetLabel
()
and
c
~=
e
:
GetLabelObject
()
and
not
(
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
GetDefense
()
==
900
)
return
c
==
e
:
GetLabelObject
(
)
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