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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
dbd40c98
Commit
dbd40c98
authored
Sep 20, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pre-update 2
parent
8fcdcbb6
Pipeline
#762
passed with stage
in 15 minutes and 30 seconds
Changes
13
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
68 additions
and
279 deletions
+68
-279
deck/2020-09-20 1st.ydk
deck/2020-09-20 1st.ydk
+0
-1
deck/2020-09-20 8th.ydk
deck/2020-09-20 8th.ydk
+1
-1
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/lflist.conf
expansions/lflist.conf
+1
-2
expansions/pics/4210049.jpg
expansions/pics/4210049.jpg
+0
-0
expansions/pics/81005079.jpg
expansions/pics/81005079.jpg
+0
-0
expansions/pics/81005080.jpg
expansions/pics/81005080.jpg
+0
-0
expansions/pics/81011042.jpg
expansions/pics/81011042.jpg
+0
-0
expansions/pics/81011063.jpg
expansions/pics/81011063.jpg
+0
-0
expansions/script/c4210049.lua
expansions/script/c4210049.lua
+0
-64
expansions/script/c81005080.lua
expansions/script/c81005080.lua
+0
-76
expansions/script/c81011042.lua
expansions/script/c81011042.lua
+66
-52
expansions/script/c81011063.lua
expansions/script/c81011063.lua
+0
-83
No files found.
deck/2020-09-20 1st.ydk
View file @
dbd40c98
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
1170017
1170017
4210047
4210047
4210048
4210048
4210049
4210051
4210051
4231011
4231011
4241001
4241001
...
...
deck/2020-09-20 8th.ydk
View file @
dbd40c98
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
#main
#main
81008014
81008014
81011032
81011032
81011042
81011062
81011062
81011063
81013041
81013041
81013046
81013046
81022043
81022043
...
...
expansions/222DIY.cdb
View file @
dbd40c98
No preview for this file type
expansions/lflist.conf
View file @
dbd40c98
...
@@ -927,7 +927,7 @@
...
@@ -927,7 +927,7 @@
77702007
0
--楽園図
77702007
0
--楽園図
77707037
0
--使之沉睡公主的贈品
77707037
0
--使之沉睡公主的贈品
77707048
1
--法庭之主
77707048
1
--法庭之主
77707701
1
--
Vessel
of
Sin
露西菲尼亚的西面镜
77707701
1
--
Vessel
of
Sin
露西菲尼亚的西面镜
77707703
1
--
Vessel
of
Sin
康琪塔酒杯
77707703
1
--
Vessel
of
Sin
康琪塔酒杯
77707705
1
--
Vessel
of
Sin
祸世之剪
77707705
1
--
Vessel
of
Sin
祸世之剪
77725304
1
--秘封活动记录 卯酉东海道
77725304
1
--秘封活动记录 卯酉东海道
...
@@ -939,7 +939,6 @@
...
@@ -939,7 +939,6 @@
81005062
1
--白鸟芽衣
81005062
1
--白鸟芽衣
81005053
0
--黑野紫
81005053
0
--黑野紫
81005076
1
--白雪安娜·夏恋
81005076
1
--白雪安娜·夏恋
81005080
1
--九条一夏·黄昏
81009006
2
--不悦目光·橘爱丽丝
81009006
2
--不悦目光·橘爱丽丝
81010021
1
--高空坠落
81010021
1
--高空坠落
81011053
0
--水晶艾蕾娜·花海
81011053
0
--水晶艾蕾娜·花海
...
...
expansions/pics/4210049.jpg
deleted
100644 → 0
View file @
8fcdcbb6
20.4 KB
expansions/pics/81005079.jpg
deleted
100644 → 0
View file @
8fcdcbb6
114 KB
expansions/pics/81005080.jpg
deleted
100644 → 0
View file @
8fcdcbb6
127 KB
expansions/pics/81011042.jpg
View replaced file @
8fcdcbb6
View file @
dbd40c98
59.4 KB
|
W:
|
H:
78.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
expansions/pics/81011063.jpg
deleted
100644 → 0
View file @
8fcdcbb6
78.8 KB
expansions/script/c4210049.lua
deleted
100644 → 0
View file @
8fcdcbb6
--手冲魔女-救救猫猫
function
c4210049
.
initial_effect
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
4210049
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetTarget
(
c4210049
.
sptg
)
e1
:
SetOperation
(
c4210049
.
spop
)
c
:
RegisterEffect
(
e1
)
--indes
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetValue
(
c4210049
.
indes
)
c
:
RegisterEffect
(
e2
)
--spsummon opp
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
4210049
,
1
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCountLimit
(
1
,
4210049
)
e3
:
SetCondition
(
c4210049
.
condition
)
e3
:
SetTarget
(
c4210049
.
target
)
e3
:
SetOperation
(
c4210049
.
operation
)
c
:
RegisterEffect
(
e3
)
end
function
c4210049
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_BEASTWARRIOR
)
and
c
:
IsLevelBelow
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
end
function
c4210049
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c4210049
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c4210049
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c4210049
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c4210049
.
indes
(
e
,
c
)
return
c
:
IsAttackAbove
(
1850
)
end
function
c4210049
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
e
:
GetHandler
():
GetPreviousControler
()
==
tp
end
function
c4210049
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
1
-
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
c4210049
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
e
:
GetHandler
(),
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP
)
end
end
expansions/script/c81005080.lua
deleted
100644 → 0
View file @
8fcdcbb6
--九条一夏·黄昏
local
m
=
81005080
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
7
,
2
)
c
:
EnableReviveLimit
()
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
m
)
e1
:
SetCost
(
cm
.
spcost
)
e1
:
SetTarget
(
cm
.
sptg
)
e1
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e1
)
--atkdown
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DRAW
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
m
+
900
)
e2
:
SetCondition
(
cm
.
atkcon
)
e2
:
SetTarget
(
cm
.
atktg
)
e2
:
SetOperation
(
cm
.
atkop
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_FAIRY
)
and
c
:
IsLevel
(
7
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
cm
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
if
not
d
or
a
:
GetControler
()
==
d
:
GetControler
()
or
not
d
:
IsFaceup
()
or
not
a
:
IsFaceup
()
then
return
end
if
a
:
IsControler
(
tp
)
and
a
:
IsRace
(
RACE_FAIRY
)
and
a
:
IsType
(
TYPE_NORMAL
)
then
e
:
SetLabelObject
(
d
)
elseif
d
:
IsControler
(
tp
)
and
d
:
IsRace
(
RACE_FAIRY
)
and
d
:
IsType
(
TYPE_NORMAL
)
then
e
:
SetLabelObject
(
a
)
else
return
false
end
return
true
end
function
cm
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
e
:
GetLabelObject
()
if
chk
==
0
then
return
tc
:
IsOnField
()
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
Duel
.
SetTargetCard
(
tc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
function
cm
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsControler
(
1
-
tp
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetValue
(
0
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
expansions/script/c81011042.lua
View file @
dbd40c98
--
思绪明朗·樱庭小梅
--
绝美夜宴·樱守美羽
local
m
=
81011042
local
m
=
81011042
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c81000000.lua"
)
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
--link summon
aux
.
AddLinkProcedure
(
c
,
nil
,
2
,
2
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--
Negate
--
search
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_NEGATE
+
CATEGORY_TOHAND
)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetCountLimit
(
1
,
m
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCost
(
cm
.
thcost
)
e1
:
SetCountLimit
(
1
)
e1
:
SetTarget
(
cm
.
thtg
)
e1
:
SetCondition
(
cm
.
discon
)
e1
:
SetOperation
(
cm
.
thop
)
e1
:
SetTarget
(
cm
.
distg
)
e1
:
SetOperation
(
cm
.
disop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
disable summo
n
--
effect gai
n
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DISABLE_SUMMON
+
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_BE_MATERIAL
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_EVENT_PLAYER
)
e2
:
SetCode
(
EVENT_SUMMON
)
e2
:
SetCountLimit
(
1
,
m
+
900
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
cm
.
efcon
)
e2
:
SetCondition
(
cm
.
con
)
e2
:
SetOperation
(
cm
.
efop
)
e2
:
SetTarget
(
cm
.
tg
)
e2
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_SPSUMMON
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e2
:
Clone
()
e4
:
SetCode
(
EVENT_FLIP_SUMMON
)
c
:
RegisterEffect
(
e4
)
end
end
function
cm
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsPublic
()
and
Duel
.
GetLP
(
tp
)
>
800
end
if
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
return
Duel
.
IsChainNegatable
(
ev
)
and
ep
==
tp
and
not
re
:
GetHandler
():
IsCode
(
m
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_PUBLIC
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e
:
GetHandler
():
RegisterEffect
(
e1
)
end
end
function
cm
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
rfilter
(
c
)
if
chk
==
0
then
return
true
end
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsLevel
(
4
)
and
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsAbleToHand
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
end
if
re
:
GetHandler
():
IsAbleToHand
()
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
eg
,
1
,
0
,
0
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
rfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
cm
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
SendtoHand
(
eg
,
nil
,
REASON_EFFECT
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
rfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
BreakEffect
()
Duel
.
SetLP
(
tp
,
Duel
.
GetLP
(
tp
)
-
800
)
end
end
end
end
function
cm
.
filter
(
c
,
t
p
)
function
cm
.
efcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
r
p
)
return
c
:
GetSummonPlayer
()
==
tp
and
not
c
:
IsCode
(
m
)
return
r
==
REASON_RITUAL
and
eg
:
IsExists
(
Card
.
IsRace
,
1
,
nil
,
RACE_WARRIOR
)
end
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentChain
()
==
0
and
eg
:
IsExists
(
cm
.
filter
,
1
,
nil
,
tp
)
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCondition
(
cm
.
atkcon
)
e1
:
SetValue
(
cm
.
atkval
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
rc
:
RegisterEffect
(
e1
,
true
)
if
not
rc
:
IsType
(
TYPE_EFFECT
)
then
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_ADD_TYPE
)
e2
:
SetValue
(
TYPE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
rc
:
RegisterEffect
(
e2
,
true
)
end
end
end
function
cm
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
atkcon
(
e
)
if
chk
==
0
then
return
true
end
local
tp
=
e
:
GetHandlerPlayer
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
eg
:
GetCount
(),
0
,
0
)
return
Duel
.
GetLP
(
tp
)
<
Duel
.
GetLP
(
1
-
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
eg
,
eg
:
GetCount
(),
0
,
0
)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
atkval
(
e
,
c
)
Duel
.
NegateSummon
(
eg
)
return
math.abs
(
Duel
.
GetLP
(
0
)
-
Duel
.
GetLP
(
1
))
Duel
.
SendtoHand
(
eg
,
nil
,
REASON_EFFECT
)
end
end
expansions/script/c81011063.lua
deleted
100644 → 0
View file @
8fcdcbb6
--绝美夜宴·樱守美羽
local
m
=
81011063
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c81000000.lua"
)
function
cm
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--search
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
m
)
e1
:
SetCost
(
cm
.
thcost
)
e1
:
SetTarget
(
cm
.
thtg
)
e1
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e1
)
--effect gain
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_BE_MATERIAL
)
e2
:
SetProperty
(
EFFECT_FLAG_EVENT_PLAYER
)
e2
:
SetCountLimit
(
1
,
m
+
900
)
e2
:
SetCondition
(
cm
.
efcon
)
e2
:
SetOperation
(
cm
.
efop
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsPublic
()
and
Duel
.
GetLP
(
tp
)
>
800
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_PUBLIC
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e
:
GetHandler
():
RegisterEffect
(
e1
)
end
function
cm
.
rfilter
(
c
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsLevel
(
4
)
and
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsAbleToHand
()
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
rfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
rfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
BreakEffect
()
Duel
.
SetLP
(
tp
,
Duel
.
GetLP
(
tp
)
-
800
)
end
end
function
cm
.
efcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
r
==
REASON_RITUAL
and
eg
:
IsExists
(
Card
.
IsRace
,
1
,
nil
,
RACE_WARRIOR
)
end
function
cm
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCondition
(
cm
.
atkcon
)
e1
:
SetValue
(
cm
.
atkval
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
rc
:
RegisterEffect
(
e1
,
true
)
if
not
rc
:
IsType
(
TYPE_EFFECT
)
then
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_ADD_TYPE
)
e2
:
SetValue
(
TYPE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
rc
:
RegisterEffect
(
e2
,
true
)
end
end
function
cm
.
atkcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
GetLP
(
tp
)
<
Duel
.
GetLP
(
1
-
tp
)
end
function
cm
.
atkval
(
e
,
c
)
return
math.abs
(
Duel
.
GetLP
(
0
)
-
Duel
.
GetLP
(
1
))
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