Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
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
MyCard
ygopro-scripts-888
Commits
98714204
Commit
98714204
authored
Jan 08, 2024
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Auxiliary.mzctcheckrel
parent
49108081
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
utility.lua
utility.lua
+7
-2
No files found.
utility.lua
View file @
98714204
...
@@ -1012,9 +1012,14 @@ end
...
@@ -1012,9 +1012,14 @@ end
function
Auxiliary
.
mzctcheck
(
g
,
tp
)
function
Auxiliary
.
mzctcheck
(
g
,
tp
)
return
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
return
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
end
end
---Check if there is space in mzone after tp releases g by reason
---@param g Group
---@param tp integer
---@param reason? integer
---@return boolean
function
Auxiliary
.
mzctcheckrel
(
g
,
tp
,
reason
)
function
Auxiliary
.
mzctcheckrel
(
g
,
tp
,
reason
)
local
res
=
reason
or
REASON_COST
reason
=
reason
or
REASON_COST
return
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
and
Duel
.
CheckReleaseGroup
(
re
s
,
tp
,
Auxiliary
.
IsInGroup
,
#
g
,
nil
,
g
)
return
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
and
Duel
.
CheckReleaseGroup
(
re
ason
,
tp
,
Auxiliary
.
IsInGroup
,
#
g
,
nil
,
g
)
end
end
--used for "except this card"
--used for "except this card"
function
Auxiliary
.
ExceptThisCard
(
e
)
function
Auxiliary
.
ExceptThisCard
(
e
)
...
...
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