Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Nemo Ma
no81cards
Commits
07bd49ae
Commit
07bd49ae
authored
Jun 12, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c0a6deb0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
28 deletions
+24
-28
expansions/script/c53702500.lua
expansions/script/c53702500.lua
+21
-22
expansions/script/c65010017.lua
expansions/script/c65010017.lua
+3
-6
No files found.
expansions/script/c53702500.lua
View file @
07bd49ae
...
@@ -517,12 +517,12 @@ function cm.ALCYakuNew(c,code,cf,loc,t)
...
@@ -517,12 +517,12 @@ function cm.ALCYakuNew(c,code,cf,loc,t)
e1
:
SetTarget
(
cm
.
NALCTtg
(
code
,
loc
,
t
))
e1
:
SetTarget
(
cm
.
NALCTtg
(
code
,
loc
,
t
))
e1
:
SetOperation
(
cm
.
NALCTac
(
code
,
cf
,
t
))
e1
:
SetOperation
(
cm
.
NALCTac
(
code
,
cf
,
t
))
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
--[[
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e2:SetCode(EVENT_ADJUST)
e2:SetCode(EVENT_ADJUST)
e2:SetRange(0x7f)
e2:SetRange(0x7f)
e2:SetOperation(cm.ALCReload)
e2:SetOperation(cm.ALCReload)
c
:
RegisterEffect
(
e2
)
c:RegisterEffect(e2)
--]]
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e3
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
...
@@ -530,7 +530,7 @@ function cm.ALCYakuNew(c,code,cf,loc,t)
...
@@ -530,7 +530,7 @@ function cm.ALCYakuNew(c,code,cf,loc,t)
e3
:
SetCondition
(
cm
.
ALCYakuActCondition
)
e3
:
SetCondition
(
cm
.
ALCYakuActCondition
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
cm
.
ALCReload
(
e
,
tp
)
--[[
function cm.ALCReload(e,tp)
aux.AddFusionProcCode2=_tmp
aux.AddFusionProcCode2=_tmp
aux.AddFusionProcCode2FunRep=_tmp_1
aux.AddFusionProcCode2FunRep=_tmp_1
aux.AddFusionProcCode3=_tmp_2
aux.AddFusionProcCode3=_tmp_2
...
@@ -757,7 +757,7 @@ function aux.AddFusionProcShaddoll(c,att)
...
@@ -757,7 +757,7 @@ function aux.AddFusionProcShaddoll(c,att)
ccodem.fst=2
ccodem.fst=2
end
end
return _tmp_1_4(c,att)
return _tmp_1_4(c,att)
end
end
--]]
function
cm
.
NALCTtg
(
code
,
loc
,
t
)
function
cm
.
NALCTtg
(
code
,
loc
,
t
)
return
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
@@ -790,15 +790,17 @@ function cm.NALCTac(code,cf,t)
...
@@ -790,15 +790,17 @@ function cm.NALCTac(code,cf,t)
e1
:
SetReset
(
RESET_EVENT
+
0x7e0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x7e0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
chkf
=
tp
local
chkf
=
tp
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
local
mtf
=
function
(
c
,
e
,
tp
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_TRAP
)
~=
0
and
c
:
CheckUniqueOnField
(
tp
)
and
not
c
:
IsForbidden
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
local
mtf
=
function
(
c
,
e
,
tp
)
return
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_TRAP
)
~=
0
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
CheckUniqueOnField
(
tp
)
and
not
c
:
IsForbidden
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
local
fuf
=
function
(
c
,
e
,
tp
,
m
,
f
,
chkf
,
ft
)
return
c
:
IsType
(
TYPE_FUSION
)
and
(
not
f
or
f
(
c
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
end
local
fuf
=
function
(
c
,
e
,
tp
,
m
,
f
,
chkf
,
ft
)
local
fchk
=
function
(
tp
,
sg
,
fc
)
return
c
:
IsType
(
TYPE_FUSION
)
and
(
not
f
or
f
(
c
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
and
(
not
c
.
fst
or
ft
>=
c
.
fst
)
local
mt
=
getmetatable
(
fc
)
end
local
t
=
mt
.
material_count
local
zck
=
function
(
g
,
c
,
chkf
,
ft
)
return
c
:
CheckFusionMaterial
(
g
,
nil
,
chkf
)
and
ft
>=#
g
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
Card
.
IsOnField
,
nil
):
Filter
(
mtf
,
nil
,
e
,
tp
)
return
not
t
or
ft
>=
t
[
1
]
if
#
mg1
==
0
then
return
end
end
local
sg1
=
Duel
.
GetMatchingGroup
(
fuf
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
,
ft
)
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
mtf
,
nil
,
e
,
tp
)
aux
.
FCheckAdditional
=
fchk
local
sg1
=
Duel
.
GetMatchingGroup
(
fuf
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
mg2
=
nil
local
mg2
=
nil
local
sg2
=
nil
local
sg2
=
nil
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
...
@@ -806,9 +808,9 @@ function cm.NALCTac(code,cf,t)
...
@@ -806,9 +808,9 @@ function cm.NALCTac(code,cf,t)
local
fgroup
=
ce
:
GetTarget
()
local
fgroup
=
ce
:
GetTarget
()
mg2
=
fgroup
(
ce
,
e
,
tp
)
mg2
=
fgroup
(
ce
,
e
,
tp
)
local
mf
=
ce
:
GetValue
()
local
mf
=
ce
:
GetValue
()
sg2
=
Duel
.
GetMatchingGroup
(
fuf
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg2
,
mf
,
chkf
,
114
)
sg2
=
Duel
.
GetMatchingGroup
(
fuf
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg2
,
mf
,
chkf
)
end
end
if
(
#
sg1
>
0
or
(
sg2
~=
nil
and
sg2
:
GetCount
()
>
0
))
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
code
,
0
))
then
if
(
sg1
:
GetCount
()
>
0
or
(
sg2
~=
nil
and
sg2
:
GetCount
()
>
0
))
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
code
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
local
sg
=
sg1
:
Clone
()
local
sg
=
sg1
:
Clone
()
if
sg2
then
sg
:
Merge
(
sg2
)
end
if
sg2
then
sg
:
Merge
(
sg2
)
end
...
@@ -816,13 +818,9 @@ function cm.NALCTac(code,cf,t)
...
@@ -816,13 +818,9 @@ function cm.NALCTac(code,cf,t)
local
tg
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
local
tg
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
tg
:
GetFirst
()
local
tc
=
tg
:
GetFirst
()
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
if
tc
.
fst
then
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
nil
,
chkf
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
53702600
,
3
))
tc
:
SetMaterial
(
mat1
)
local
mat1
=
mg1
:
SelectSubGroup
(
tp
,
zck
,
false
,
tc
.
fst
,
#
mg1
,
tc
,
chkf
,
ft
)
for
mvc
in
aux
.
Next
(
mat1
)
do
Duel
.
MoveToField
(
mvc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
mvc
:
SetReason
(
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
end
--local mat1=Duel.SelectFusionMaterial(tp,tc,mg1,nil,chkf)
tc
:
SetMaterial
(
mat1
)
for
mvc
in
aux
.
Next
(
mat1
)
do
Duel
.
MoveToField
(
mvc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
else
else
...
@@ -831,6 +829,7 @@ function cm.NALCTac(code,cf,t)
...
@@ -831,6 +829,7 @@ function cm.NALCTac(code,cf,t)
fop
(
ce
,
e
,
tp
,
tc
,
mat2
)
fop
(
ce
,
e
,
tp
,
tc
,
mat2
)
end
end
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
aux
.
FCheckAdditional
=
nil
end
end
end
end
end
end
...
...
expansions/script/c65010017.lua
View file @
07bd49ae
...
@@ -48,14 +48,11 @@ function c65010017.initial_effect(c)
...
@@ -48,14 +48,11 @@ function c65010017.initial_effect(c)
e4
:
SetOperation
(
c65010017
.
tdop
)
e4
:
SetOperation
(
c65010017
.
tdop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c65010017
.
cfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
--and c:IsPreviousLocation(LOCATION_DECK)
end
function
c65010017
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65010017
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetCurrentPhase
()
==
PHASE_DRAW
then
return
false
end
if
Duel
.
GetCurrentPhase
()
==
PHASE_DRAW
or
Duel
.
GetCurrentPhase
()
==
0
then
return
false
end
local
v
=
0
local
v
=
0
if
eg
:
IsExists
(
c65010017
.
cfilt
er
,
1
,
nil
,
0
)
then
v
=
v
+
1
end
if
eg
:
IsExists
(
Card
.
IsControl
er
,
1
,
nil
,
0
)
then
v
=
v
+
1
end
if
eg
:
IsExists
(
c65010017
.
cfilt
er
,
1
,
nil
,
1
)
then
v
=
v
+
2
end
if
eg
:
IsExists
(
Card
.
IsControl
er
,
1
,
nil
,
1
)
then
v
=
v
+
2
end
if
v
==
0
then
return
false
end
if
v
==
0
then
return
false
end
e
:
SetLabel
(({
0
,
1
,
PLAYER_ALL
})[
v
])
e
:
SetLabel
(({
0
,
1
,
PLAYER_ALL
})[
v
])
return
true
return
true
...
...
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