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
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
Vee4
ygopro-scripts-888
Commits
f5ace94b
Commit
f5ace94b
authored
May 14, 2024
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update お代狸様の代算様
parent
47836e56
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
+22
-6
c20560620.lua
c20560620.lua
+6
-6
procedure.lua
procedure.lua
+16
-0
No files found.
c20560620.lua
View file @
f5ace94b
...
...
@@ -25,17 +25,17 @@ function s.initial_effect(c)
--workaround
if
not
aux
.
rit_mat_hack_check
then
aux
.
rit_mat_hack_check
=
true
function
aux
.
rit_mat_hack_exmat_filter
(
c
)
return
c
:
IsHasEffect
(
EFFECT_EXTRA_RITUAL_MATERIAL
,
c
:
GetControler
())
and
c
:
IsLocation
(
LOCATION_EXTRA
)
function
aux
.
rit_mat_hack_exmat_filter
(
t
c
)
return
tc
:
IsHasEffect
(
EFFECT_EXTRA_RITUAL_MATERIAL
,
tc
:
GetControler
())
and
t
c
:
IsLocation
(
LOCATION_EXTRA
)
end
function
aux
.
RitualCheckGreater
(
g
,
c
,
lv
)
function
aux
.
RitualCheckGreater
(
g
,
r
c
,
lv
)
if
g
:
FilterCount
(
aux
.
rit_mat_hack_exmat_filter
,
nil
)
>
1
then
return
false
end
Duel
.
SetSelectedCard
(
g
)
return
g
:
CheckWithSumGreater
(
Card
.
GetRitualLevel
,
lv
,
c
)
return
g
:
CheckWithSumGreater
(
Card
.
GetRitualLevel
,
lv
,
r
c
)
end
function
aux
.
RitualCheckEqual
(
g
,
c
,
lv
)
function
aux
.
RitualCheckEqual
(
g
,
r
c
,
lv
)
if
g
:
FilterCount
(
aux
.
rit_mat_hack_exmat_filter
,
nil
)
>
1
then
return
false
end
return
g
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
lv
,
#
g
,
#
g
,
c
)
return
g
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
lv
,
#
g
,
#
g
,
r
c
)
end
_ReleaseRitualMaterial
=
Duel
.
ReleaseRitualMaterial
function
Duel
.
ReleaseRitualMaterial
(
mat
)
...
...
procedure.lua
View file @
f5ace94b
...
...
@@ -1733,13 +1733,29 @@ function Auxiliary.AddRitualProcUltimate(c,filter,level_function,greater_or_equa
end
return
e1
end
---@param g Group
---@param c Card
---@param lv integer
---@return boolean
function
Auxiliary
.
RitualCheckGreater
(
g
,
c
,
lv
)
Duel
.
SetSelectedCard
(
g
)
return
g
:
CheckWithSumGreater
(
Card
.
GetRitualLevel
,
lv
,
c
)
end
---@param g Group
---@param c Card
---@param lv integer
---@return boolean
function
Auxiliary
.
RitualCheckEqual
(
g
,
c
,
lv
)
return
g
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
lv
,
#
g
,
#
g
,
c
)
end
---@param g Group
---@param tp integer
---@param c Card
---@param lv integer
---@param greater_or_equal string
---|"'Greater'"
---|"'Equal'"
---@return boolean
function
Auxiliary
.
RitualCheck
(
g
,
tp
,
c
,
lv
,
greater_or_equal
)
return
Auxiliary
[
"RitualCheck"
..
greater_or_equal
](
g
,
c
,
lv
)
and
Duel
.
GetMZoneCount
(
tp
,
g
,
tp
)
>
0
and
(
not
c
.
mat_group_check
or
c
.
mat_group_check
(
g
,
tp
))
and
(
not
Auxiliary
.
RCheckAdditional
or
Auxiliary
.
RCheckAdditional
(
tp
,
g
,
c
))
...
...
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