Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
Vury Leo
pre-release-database-cdb
Commits
74d2c73b
Commit
74d2c73b
authored
Jun 14, 2025
by
Vury Leo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 聖なる法典 to new fusion
parent
25cf9d72
Pipeline
#37573
failed with stages
in 1 minute and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
script/c34933456.lua
script/c34933456.lua
+42
-0
No files found.
script/c34933456.lua
0 → 100644
View file @
74d2c73b
--聖なる法典
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
--Activate
local
e1
=
FusionSpell
.
CreateSummonEffect
(
c
,{
pre_select_mat_location
=
s
.
pre_select_mat_location
,
additional_fcheck
=
s
.
fcheck
})
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
c
:
RegisterEffect
(
e1
)
end
---@type FUSION_SPELL_PRE_SELECT_MAT_LOCATION_FUNCTION
function
s
.
pre_select_mat_location
(
tc
,
tp
)
local
location
=
LOCATION_HAND
|
LOCATION_MZONE
--- If Summoning a "Magistus" Fusion Monster, you can also use monsters in your Spell & Trap Zones
if
tc
:
IsSetCard
(
0x150
)
then
location
=
location
|
LOCATION_SZONE
end
return
location
end
---@type FUSION_FGCHECK_FUNCTION
function
s
.
fcheck
(
tp
,
mg
,
tc
,
mg_all
)
--- materials must include a Spellcaster monster
--- @param c Card
if
not
mg_all
:
IsExists
(
function
(
c
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
end
,
1
,
nil
)
then
return
false
end
--- when we have mg in SZONE, we already know tc is Magistus
--- you can only use monsters in your Spell & Trap Zones that are equipped to a "Magistus" monster.
local
mg_szone
=
mg
:
Filter
(
function
(
c
)
return
c
:
IsLocation
(
LOCATION_SZONE
)
end
,
nil
)
if
mg_szone
:
IsExists
(
aux
.
NOT
(
s
.
mttg
),
1
,
nil
)
then
return
false
end
return
true
end
function
s
.
mttg
(
e
,
c
)
local
tc
=
c
:
GetEquipTarget
()
return
tc
and
tc
:
IsSetCard
(
0x150
)
and
c
:
GetOriginalType
()
&
TYPE_MONSTER
~=
0
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