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
ccac2dee
Commit
ccac2dee
authored
Oct 29, 2021
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c33701112.lua
parent
fe1ce61e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
45 deletions
+21
-45
expansions/script/c33701112.lua
expansions/script/c33701112.lua
+21
-45
No files found.
expansions/script/c33701112.lua
View file @
ccac2dee
...
...
@@ -2,15 +2,15 @@
function
c33701112
.
initial_effect
(
c
)
--xyz summon
c
:
EnableReviveLimit
()
aux
.
AddXyzProcedureLevelFree
(
c
,
nil
,
c33701112
.
xyzcheck
,
3
,
3
)
aux
.
AddXyzProcedureLevelFree
(
c
,
nil
,
c33701112
.
xyzcheck
,
3
,
3
,
c33701112
.
ovfilter
,
aux
.
Stringid
(
33701112
,
0
),
c33701112
.
xyzop
)
--attribute
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e
2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e
2
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e
2
:
SetRange
(
LOCATION_MZONE
)
e
2
:
SetValue
(
0x2f
)
c
:
RegisterEffect
(
e
2
)
local
e
1
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e
1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e
1
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e
1
:
SetRange
(
LOCATION_MZONE
)
e
1
:
SetValue
(
0x2f
)
c
:
RegisterEffect
(
e
1
)
--extra material
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
33701112
,
0
))
...
...
@@ -19,8 +19,8 @@ function c33701112.initial_effect(c)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetLabelObject
(
c
)
e2
:
SetCondition
(
c33701112
.
xyzcon
)
e2
:
SetOperation
(
c33701112
.
xyzop
)
e2
:
SetCondition
(
c33701112
.
xyzcon
2
)
e2
:
SetOperation
(
c33701112
.
xyzop
2
)
e2
:
SetValue
(
SUMMON_TYPE_XYZ
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_GRANT
)
...
...
@@ -28,32 +28,29 @@ function c33701112.initial_effect(c)
e3
:
SetTargetRange
(
LOCATION_EXTRA
,
0
)
e3
:
SetTarget
(
c33701112
.
mattg
)
e3
:
SetLabelObject
(
e2
)
c
:
RegisterEffect
(
e3
)
--em
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
33701112
,
1
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCondition
(
c33701112
.
xyzcon2
)
e2
:
SetOperation
(
c33701112
.
xyzop2
)
e2
:
SetValue
(
SUMMON_TYPE_XYZ
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e3
)
end
function
c33701112
.
xyzcheck
(
g
)
return
g
:
GetClassCount
(
Card
.
GetLevel
)
==
1
end
function
c33701112
.
ovfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsXyzType
(
TYPE_XYZ
)
and
c
:
IsSetCard
(
0x1445
)
end
function
c33701112
.
xyzop
(
e
,
tp
,
chk
,
mc
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
33701112
)
==
0
and
mc
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
mc
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
Duel
.
RegisterFlagEffect
(
tp
,
33701112
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c33701112
.
mattg
(
e
,
c
)
return
c
:
IsSetCard
(
0x1445
)
and
c
:
IsType
(
TYPE_XYZ
)
end
function
c33701112
.
xyzcon
(
e
,
c
,
og
,
lmat
,
min
,
max
)
function
c33701112
.
xyzcon
2
(
e
,
c
,
og
,
lmat
,
min
,
max
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
xc
=
e
:
GetLabelObject
()
return
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
xc
,
e
:
GetHandler
())
>
0
and
xc
:
IsCanBeXyzMaterial
(
nil
)
end
function
c33701112
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
og
,
lmat
,
min
,
max
)
function
c33701112
.
xyzop
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
og
,
lmat
,
min
,
max
)
local
xc
=
e
:
GetLabelObject
()
local
mg
=
xc
:
GetOverlayGroup
()
if
mg
:
GetCount
()
~=
0
then
...
...
@@ -74,24 +71,3 @@ end
function
c33701112
.
splimit
(
e
,
c
,
tp
,
sumtp
,
sumpos
)
return
bit
.
band
(
sumtp
,
SUMMON_TYPE_XYZ
)
==
SUMMON_TYPE_XYZ
end
function
c33701112
.
xxxfil
(
c
,
e
,
tp
)
return
c
:
IsCanBeXyzMaterial
(
nil
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
e
:
GetHandler
())
>
0
and
c
:
IsSetCard
(
0x1445
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
GetOverlayCount
()
>
0
end
function
c33701112
.
xyzcon2
(
e
,
c
,
og
,
lmat
,
min
,
max
)
if
c
==
nil
then
return
Duel
.
IsExistingMatchingCard
(
c33701112
.
xxxfil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
local
tp
=
c
:
GetControler
()
return
true
end
function
c33701112
.
xyzop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
og
,
lmat
,
min
,
max
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c33701112
.
xxxfil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
tc
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
+
REASON_XYZ
)
local
mg
=
tc
:
GetOverlayGroup
()
if
mg
:
GetCount
()
~=
0
then
Duel
.
Overlay
(
e
:
GetHandler
(),
mg
)
end
e
:
GetHandler
():
SetMaterial
(
Group
.
FromCards
(
tc
))
Duel
.
Overlay
(
e
:
GetHandler
(),
Group
.
FromCards
(
tc
))
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