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
612f5194
Commit
612f5194
authored
Feb 08, 2022
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c53716014.lua
parent
4905b05f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
12 deletions
+22
-12
expansions/script/c53716014.lua
expansions/script/c53716014.lua
+22
-12
No files found.
expansions/script/c53716014.lua
View file @
612f5194
...
@@ -68,8 +68,8 @@ function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -68,8 +68,8 @@ function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
cg
=
rc
:
GetColumnGroup
()
local
cg
=
rc
:
GetColumnGroup
()
cg
:
AddCard
(
rc
)
cg
:
AddCard
(
rc
)
if
chkc
then
return
cm
.
filter
(
chkc
,
cg
)
end
if
chkc
then
return
cm
.
filter
(
chkc
,
cg
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
cg
)
and
Duel
.
GetFlagEffect
(
tp
,
m
)
==
0
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
cg
)
and
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_CHAIN
,
0
,
1
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_CHAIN
,
0
,
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SELF
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SELF
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
cg
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
cg
)
Duel
.
SetTargetParam
(
500
)
Duel
.
SetTargetParam
(
500
)
...
@@ -81,15 +81,25 @@ end
...
@@ -81,15 +81,25 @@ end
function
cm
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
local
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
Duel
.
Recover
(
tp
,
d
,
REASON_EFFECT
)
~=
0
and
tc
:
IsRelateToEffect
(
e
)
then
local
b1
=
((
tc
:
IsLocation
(
LOCATION_MZONE
)
and
((
bit
.
band
(
tc
:
GetOriginalType
(),
TYPE_SPELL
+
TYPE_TRAP
)
~=
0
and
(
not
tc
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
tc
:
IsCanTurnSet
())
or
(
tc
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
tc
:
IsSSetable
()
and
tc
:
IsCanTurnSet
()))
or
(
bit
.
band
(
tc
:
GetOriginalType
(),
TYPE_SPELL
+
TYPE_TRAP
)
==
0
and
tc
:
IsCanTurnSet
())))
or
(
tc
:
IsLocation
(
LOCATION_SZONE
)
and
tc
:
IsSSetable
(
true
)))
and
not
(
tc
:
IsType
(
TYPE_PENDULUM
)
and
tc
:
IsLocation
(
LOCATION_PZONE
))
local
b1
=
((
tc
:
IsLocation
(
LOCATION_MZONE
)
and
((
bit
.
band
(
tc
:
GetOriginalType
(),
TYPE_SPELL
+
TYPE_TRAP
)
~=
0
and
(
not
tc
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
tc
:
IsCanTurnSet
())
or
(
tc
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
tc
:
IsSSetable
()
and
tc
:
IsCanTurnSet
()))
or
(
bit
.
band
(
tc
:
GetOriginalType
(),
TYPE_SPELL
+
TYPE_TRAP
)
==
0
and
tc
:
IsCanTurnSet
())))
or
(
tc
:
IsLocation
(
LOCATION_SZONE
)
and
tc
:
IsSSetable
(
true
)))
and
not
(
tc
:
IsType
(
TYPE_PENDULUM
)
and
tc
:
IsLocation
(
LOCATION_PZONE
))
local
b2
=
tc
:
IsReleasableByEffect
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
cm
.
filter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
if
Duel
.
Recover
(
tp
,
d
,
REASON_EFFECT
)
~=
0
and
(
b1
or
b2
)
and
tc
:
IsRelateToEffect
(
e
)
then
local
op
=
0
local
off
=
1
if
b1
and
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
2
),
aux
.
Stringid
(
m
,
3
))
local
ops
,
opval
=
{},{}
elseif
b1
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
2
))
if
b1
then
elseif
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
3
))
+
1
ops
[
off
]
=
aux
.
Stringid
(
m
,
2
)
else
return
end
opval
[
off
]
=
0
if
op
==
0
then
off
=
off
+
1
end
if
b2
then
ops
[
off
]
=
aux
.
Stringid
(
m
,
3
)
opval
[
off
]
=
1
off
=
off
+
1
end
ops
[
off
]
=
aux
.
Stringid
(
53718007
,
2
)
opval
[
off
]
=
2
local
op
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
ops
))
+
1
if
opval
[
op
]
==
0
then
tc
:
CancelToGrave
()
tc
:
CancelToGrave
()
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN
)
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN
)
local
loc
=
0
local
loc
=
0
...
@@ -97,7 +107,7 @@ function cm.disop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -97,7 +107,7 @@ function cm.disop(e,tp,eg,ep,ev,re,r,rp)
elseif
tc
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
then
loc
=
LOCATION_SZONE
end
elseif
tc
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
then
loc
=
LOCATION_SZONE
end
if
tc
:
GetOriginalType
()
&
TYPE_MONSTER
==
0
and
tc
:
IsLocation
(
LOCATION_MZONE
)
then
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
loc
,
POS_FACEDOWN
,
false
)
end
if
tc
:
GetOriginalType
()
&
TYPE_MONSTER
==
0
and
tc
:
IsLocation
(
LOCATION_MZONE
)
then
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
loc
,
POS_FACEDOWN
,
false
)
end
if
tc
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
then
Duel
.
RaiseEvent
(
tc
,
EVENT_SSET
,
e
,
REASON_EFFECT
,
tp
,
tp
,
0
)
end
if
tc
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
then
Duel
.
RaiseEvent
(
tc
,
EVENT_SSET
,
e
,
REASON_EFFECT
,
tp
,
tp
,
0
)
end
else
else
if
opval
[
op
]
==
1
then
if
Duel
.
Release
(
tc
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
Release
(
tc
,
REASON_EFFECT
)
~=
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
cm
.
filter2
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
cm
.
filter2
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
...
...
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