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
9f985647
Commit
9f985647
authored
Jul 02, 2023
by
GuGu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c60151321.lua 装备卡检测
parent
f60bcb4d
Pipeline
#22540
passed with stage
in 1 minute and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
script/c60151321.lua
script/c60151321.lua
+2
-10
No files found.
script/c60151321.lua
View file @
9f985647
...
...
@@ -44,22 +44,14 @@ function c60151321.setcon(e,tp,eg,ep,ev,re,r,rp)
return
not
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
c60151321
.
cfilter
,
1
,
nil
)
end
function
c60151321
.
ccfilter
(
c
)
return
c
:
GetEquipCount
()
>
0
and
c
:
GetEquipGroup
():
IsExists
(
Card
.
IsReleasable
,
1
,
nil
)
return
(
c
:
IsType
(
TYPE_EQUIP
)
or
c
:
IsLocation
(
LOCATION_PZONE
)
and
c
:
GetEquipTarget
())
and
c
:
IsReleasable
(
)
end
function
c60151321
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
and
Duel
.
IsExistingMatchingCard
(
c60151321
.
ccfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
local
g
=
Duel
.
GetMatchingGroup
(
c60151321
.
ccfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
lg
=
Group
.
CreateGroup
()
local
tc
=
g
:
GetFirst
()
while
tc
do
local
sg
=
tc
:
GetEquipGroup
()
lg
:
Merge
(
sg
)
tc
=
g
:
GetNext
()
end
local
fg
=
lg
:
Filter
(
Card
.
IsReleasable
,
nil
)
local
fg
=
Duel
.
GetMatchingGroup
(
c60151321
.
ccfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
Duel
.
Release
(
fg
,
REASON_COST
)
fg
:
KeepAlive
()
e
:
SetLabelObject
(
fg
)
...
...
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