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
Huangnan
no81cards
Commits
4cef49f4
Commit
4cef49f4
authored
Jun 11, 2022
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remake
parent
34590fe6
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
0 additions
and
584 deletions
+0
-584
expansions/no81.cdb
expansions/no81.cdb
+0
-0
expansions/pics/33701425.jpg
expansions/pics/33701425.jpg
+0
-0
expansions/pics/33701426.jpg
expansions/pics/33701426.jpg
+0
-0
expansions/pics/33701427.jpg
expansions/pics/33701427.jpg
+0
-0
expansions/pics/33701428.jpg
expansions/pics/33701428.jpg
+0
-0
expansions/script/c33701425.lua
expansions/script/c33701425.lua
+0
-119
expansions/script/c33701426.lua
expansions/script/c33701426.lua
+0
-143
expansions/script/c33701427.lua
expansions/script/c33701427.lua
+0
-131
expansions/script/c33701428.lua
expansions/script/c33701428.lua
+0
-191
No files found.
expansions/no81.cdb
View file @
4cef49f4
No preview for this file type
expansions/pics/33701425.jpg
deleted
100644 → 0
View file @
34590fe6
51.2 KB
expansions/pics/33701426.jpg
deleted
100644 → 0
View file @
34590fe6
52.3 KB
expansions/pics/33701427.jpg
deleted
100644 → 0
View file @
34590fe6
49.4 KB
expansions/pics/33701428.jpg
deleted
100644 → 0
View file @
34590fe6
51.4 KB
expansions/script/c33701425.lua
deleted
100644 → 0
View file @
34590fe6
--赤月礼赞·天泽郁末
local
m
=
33701425
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCondition
(
cm
.
spcon
)
c
:
RegisterEffect
(
e1
)
--send to grave
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_DESTROY
+
CATEGORY_RECOVER
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetTarget
(
cm
.
tgtg
)
e2
:
SetOperation
(
cm
.
tgop
)
c
:
RegisterEffect
(
e2
)
--recover
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_RECOVER
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e3
:
SetCondition
(
cm
.
reccon
)
e3
:
SetOperation
(
cm
.
recop
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
1
,
0
)
e4
:
SetValue
(
cm
.
damval
)
c
:
RegisterEffect
(
e4
)
if
not
cm
.
global_check
then
cm
.
global_check
=
true
cm
[
0
]
=
0
cm
[
1
]
=
0
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_DAMAGE
)
ge1
:
SetOperation
(
cm
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
local
ge3
=
Effect
.
CreateEffect
(
c
)
ge3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge3
:
SetCode
(
EVENT_PHASE_START
+
PHASE_DRAW
)
ge3
:
SetOperation
(
cm
.
clear
)
Duel
.
RegisterEffect
(
ge3
,
0
)
end
end
function
cm
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
then
return
false
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
cm
[
tp
]
>=
3000
end
function
cm
.
tgfilter
(
c
)
return
c
:
IsCode
(
33701424
)
and
c
:
IsAbleToGrave
()
end
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
tgfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
)
and
g
:
GetCount
()
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
1000
)
end
function
cm
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
0
local
ct1
=
0
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tgfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
ct
=
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
ct1
=
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
if
ct
>
0
and
ct1
>
0
then
Duel
.
Recover
(
tp
,
1000
,
REASON_EFFECT
)
end
end
function
cm
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
end
function
cm
.
recop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Recover
(
tp
,
ev
,
REASON_EFFECT
)
end
function
cm
.
tdfilter
(
c
)
return
c
:
IsCode
(
33701424
)
and
c
:
IsAbleToDeck
()
end
function
cm
.
damval
(
e
,
re
,
val
,
r
,
rp
,
rc
)
local
tp
=
e
:
GetHandlerPlayer
()
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
c
=
e
:
GetHandler
()
if
rp
~=
tp
and
g
:
GetCount
()
>
0
and
c
:
IsAbleToDeck
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
g
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
g
:
AddCard
(
c
)
Duel
.
SendtoDeck
(
g
,
tp
,
1
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
val
,
REASON_EFFECT
)
end
return
val
end
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
then
cm
[
ep
]
=
cm
[
ep
]
+
ev
end
end
function
cm
.
clear
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
cm
[
0
]
=
0
cm
[
1
]
=
0
end
expansions/script/c33701426.lua
deleted
100644 → 0
View file @
34590fe6
--赤月礼赞·鹿沼叶子
local
m
=
33701426
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCondition
(
cm
.
spcon
)
c
:
RegisterEffect
(
e1
)
--send to grave
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetTarget
(
cm
.
tgtg
)
e2
:
SetOperation
(
cm
.
tgop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_RECOVER
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e3
:
SetCondition
(
cm
.
reccon
)
e3
:
SetOperation
(
cm
.
recop
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
1
,
0
)
e4
:
SetValue
(
cm
.
damval
)
c
:
RegisterEffect
(
e4
)
if
not
cm
.
global_check
then
cm
.
global_check
=
true
cm
[
0
]
=
0
cm
[
1
]
=
0
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_DAMAGE
)
ge1
:
SetOperation
(
cm
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
local
ge3
=
Effect
.
CreateEffect
(
c
)
ge3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge3
:
SetCode
(
EVENT_PHASE_START
+
PHASE_DRAW
)
ge3
:
SetOperation
(
cm
.
clear
)
Duel
.
RegisterEffect
(
ge3
,
0
)
end
end
function
cm
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
then
return
false
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
cm
[
tp
]
>=
2000
end
function
cm
.
tgfilter
(
c
)
return
c
:
IsCode
(
33701424
)
and
c
:
IsAbleToGrave
()
end
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
tgfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
end
function
cm
.
desfilter
(
c
)
return
c
:
IsFaceup
()
and
not
(
c
:
IsAttackBelow
(
0
)
and
c
:
IsDefenseBelow
(
0
))
end
function
cm
.
desfilter1
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsAttack
(
0
)
or
c
:
IsDefense
(
0
))
end
function
cm
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ct
=
0
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tgfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
ct
=
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
1000
)
c
:
RegisterEffect
(
e1
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
c
:
IsRelateToEffect
(
e
)
and
ct
>
0
and
g
:
GetCount
()
>
0
then
Duel
.
BreakEffect
()
local
sc
=
g
:
GetFirst
()
while
sc
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetValue
(
-
c
:
GetAttack
())
sc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
sc
:
RegisterEffect
(
e2
)
sc
=
g
:
GetNext
()
end
g
=
Duel
.
GetMatchingGroup
(
cm
.
desfilter1
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
end
end
end
function
cm
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
end
function
cm
.
recop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Recover
(
tp
,
ev
*
2
,
REASON_EFFECT
)
end
function
cm
.
damval
(
e
,
re
,
val
,
r
,
rp
,
rc
)
local
tp
=
e
:
GetHandlerPlayer
()
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
sg
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
0
,
LOCATION_SZONE
,
nil
)
local
c
=
e
:
GetHandler
()
if
rp
~=
tp
and
g
:
GetCount
()
>
0
and
c
:
IsAbleToDeck
()
and
sg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
g
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
g
:
AddCard
(
c
)
Duel
.
SendtoDeck
(
g
,
tp
,
1
,
REASON_EFFECT
)
local
ct
=
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
if
ct
>
0
then
Duel
.
Recover
(
tp
,
ct
*
800
,
REASON_EFFECT
)
end
end
return
val
end
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
then
cm
[
ep
]
=
cm
[
ep
]
+
ev
end
end
function
cm
.
clear
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
cm
[
0
]
=
0
cm
[
1
]
=
0
end
expansions/script/c33701427.lua
deleted
100644 → 0
View file @
34590fe6
--赤月礼赞·名仓由依
local
m
=
33701427
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCondition
(
cm
.
spcon
)
c
:
RegisterEffect
(
e1
)
--send to grave
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_DAMAGE
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetTarget
(
cm
.
tgtg
)
e2
:
SetOperation
(
cm
.
tgop
)
c
:
RegisterEffect
(
e2
)
--recover
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_RECOVER
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e3
:
SetCondition
(
cm
.
reccon
)
e3
:
SetOperation
(
cm
.
recop
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
1
,
0
)
e4
:
SetValue
(
cm
.
damval
)
c
:
RegisterEffect
(
e4
)
if
not
cm
.
global_check
then
cm
.
global_check
=
true
cm
[
0
]
=
0
cm
[
1
]
=
0
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_DAMAGE
)
ge1
:
SetOperation
(
cm
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
local
ge3
=
Effect
.
CreateEffect
(
c
)
ge3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge3
:
SetCode
(
EVENT_PHASE_START
+
PHASE_DRAW
)
ge3
:
SetOperation
(
cm
.
clear
)
Duel
.
RegisterEffect
(
ge3
,
0
)
end
end
function
cm
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
then
return
false
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
cm
[
tp
]
>=
1200
end
function
cm
.
tgfilter
(
c
)
return
c
:
IsCode
(
33701424
)
and
c
:
IsAbleToGrave
()
end
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
tgfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
2
,
nil
)
and
g
:
GetCount
()
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
2
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
0
)
end
function
cm
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tgfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
2
,
2
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
local
ct
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
33701424
)
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_DECK
+
LOCATION_EXTRA
)
if
g
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_TOGRAVE
)
local
sg
=
g
:
Select
(
p
,
ct
,
ct
,
nil
)
local
ct1
=
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
)
Duel
.
ShuffleDeck
(
1
-
tp
)
Duel
.
ShuffleExtra
(
1
-
tp
)
if
ct1
>
0
then
Duel
.
Damage
(
1
-
tp
,
ct1
*
800
,
REASON_EFFECT
)
end
end
end
function
cm
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
end
function
cm
.
recop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Recover
(
tp
,
ev
,
REASON_EFFECT
)
end
function
cm
.
tdfilter
(
c
)
return
c
:
IsCode
(
33701424
)
and
c
:
IsAbleToDeck
()
end
function
cm
.
tgfilter1
(
c
,
rc
)
return
c
:
GetReasonCard
()
==
rc
end
function
cm
.
damval
(
e
,
re
,
val
,
r
,
rp
,
rc
)
local
tp
=
e
:
GetHandlerPlayer
()
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
c
=
e
:
GetHandler
()
if
rp
~=
tp
and
g
:
GetCount
()
>
0
and
c
:
IsAbleToDeck
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
g
=
g
:
Select
(
tp
,
1
,
2
,
nil
)
g
:
AddCard
(
c
)
local
ct
=
Duel
.
SendtoDeck
(
g
,
tp
,
1
,
REASON_EFFECT
)
if
ct
>
0
then
local
ct1
=
Duel
.
Draw
(
tp
,
ct
,
REASON_EFFECT
)
if
ct1
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
local
g1
=
Duel
.
GetOperatedGroup
():
Filter
(
cm
.
tgfilter1
,
nil
,
c
)
local
ct2
=
Duel
.
SendtoGrave
(
g1
,
REASON_EFFECT
)
if
ct2
>
0
then
Duel
.
Recover
(
tp
,
ct2
*
1200
,
REASON_EFFECT
)
end
end
end
end
return
val
end
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
then
cm
[
ep
]
=
cm
[
ep
]
+
ev
end
end
function
cm
.
clear
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
cm
[
0
]
=
0
cm
[
1
]
=
0
end
expansions/script/c33701428.lua
deleted
100644 → 0
View file @
34590fe6
--赤月礼赞·己间晴香
local
m
=
33701428
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCondition
(
cm
.
spcon
)
c
:
RegisterEffect
(
e1
)
--send to grave
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOGRAVE
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetTarget
(
cm
.
tgtg
)
e2
:
SetOperation
(
cm
.
tgop
)
c
:
RegisterEffect
(
e2
)
--recover
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_RECOVER
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e3
:
SetCondition
(
cm
.
reccon
)
e3
:
SetOperation
(
cm
.
recop
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
1
,
0
)
e4
:
SetValue
(
cm
.
damval
)
c
:
RegisterEffect
(
e4
)
if
not
cm
.
global_check
then
cm
.
global_check
=
true
cm
[
0
]
=
0
cm
[
1
]
=
0
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_DAMAGE
)
ge1
:
SetOperation
(
cm
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
local
ge3
=
Effect
.
CreateEffect
(
c
)
ge3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge3
:
SetCode
(
EVENT_PHASE_START
+
PHASE_DRAW
)
ge3
:
SetOperation
(
cm
.
clear
)
Duel
.
RegisterEffect
(
ge3
,
0
)
end
end
function
cm
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
then
return
false
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
cm
[
tp
]
>=
800
end
function
cm
.
tgfilter
(
c
)
return
c
:
IsCode
(
33701424
)
and
c
:
IsAbleToGrave
()
end
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
tgfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
3
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
3
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
end
function
cm
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tgfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
3
,
3
,
nil
)
if
g
:
GetCount
()
>
0
then
ct
=
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCategory
(
CATEGORY_TOGRAVE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e2
:
SetCost
(
cm
.
tgcost1
)
e2
:
SetCondition
(
cm
.
tgcon1
)
e2
:
SetTarget
(
cm
.
tgtg1
)
e2
:
SetOperation
(
cm
.
tgop1
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e2
)
end
end
function
cm
.
tgcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
Duel
.
GetAttackTarget
()
==
nil
end
function
cm
.
cfilter
(
c
)
return
c
:
IsSetCard
(
33701424
)
and
c
:
IsAbleToDeckAsCost
()
end
function
cm
.
tgcost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
function
cm
.
tgtg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsOnField
()
and
chkc
:
IsAbleToGrave
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToGrave
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToGrave
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
0
,
0
)
end
function
cm
.
tgop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
if
c
:
IsRelateToBattle
()
and
c
:
IsChainAttackable
()
then
Duel
.
ChainAttack
()
end
end
end
function
cm
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
end
function
cm
.
recop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Recover
(
tp
,
math.ceil
(
ev
/
2
),
REASON_EFFECT
)
end
function
cm
.
tdfilter
(
c
)
return
c
:
IsCode
(
33701424
)
and
c
:
IsAbleToDeck
()
end
function
cm
.
disfilter
(
c
)
return
c
:
IsFaceup
()
and
not
c
:
IsDisabled
()
end
function
cm
.
damval
(
e
,
re
,
val
,
r
,
rp
,
rc
)
local
tp
=
e
:
GetHandlerPlayer
()
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
cm
.
disfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
local
c
=
e
:
GetHandler
()
if
rp
~=
tp
and
g
:
GetCount
()
>
0
and
c
:
IsAbleToDeck
()
and
ct
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
if
ct
>
3
then
ct
=
3
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
g
=
g
:
Select
(
tp
,
1
,
ct
,
nil
)
g
:
AddCard
(
c
)
ct
=
Duel
.
SendtoDeck
(
g
,
tp
,
1
,
REASON_EFFECT
)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
disfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
ct
>
0
and
sg
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
sg
=
sg
:
Select
(
tp
,
ct
,
ct
,
nil
)
local
tc
=
sg
:
GetFirst
()
while
tc
do
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
)
if
tc
:
IsType
(
TYPE_TRAPMONSTER
)
then
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e3
)
end
tc
=
sg
:
GetNext
()
end
local
ct1
=
sg
:
FilterCount
(
Card
.
IsDisabled
,
nil
)
Duel
.
Recover
(
tp
,
ct1
*
1500
,
REASON_EFFECT
)
end
end
return
val
end
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
then
cm
[
ep
]
=
cm
[
ep
]
+
ev
end
end
function
cm
.
clear
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
cm
[
0
]
=
0
cm
[
1
]
=
0
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