Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
NemoCards
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
NemoCards
Commits
7df3c1fb
Commit
7df3c1fb
authored
Oct 31, 2021
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c33701394.lua
parent
a1cd500a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
7 deletions
+28
-7
expansions/script/c33701394.lua
expansions/script/c33701394.lua
+28
-7
No files found.
expansions/script/c33701394.lua
View file @
7df3c1fb
...
...
@@ -21,7 +21,8 @@ function cm.cfilter(c,tp)
return
c
:
GetPreviousControler
()
==
tp
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
cm
.
cfilter
,
1
,
nil
,
tp
)
and
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
0
)
<=
0
return
eg
:
FilterCount
(
cm
.
cfilter
,
nil
,
tp
)
==
1
and
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
0
)
<=
0
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -36,7 +37,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
--cannot be target
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
...
...
@@ -46,22 +47,42 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
--indes
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
e2
:
SetTarget
(
cm
.
eftg
)
e2
:
SetValue
(
cm
.
indval
)
c
:
RegisterEffect
(
e2
)
--cannot material
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e3
:
SetCode
(
EFFECT_CANNOT_BE_FUSION_MATERIAL
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
e3
:
SetTarget
(
cm
.
eftg
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e3
:
Clone
()
e5
:
SetCode
(
EFFECT_CANNOT_BE_XYZ_MATERIAL
)
c
:
RegisterEffect
(
e5
)
local
e6
=
e3
:
Clone
()
e6
:
SetCode
(
EFFECT_CANNOT_BE_LINK_MATERIAL
)
c
:
RegisterEffect
(
e6
)
end
end
function
cm
.
eftg
(
e
,
c
)
local
seq
=
c
:
GetSequence
()
local
tp
=
e
:
GetHandler
():
GetControler
()
local
mg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
)
local
sg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_SZONE
,
0
)
local
t1
=
mg
:
IsContains
(
e
:
GetHandler
())
and
mg
:
IsContains
(
c
)
local
t2
=
sg
:
IsContains
(
e
:
GetHandler
())
and
sg
:
IsContains
(
c
)
return
e
:
GetHandler
():
GetColumnGroup
():
IsContains
(
c
)
or
(
seq
<
5
and
math.abs
(
e
:
GetHandler
():
GetSequence
()
-
seq
)
<=
1
and
(
t1
or
t2
))
local
seq1
=
c
:
GetSequence
()
local
seq2
=
e
:
GetHandler
():
GetSequence
()
local
t1
=
e
:
GetHandler
():
GetColumnGroup
():
IsContains
(
c
)
local
t2
=
seq1
<
5
and
seq2
<
5
and
mg
:
IsContains
(
c
)
and
math.abs
(
seq1
-
seq2
)
<=
1
return
t1
or
t2
or
e
:
GetHandler
()
==
c
end
function
cm
.
indval
(
e
,
re
,
rp
)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
true
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