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
79f6c58f
Commit
79f6c58f
authored
Sep 22, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b9125c28
Changes
19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
287 additions
and
236 deletions
+287
-236
expansions/script/c11451520.lua
expansions/script/c11451520.lua
+9
-3
expansions/script/c11451531.lua
expansions/script/c11451531.lua
+1
-0
expansions/script/c11451532.lua
expansions/script/c11451532.lua
+1
-1
expansions/script/c11451533.lua
expansions/script/c11451533.lua
+1
-0
expansions/script/c11451534.lua
expansions/script/c11451534.lua
+1
-1
expansions/script/c11451535.lua
expansions/script/c11451535.lua
+1
-0
expansions/script/c11451536.lua
expansions/script/c11451536.lua
+1
-1
expansions/script/c11451538.lua
expansions/script/c11451538.lua
+1
-0
expansions/script/c11451539.lua
expansions/script/c11451539.lua
+7
-6
expansions/script/c11451540.lua
expansions/script/c11451540.lua
+8
-6
expansions/script/c11451558.lua
expansions/script/c11451558.lua
+1
-0
expansions/script/c11451710.lua
expansions/script/c11451710.lua
+1
-0
expansions/script/c22348428.lua
expansions/script/c22348428.lua
+4
-1
expansions/script/c25000037.lua
expansions/script/c25000037.lua
+57
-24
expansions/script/c43990025.lua
expansions/script/c43990025.lua
+1
-1
expansions/script/c43990026.lua
expansions/script/c43990026.lua
+2
-2
expansions/script/c43990027.lua
expansions/script/c43990027.lua
+1
-1
expansions/script/c49811179.lua
expansions/script/c49811179.lua
+80
-80
expansions/script/c49811180.lua
expansions/script/c49811180.lua
+109
-109
No files found.
expansions/script/c11451520.lua
View file @
79f6c58f
--山雨欲来
--21.04.21
local
m
=
11451520
local
cm
=
_G
[
"c"
..
m
]
local
cm
,
m
=
GetID
()
function
cm
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -41,6 +40,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
c
:
CancelToGrave
()
Duel
.
SendtoHand
(
c
,
1
-
tp
,
REASON_EFFECT
)
Duel
.
ShuffleHand
(
1
-
tp
)
end
end
function
cm
.
con
(
e
)
...
...
@@ -48,5 +48,11 @@ function cm.con(e)
return
Duel
.
GetCustomActivityCount
(
m
,
tp
,
ACTIVITY_CHAIN
)
<=
3
end
function
cm
.
aclimit
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
ep
==
tp
then
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
local
c
=
e
:
GetHandler
()
local
ct
=
Duel
.
GetCustomActivityCount
(
m
,
tp
,
ACTIVITY_CHAIN
)
if
ep
==
tp
then
--Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)
c
:
SetTurnCounter
(
ct
)
if
Duel
.
GetCustomActivityCount
(
m
,
tp
,
ACTIVITY_CHAIN
)
>=
3
then
e
:
Reset
()
end
end
end
\ No newline at end of file
expansions/script/c11451531.lua
View file @
79f6c58f
...
...
@@ -131,6 +131,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
DisableShuffleCheck
()
Duel
.
SendtoHand
(
tc
,
1
-
tp
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
tp
,
tc
)
Duel
.
ShuffleHand
(
1
-
tp
)
end
end
end
\ No newline at end of file
expansions/script/c11451532.lua
View file @
79f6c58f
...
...
@@ -123,5 +123,5 @@ function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
cm
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoHand
(
c
,
1
-
tp
,
REASON_EFFECT
)
>
0
then
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoHand
(
c
,
1
-
tp
,
REASON_EFFECT
)
>
0
then
Duel
.
ShuffleHand
(
1
-
tp
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
\ No newline at end of file
expansions/script/c11451533.lua
View file @
79f6c58f
...
...
@@ -137,6 +137,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
DisableShuffleCheck
()
Duel
.
SendtoHand
(
tc
,
1
-
tp
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
tp
,
tc
)
Duel
.
ShuffleHand
(
1
-
tp
)
end
end
end
\ No newline at end of file
expansions/script/c11451534.lua
View file @
79f6c58f
...
...
@@ -157,5 +157,5 @@ function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
cm
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoHand
(
c
,
1
-
tp
,
REASON_EFFECT
)
>
0
then
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoHand
(
c
,
1
-
tp
,
REASON_EFFECT
)
>
0
then
Duel
.
ShuffleHand
(
1
-
tp
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
\ No newline at end of file
expansions/script/c11451535.lua
View file @
79f6c58f
...
...
@@ -123,6 +123,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
DisableShuffleCheck
()
Duel
.
SendtoHand
(
tc
,
1
-
tp
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
tp
,
tc
)
Duel
.
ShuffleHand
(
1
-
tp
)
end
end
end
\ No newline at end of file
expansions/script/c11451536.lua
View file @
79f6c58f
...
...
@@ -117,5 +117,5 @@ function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
cm
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoHand
(
c
,
1
-
tp
,
REASON_EFFECT
)
>
0
then
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoHand
(
c
,
1
-
tp
,
REASON_EFFECT
)
>
0
then
Duel
.
ShuffleHand
(
1
-
tp
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
\ No newline at end of file
expansions/script/c11451538.lua
View file @
79f6c58f
...
...
@@ -118,6 +118,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsAbleToHandAsCost
()
end
Duel
.
SendtoHand
(
c
,
1
-
tp
,
REASON_COST
)
Duel
.
ShuffleHand
(
1
-
tp
)
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
expansions/script/c11451539.lua
View file @
79f6c58f
...
...
@@ -42,12 +42,12 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
Group
.
ForEach
(
group
,
func
,
...
)
if
aux
.
GetValueType
(
group
)
==
"Group"
and
group
:
GetCount
()
>
0
then
local
d_group
=
group
:
Clone
()
for
tc
in
aux
.
Next
(
d_group
)
do
func
(
tc
,
...
)
end
end
if
aux
.
GetValueType
(
group
)
==
"Group"
and
group
:
GetCount
()
>
0
then
local
d_group
=
group
:
Clone
()
for
tc
in
aux
.
Next
(
d_group
)
do
func
(
tc
,
...
)
end
end
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft1
=
math.min
(
5
,
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
))
...
...
@@ -142,6 +142,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsAbleToHandAsCost
()
end
Duel
.
SendtoHand
(
c
,
1
-
tp
,
REASON_COST
)
Duel
.
ShuffleHand
(
1
-
tp
)
end
function
cm
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsAbleToHand
()
end
...
...
expansions/script/c11451540.lua
View file @
79f6c58f
...
...
@@ -70,6 +70,7 @@ function cm.otop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP
)
c
:
SetMaterial
(
nil
)
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
SetLabel
(
#
eg
)
...
...
@@ -79,6 +80,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsAbleToHandAsCost
()
end
Duel
.
SendtoHand
(
c
,
1
-
tp
,
REASON_COST
)
Duel
.
ShuffleHand
(
1
-
tp
)
end
function
cm
.
setfilter
(
c
)
return
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSSetable
()
...
...
@@ -87,12 +89,12 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
())
end
end
function
Group
.
ForEach
(
group
,
func
,
...
)
if
aux
.
GetValueType
(
group
)
==
"Group"
and
group
:
GetCount
()
>
0
then
local
d_group
=
group
:
Clone
()
for
tc
in
aux
.
Next
(
d_group
)
do
func
(
tc
,
...
)
end
end
if
aux
.
GetValueType
(
group
)
==
"Group"
and
group
:
GetCount
()
>
0
then
local
d_group
=
group
:
Clone
()
for
tc
in
aux
.
Next
(
d_group
)
do
func
(
tc
,
...
)
end
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
...
...
expansions/script/c11451558.lua
View file @
79f6c58f
...
...
@@ -209,6 +209,7 @@ function cm.excost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
m
,
1
))
local
cg
=
g
:
Select
(
tp
,
1
,
#
g
,
nil
)
Duel
.
SendtoHand
(
cg
,
1
-
tp
,
REASON_COST
)
Duel
.
ShuffleHand
(
1
-
tp
)
local
ft
=
Duel
.
GetOperatedGroup
():
FilterCount
(
cm
.
thfilter
,
nil
,
tp
)
e
:
SetLabel
(
ft
)
end
...
...
expansions/script/c11451710.lua
View file @
79f6c58f
...
...
@@ -80,6 +80,7 @@ function cm.cacost(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsAbleToHandAsCost
()
end
Duel
.
SendtoHand
(
c
,
1
-
tp
,
REASON_COST
)
Duel
.
ShuffleHand
(
1
-
tp
)
end
function
cm
.
catg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
tp
)
...
...
expansions/script/c22348428.lua
View file @
79f6c58f
...
...
@@ -84,7 +84,10 @@ function c22348428.seqtg(e,tp,eg,ep,ev,re,r,rp,chk)
local
tctb
=
{}
for
tc
in
aux
.
Next
(
g
)
do
local
lv
=
tc
:
GetLevel
()
table.insert
(
tctb
,
lv
)
if
not
tct
[
lv
]
then
tct
[
lv
]
=
true
table.insert
(
tctb
,
lv
)
end
end
local
num
=
Duel
.
AnnounceNumber
(
tp
,
table.unpack
(
tctb
))
e
:
SetLabel
(
num
)
...
...
expansions/script/c25000037.lua
View file @
79f6c58f
...
...
@@ -6,14 +6,39 @@ function s.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_
FREE_CHAIN
)
e1
:
SetCode
(
EVENT_
CHAINING
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCondition
(
s
.
spcon
)
e1
:
SetCost
(
s
.
spcost
)
e1
:
SetTarget
(
s
.
sptg
)
e1
:
SetTarget
(
s
.
sptg
(
EVENT_CHAINING
)
)
e1
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetHintTiming
(
TIMING_BATTLE_END
,
TIMING_BATTLE_START
+
TIMING_BATTLE_END
)
e2
:
SetTarget
(
s
.
sptg
(
EVENT_FREE_CHAIN
))
c
:
RegisterEffect
(
e2
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EVENT_SUMMON
)
e3
:
SetTarget
(
s
.
sptg
(
EVENT_SUMMON
))
c
:
RegisterEffect
(
e3
)
local
e4
=
e1
:
Clone
()
e4
:
SetCode
(
EVENT_FLIP_SUMMON
)
e4
:
SetTarget
(
s
.
sptg
(
EVENT_FLIP_SUMMON
))
c
:
RegisterEffect
(
e4
)
local
e5
=
e1
:
Clone
()
e5
:
SetCode
(
EVENT_SPSUMMON
)
e5
:
SetTarget
(
s
.
sptg
(
EVENT_SPSUMMON
))
c
:
RegisterEffect
(
e5
)
local
e6
=
e1
:
Clone
()
e6
:
SetCode
(
EVENT_TO_HAND
)
e6
:
SetTarget
(
s
.
sptg
(
EVENT_TO_HAND
))
c
:
RegisterEffect
(
e6
)
local
e7
=
e1
:
Clone
()
e7
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e7
:
SetTarget
(
s
.
sptg
(
EVENT_ATTACK_ANNOUNCE
))
c
:
RegisterEffect
(
e7
)
Duel
.
AddCustomActivityCounter
(
id
,
ACTIVITY_CHAIN
,
s
.
chainfilter
)
end
function
s
.
chainfilter
(
re
,
tp
,
cid
)
...
...
@@ -23,31 +48,39 @@ end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
end
function
s
.
costfilter
(
c
)
return
bit
.
band
(
c
:
GetType
(),
TYPE_TRAP
+
TYPE_COUNTER
)
==
TYPE_TRAP
+
TYPE_COUNTER
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
false
,
true
,
false
)
function
s
.
costfilter
(
c
,
event
)
if
not
(
bit
.
band
(
c
:
GetType
(),
TYPE_TRAP
+
TYPE_COUNTER
)
==
TYPE_TRAP
+
TYPE_COUNTER
and
c
:
IsAbleToDeckAsCost
())
then
return
false
end
local
te
=
c
:
CheckActivateEffect
(
true
,
true
,
false
)
return
te
and
te
:
GetCode
()
==
event
end
function
s
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
local
tc
=
g
:
GetFirst
()
local
te
,
ceg
,
cev
,
cre
,
cr
,
crp
=
tc
:
CheckActivateEffect
(
false
,
true
,
true
)
Duel
.
ClearTargetCard
()
tc
:
CreateEffectRelation
(
e
)
local
tg
=
te
:
GetTarget
()
if
tg
then
tg
(
e
,
tp
,
ceg
,
cev
,
cre
,
cr
,
crp
,
1
)
end
te
:
SetLabelObject
(
e
:
GetLabelObject
())
e
:
SetLabelObject
(
te
)
Duel
.
ClearOperationInfo
(
0
)
e
:
SetLabel
(
1
)
return
true
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
function
s
.
sptg
(
event
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
e
:
GetLabel
()
==
0
then
return
false
end
e
:
SetLabel
(
0
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
s
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
,
event
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
c
,
event
)
Duel
.
HintSelection
(
g
)
local
tc
=
g
:
GetFirst
()
local
te
,
ceg
,
cev
,
cre
,
cr
,
crp
=
tc
:
CheckActivateEffect
(
true
,
true
,
true
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
Duel
.
ClearTargetCard
()
tc
:
CreateEffectRelation
(
e
)
local
tg
=
te
:
GetTarget
()
if
tg
then
tg
(
e
,
tp
,
ceg
,
cev
,
cre
,
cr
,
crp
,
1
)
end
te
:
SetLabelObject
(
e
:
GetLabelObject
())
e
:
SetLabelObject
(
te
)
Duel
.
ClearOperationInfo
(
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
s
.
setfilter
(
c
)
return
c
:
IsCode
(
92512625
)
and
c
:
IsSSetable
()
...
...
expansions/script/c43990025.lua
View file @
79f6c58f
...
...
@@ -38,7 +38,7 @@ function cm.initial_effect(c)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCondition
(
c43990025
.
chcon
)
e4
:
SetTarget
(
c43990025
.
chtg
)
--
e4:SetTarget(c43990025.chtg)
e4
:
SetOperation
(
c43990025
.
chop
)
c
:
RegisterEffect
(
e4
)
...
...
expansions/script/c43990026.lua
View file @
79f6c58f
...
...
@@ -33,12 +33,12 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
--change effect
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_QUICK_
O
)
e4
:
SetType
(
EFFECT_TYPE_QUICK_
F
)
e4
:
SetCode
(
EVENT_CHAINING
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCondition
(
c43990026
.
chcon
)
e4
:
SetTarget
(
c43990026
.
chtg
)
--
e4:SetTarget(c43990026.chtg)
e4
:
SetOperation
(
c43990026
.
chop
)
c
:
RegisterEffect
(
e4
)
...
...
expansions/script/c43990027.lua
View file @
79f6c58f
...
...
@@ -38,7 +38,7 @@ function cm.initial_effect(c)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCondition
(
c43990027
.
chcon
)
e4
:
SetTarget
(
c43990027
.
chtg
)
--
e4:SetTarget(c43990027.chtg)
e4
:
SetOperation
(
c43990027
.
chop
)
c
:
RegisterEffect
(
e4
)
...
...
expansions/script/c49811179.lua
View file @
79f6c58f
--A・O・J サウザンド·レイザー
function
c49811179
.
initial_effect
(
c
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--self destroy
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_SELF_DESTROY
)
e0
:
SetRange
(
LOCATION_PZONE
)
e0
:
SetCondition
(
c49811179
.
sdcon
)
c
:
RegisterEffect
(
e0
)
--change attribute
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_CHANGE_ATTRIBUTE
)
e1
:
SetCondition
(
c49811179
.
imcon
)
e1
:
SetValue
(
ATTRIBUTE_LIGHT
)
c
:
RegisterEffect
(
e1
)
local
e1g
=
e1
:
Clone
()
e1g
:
SetTargetRange
(
0
,
LOCATION_GRAVE
)
e1g
:
SetCondition
(
c49811179
.
gravecon
)
c
:
RegisterEffect
(
e1g
)
--search
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
49811179
,
0
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
49811179
)
e2
:
SetTarget
(
c49811179
.
thtg
)
e2
:
SetOperation
(
c49811179
.
thop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
49811179
,
1
))
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e4
:
SetCode
(
EVENT_DESTROYED
)
e4
:
SetCondition
(
c49811179
.
fdcon
)
e4
:
SetTarget
(
c49811179
.
fdtg
)
e4
:
SetOperation
(
c49811179
.
fdop
)
c
:
RegisterEffect
(
e4
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--self destroy
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_SELF_DESTROY
)
e0
:
SetRange
(
LOCATION_PZONE
)
e0
:
SetCondition
(
c49811179
.
sdcon
)
c
:
RegisterEffect
(
e0
)
--change attribute
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_CHANGE_ATTRIBUTE
)
e1
:
SetCondition
(
c49811179
.
imcon
)
e1
:
SetValue
(
ATTRIBUTE_LIGHT
)
c
:
RegisterEffect
(
e1
)
local
e1g
=
e1
:
Clone
()
e1g
:
SetTargetRange
(
0
,
LOCATION_GRAVE
)
e1g
:
SetCondition
(
c49811179
.
gravecon
)
c
:
RegisterEffect
(
e1g
)
--search
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
49811179
,
0
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
49811179
)
e2
:
SetTarget
(
c49811179
.
thtg
)
e2
:
SetOperation
(
c49811179
.
thop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
49811179
,
1
))
e4
:
SetCategory
(
CATEGORY_POSITION
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e4
:
SetCode
(
EVENT_DESTROYED
)
e4
:
SetCondition
(
c49811179
.
fdcon
)
e4
:
SetTarget
(
c49811179
.
fdtg
)
e4
:
SetOperation
(
c49811179
.
fdop
)
c
:
RegisterEffect
(
e4
)
end
function
c49811179
.
sdcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
GetTurnPlayer
()
==
1
-
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_END
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsFacedown
,
e
:
GetHandlerPlayer
(),
0
,
LOCATION_ONFIELD
,
1
,
nil
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
GetTurnPlayer
()
==
1
-
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_END
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsFacedown
,
e
:
GetHandlerPlayer
(),
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
function
c49811179
.
imfilter
(
c
)
return
c
:
IsSetCard
(
1
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsFaceup
()
return
c
:
IsSetCard
(
0x
1
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsFaceup
()
end
function
c49811179
.
imcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c49811179
.
imfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c49811179
.
imfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c49811179
.
gravecon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
IsExistingMatchingCard
(
c49811179
.
imfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
tp
,
EFFECT_NECRO_VALLEY
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
IsExistingMatchingCard
(
c49811179
.
imfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
tp
,
EFFECT_NECRO_VALLEY
)
end
function
c49811179
.
filter
(
c
)
return
c
:
IsSetCard
(
1
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
1
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c49811179
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c49811179
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c49811179
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c49811179
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c49811179
.
filter
,
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
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c49811179
.
filter
,
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
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
end
end
function
c49811179
.
fdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
return
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
+
REASON_BATTLE
)
end
function
c49811179
.
fdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanTurnSet
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanTurnSet
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanTurnSet
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanTurnSet
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
end
function
c49811179
.
fdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCanTurnSet
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
ChangePosition
(
g
:
GetFirst
(),
POS_FACEDOWN_DEFENSE
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCanTurnSet
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
ChangePosition
(
g
:
GetFirst
(),
POS_FACEDOWN_DEFENSE
)
end
end
\ No newline at end of file
expansions/script/c49811180.lua
View file @
79f6c58f
This diff is collapsed.
Click to expand it.
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