Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
yks
pre-release-database-cdb
Commits
faebc58d
Commit
faebc58d
authored
Oct 29, 2023
by
REIKAI
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 月朧龍ヴァグナワ
parent
4ad1c215
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
0 deletions
+73
-0
script/c101203043.lua
script/c101203043.lua
+73
-0
No files found.
script/c101203043.lua
0 → 100644
View file @
faebc58d
--月胧龙 伐古那瓦
--月朧龍ヴァグナワ
--script by REIKAI
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
1
)
c
:
EnableReviveLimit
()
--ATK change && Damage
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DAMAGE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCondition
(
s
.
adcon
)
e1
:
SetTarget
(
s
.
adtg
)
e1
:
SetOperation
(
s
.
adop
)
c
:
RegisterEffect
(
e1
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e0
:
SetValue
(
s
.
valcheck
)
e0
:
SetLabelObject
(
e1
)
c
:
RegisterEffect
(
e0
)
end
function
s
.
valcheck
(
e
,
c
)
local
g
=
c
:
GetMaterial
()
local
mg
=
g
:
Filter
(
Card
.
IsTuner
,
nil
,
c
)
local
tc
=
mg
:
GetFirst
()
if
not
tc
then
e
:
GetLabelObject
():
SetLabel
(
0
)
return
end
if
#
mg
>
1
then
local
tg
=
g
-
(
g
:
Filter
(
Card
.
IsNotTuner
,
nil
,
c
))
if
#
tg
>
0
then
tc
=
tg
:
GetFirst
()
end
end
local
lv
=
tc
:
GetSynchroLevel
(
c
)
local
lv2
=
lv
>>
16
lv
=
lv
&
0xffff
if
lv2
>
0
and
not
g
:
CheckWithSumEqual
(
Card
.
GetLevel
,
c
:
GetLevel
(),
#
g
,
#
g
,
c
)
then
lv
=
lv2
end
if
tc
:
IsHasEffect
(
89818984
)
and
not
g
:
CheckWithSumEqual
(
Card
.
GetSynchroLevel
,
c
:
GetLevel
(),
#
g
,
#
g
,
c
)
then
lv
=
2
end
e
:
GetLabelObject
():
SetLabel
(
lv
,
c
:
GetLevel
()
-
lv
)
end
function
s
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
function
s
.
adtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
atk
,
dam
=
e
:
GetLabel
()
if
chk
==
0
then
return
atk
>
0
and
dam
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
dam
*
300
)
end
function
s
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
atk
,
dam
=
e
:
GetLabel
()
if
not
c
:
IsRelateToChain
()
or
c
:
IsFacedown
()
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
,
2
)
e1
:
SetValue
(
atk
*
300
)
c
:
RegisterEffect
(
e1
)
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
dam
*
300
,
REASON_EFFECT
)
end
\ No newline at end of file
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