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
320cd670
Commit
320cd670
authored
Aug 15, 2024
by
GuGu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c19027.lua
parent
40c61dde
Pipeline
#29226
passed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
31 deletions
+4
-31
script/c19027.lua
script/c19027.lua
+4
-31
No files found.
script/c19027.lua
View file @
320cd670
...
@@ -47,41 +47,14 @@ function c19027.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,41 +47,14 @@ function c19027.desop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
local
pos
=
0
if
tc
:
IsFacedown
()
then
pos
=
1
end
--forbidden
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_
FIELD
)
e1
:
SetType
(
EFFECT_TYPE_
SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_FORBIDDEN
)
e1
:
SetCode
(
EFFECT_FORBIDDEN
)
e1
:
SetCondition
(
c19027
.
bancon
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetTarget
(
c19027
.
bantg
)
tc
:
RegisterEffect
(
e1
,
true
)
e1
:
SetLabel
(
pos
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
tc
=
g
:
GetNext
()
end
end
end
end
function
c19027
.
banfilter1
(
c
,
e
)
return
c
==
e
:
GetLabelObject
()
and
c
:
IsFaceup
()
and
c
:
IsOnField
()
end
function
c19027
.
banfilter2
(
c
,
e
)
return
c
==
e
:
GetLabelObject
()
and
c
:
IsFacedown
()
and
c
:
IsOnField
()
end
function
c19027
.
bancon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tc
=
e
:
GetLabelObject
()
local
pos
=
e
:
GetLabel
()
if
pos
==
1
and
Duel
.
IsExistingMatchingCard
(
c19027
.
banfilter2
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
,
e
)
then
return
true
else
e
:
SetLabel
(
0
)
end
if
Duel
.
IsExistingMatchingCard
(
c19027
.
banfilter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
,
e
)
then
return
true
end
e
:
Reset
()
return
false
end
function
c19027
.
bantg
(
e
,
c
)
return
c
==
e
:
GetLabelObject
()
end
function
c19027
.
cfilter
(
c
,
tp
)
function
c19027
.
cfilter
(
c
,
tp
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
GetAttack
()
<=
2000
and
c
:
IsSetCard
(
0x208
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
GetAttack
()
<=
2000
and
c
:
IsSetCard
(
0x208
)
...
...
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