Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Soulgamer
ygopro-222DIY-cards
Commits
f039909f
Commit
f039909f
authored
Mar 01, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ybb
parent
d4cd4a9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
expansions/script/c81006013.lua
expansions/script/c81006013.lua
+17
-9
No files found.
expansions/script/c81006013.lua
View file @
f039909f
...
@@ -34,17 +34,25 @@ function cm.initial_effect(c)
...
@@ -34,17 +34,25 @@ function cm.initial_effect(c)
e3
:
SetTarget
(
cm
.
tgtg
)
e3
:
SetTarget
(
cm
.
tgtg
)
e3
:
SetOperation
(
cm
.
tgop
)
e3
:
SetOperation
(
cm
.
tgop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--spsummon
--search
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e0
:
SetRange
(
LOCATION_SZONE
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetOperation
(
cm
.
regop
)
c
:
RegisterEffect
(
e0
)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e4
:
SetRange
(
LOCATION_REMOVED
)
e4
:
SetRange
(
LOCATION_REMOVED
)
e4
:
SetCountLimit
(
1
,
m
+
900
)
e4
:
SetCountLimit
(
1
,
m
+
900
)
e4
:
SetCondition
(
cm
.
lspcon
)
e4
:
SetCondition
(
cm
.
lspcon
)
e4
:
SetTarget
(
cm
.
lsptg
)
e4
:
SetTarget
(
cm
.
lsptg
)
e4
:
SetOperation
(
cm
.
lspop
)
e4
:
SetOperation
(
cm
.
lspop
)
e4
:
SetLabelObject
(
e0
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
cm
.
ffilter
(
c
,
fc
,
sub
,
mg
,
sg
)
function
cm
.
ffilter
(
c
,
fc
,
sub
,
mg
,
sg
)
...
@@ -83,15 +91,15 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -83,15 +91,15 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
cm
.
lcfilter
(
c
,
tp
)
function
cm
.
lcfilter
(
c
,
tp
)
return
c
:
Is
PreviousPosition
(
POS_FACEUP
)
and
c
:
IsPreviousControler
(
tp
)
return
c
:
Is
Location
(
LOCATION_MZONE
)
and
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
and
c
:
IsPosition
(
POS_FACEUP
)
and
c
:
IsControler
(
tp
)
and
bit
.
band
(
c
:
GetPreviousTypeOnField
(),
TYPE_FUSION
)
~=
0
end
and
bit
.
band
(
c
:
GetPreviousRaceOnField
(),
RACE_PLANT
)
~=
0
function
cm
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
bit
.
band
(
c
:
GetPreviousAttributeOnField
(),
ATTRIBUTE_EARTH
)
~=
0
if
eg
:
IsExists
(
cm
.
lcfilter
,
1
,
nil
,
tp
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
then
and
bit
.
band
(
c
:
GetPreviousCodeOnField
(),
m
)
==
0
e
:
SetLabel
(
1
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
else
e
:
SetLabel
(
0
)
end
end
end
function
cm
.
lspcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
lspcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
g
:
IsExists
(
cm
.
lcfilter
,
1
,
nil
,
tp
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
return
e
:
GetLabelObject
():
GetLabel
()
==
1
end
end
function
cm
.
lsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
lsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
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