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
03279c8b
Commit
03279c8b
authored
Aug 02, 2020
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
768413f1
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
241 additions
and
141 deletions
+241
-141
expansions/lflist.conf
expansions/lflist.conf
+37
-2
expansions/pics/33401058.jpg
expansions/pics/33401058.jpg
+0
-0
expansions/script/c10700053.lua
expansions/script/c10700053.lua
+1
-0
expansions/script/c10700066.lua
expansions/script/c10700066.lua
+2
-2
expansions/script/c10700075.lua
expansions/script/c10700075.lua
+1
-1
expansions/script/c25000054.lua
expansions/script/c25000054.lua
+1
-1
expansions/script/c30000007.lua
expansions/script/c30000007.lua
+6
-15
expansions/script/c30000220.lua
expansions/script/c30000220.lua
+5
-1
expansions/script/c33400000.lua
expansions/script/c33400000.lua
+89
-49
expansions/script/c33400033.lua
expansions/script/c33400033.lua
+10
-3
expansions/script/c33400100.lua
expansions/script/c33400100.lua
+48
-28
expansions/script/c33400470.lua
expansions/script/c33400470.lua
+19
-19
expansions/script/c33400503.lua
expansions/script/c33400503.lua
+1
-1
expansions/script/c33400512.lua
expansions/script/c33400512.lua
+1
-1
expansions/script/c33400513.lua
expansions/script/c33400513.lua
+2
-2
expansions/script/c33400514.lua
expansions/script/c33400514.lua
+1
-1
expansions/script/c33400515.lua
expansions/script/c33400515.lua
+1
-1
expansions/script/c33400516.lua
expansions/script/c33400516.lua
+1
-1
expansions/script/c33400524.lua
expansions/script/c33400524.lua
+1
-1
expansions/script/c33400755.lua
expansions/script/c33400755.lua
+1
-0
expansions/script/c33401058.lua
expansions/script/c33401058.lua
+1
-1
expansions/script/c33401303.lua
expansions/script/c33401303.lua
+2
-2
expansions/script/c33701009.lua
expansions/script/c33701009.lua
+3
-2
expansions/script/c79029078.lua
expansions/script/c79029078.lua
+1
-1
expansions/script/c79029120.lua
expansions/script/c79029120.lua
+1
-1
expansions/script/c79029527.lua
expansions/script/c79029527.lua
+5
-5
No files found.
expansions/lflist.conf
View file @
03279c8b
#[No81DIY 19.10 STANDARD][No81DIY 19.10 WILD]
!
THE
STANDARD
LIST
#forbidden
9952009
0
9952010
0
9952011
0
9952012
0
9952013
0
9952014
0
9952015
0
9952016
0
9952017
0
9952018
0
18061801
0
9981429
0
9960671
0
9950665
0
9950664
0
9950393
0
9950430
0
9981460
0
9981439
0
9981461
0
9981438
0
9950775
0
9950727
0
9950731
0
9950966
0
79029093
0
14010155
0
82208108
0
10700082
0
31400050
0
14000951
0
14000953
0
14000256
0
14010201
0
14010224
0
14010229
0
...
...
@@ -397,6 +430,8 @@
14000701
0
14000702
0
#limit
9950679
1
9950737
1
9951183
1
9951245
0
14010007
1
...
...
@@ -406,7 +441,7 @@
9950620
1
9950621
1
9950622
1
9910011
1
#
9910011 1
9910052
1
#9910056 1
9950000
1
...
...
@@ -1029,7 +1064,7 @@
#limit
#9910011 1
9910052
1
9910056
1
#
9910056 1
9950000
1
9950002
1
9950014
1
...
...
expansions/pics/33401058.jpg
View replaced file @
768413f1
View file @
03279c8b
313 KB
|
W:
|
H:
311 KB
|
W:
|
H:
2-up
Swipe
Onion skin
expansions/script/c10700053.lua
View file @
03279c8b
...
...
@@ -36,6 +36,7 @@ function c10700053.initial_effect(c)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCondition
(
c10700053
.
effcon
)
e4
:
SetLabel
(
3
)
e4
:
SetTarget
(
c10700053
.
thtg
)
...
...
expansions/script/c10700066.lua
View file @
03279c8b
...
...
@@ -61,9 +61,9 @@ end
function
c10700066
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c10700066
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c1070006
3
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c1070006
6
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c1070006
3
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c1070006
6
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
function
c10700066
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c10700075.lua
View file @
03279c8b
...
...
@@ -75,7 +75,7 @@ function c10700075.filter2(c,e,tp)
return
c
:
IsCode
(
10700076
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
tc
,
c
)
>
0
end
function
c10700075
.
spcon
(
e
)
return
not
Duel
.
IsExistingMatchingCard
(
c107000
60
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
return
not
Duel
.
IsExistingMatchingCard
(
c107000
75
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
end
function
c10700075
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3911
)
...
...
expansions/script/c25000054.lua
View file @
03279c8b
...
...
@@ -55,5 +55,5 @@ function cm.spop(e,tp)
if
not
c
or
rssf
.
SpecialSummon
(
c
)
<=
0
then
return
end
Duel
.
RegisterFlagEffect
(
tp
,
m
,
0
,
0
,
1
)
local
ct
=
Duel
.
GetFlagEffect
(
tp
,
m
)
local
e1
=
rscf
.
QuickBuff
({
c
,
true
},
"atk+,def+"
,
500
*
ct
)
local
e1
=
rscf
.
QuickBuff
({
c
,
nil
,
true
},
"atk+,def+"
,
500
*
ct
)
end
expansions/script/c30000007.lua
View file @
03279c8b
...
...
@@ -30,25 +30,16 @@ function c30000007.initial_effect(c)
e4
:
SetCode
(
EVENT_DESTROYED
)
c
:
RegisterEffect
(
e4
)
end
function
c30000007
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
num
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
num
,
tp
,
LOCATION_GRAVE
)
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_GRAVE
,
0
,
c
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c30000007
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
if
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
then
local
sg
=
g
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_REMOVED
)
local
gc
=
sg
:
GetFirst
()
while
gc
do
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_CANNOT_TO_GRAVE
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
gc
:
RegisterEffect
(
e3
)
gc
=
sg
:
GetNext
()
end
end
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
end
function
c30000007
.
ctfilter
(
c
)
...
...
expansions/script/c30000220.lua
View file @
03279c8b
...
...
@@ -3,7 +3,7 @@ if not pcall(function() require("expansions/script/c10199990") end) then require
local
m
,
cm
=
rscf
.
DefineCard
(
30000220
)
function
cm
.
initial_effect
(
c
)
local
e1
=
rsef
.
ACT
(
c
,
nil
,
nil
,
nil
,
"td,dr"
,
nil
,
nil
,
nil
,
cm
.
tg
,
cm
.
act
)
local
e2
=
rsef
.
I
(
c
,{
m
,
0
},
nil
,
"td,dr"
,
"tg"
,
LOCATION_GRAVE
,
aux
.
exccon
,
nil
,
rstg
.
target
({
cm
.
tdfilter
,
"td"
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
2
},
rsop
.
list
(
Card
.
IsAbleToDeck
,
"td"
),
rsop
.
list
(
nil
,
"dr"
,
1
)),
cm
.
drop
)
local
e2
=
rsef
.
I
(
c
,{
m
,
0
},
nil
,
"td,dr"
,
"tg"
,
LOCATION_GRAVE
,
aux
.
exccon
,
nil
,
rstg
.
target
({
cm
.
tdfilter
,
"td"
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
2
},
rsop
.
list
(
Card
.
IsAbleToDeck
,
"td"
),
rsop
.
list
(
1
,
"dr"
)),
cm
.
drop
)
if
cm
.
actct
then
return
end
cm
.
actct
=
0
local
ge1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -43,6 +43,10 @@ function cm.act(e,tp)
end
Duel
.
HintSelection
(
tg
-
hg
)
if
Duel
.
SendtoDeck
(
tg
,
nil
,
2
,
REASON_EFFECT
)
>
0
then
local
og
=
Duel
.
GetOperatedGroup
()
if
og
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
)
then
Duel
.
ShuffleDeck
(
tp
)
end
Duel
.
Draw
(
tp
,
cm
.
actct
+
2
,
REASON_EFFECT
)
end
end
...
...
expansions/script/c33400000.lua
View file @
03279c8b
...
...
@@ -7,41 +7,72 @@ tpara={e,tp,eg,ep,ev,re,r,rp}
para
=
table.unpack
(
tpara
)
------
function
XY
.
REZS
(
c
)
if
not
(
c
:
GetCode
()
==
33403501
)
then
if
c
:
IsSetCard
(
0x5349
)
and
not
(
c
:
GetCode
()
==
33403501
)
then
--set
local
ge2
=
Effect
.
CreateEffect
(
c
)
ge2
:
SetType
(
EFFECT_TYPE_
QUICK
_O
)
ge2
:
SetCode
(
EVENT_
FREE_CHAIN
)
ge2
:
SetType
(
EFFECT_TYPE_
FIELD
+
EFFECT_TYPE_TRIGGER
_O
)
ge2
:
SetCode
(
EVENT_
PHASE
+
PHASE_END
)
ge2
:
SetRange
(
LOCATION_GRAVE
)
ge2
:
SetCondition
(
XY
.
recon
)
ge2
:
SetCost
(
XY
.
recost
)
ge2
:
SetTarget
(
XY
.
resettg
)
ge2
:
SetOperation
(
XY
.
resetop
)
c
:
RegisterEffect
(
ge2
)
else
--draw
local
ge3
=
Effect
.
CreateEffect
(
c
)
ge3
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_DRAW
)
ge3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
ge3
:
SetRange
(
LOCATION_GRAVE
)
ge3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
ge3
:
SetCondition
(
XY
.
recon
)
ge3
:
SetCost
(
XY
.
recost
)
ge3
:
SetTarget
(
XY
.
drtg
)
ge3
:
SetOperation
(
XY
.
drop
)
c
:
RegisterEffect
(
ge3
)
end
if
not
XY
.
zs
then
XY
.
zs
=
true
local
ge1
=
Effect
.
GlobalEffect
()
ge1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
ge1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
ge1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
ge1
:
SetCondition
(
XY
.
zscon1
)
ge1
:
SetOperation
(
XY
.
zsop1
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
if
c
:
IsSetCard
(
0x5349
)
and
c
:
IsType
(
TYPE_TRAP
)
then
--act in hand
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e3
:
SetCondition
(
XY
.
handcon
)
c
:
RegisterEffect
(
e3
)
end
if
not
XY
.
zs
then
XY
.
zs
=
true
local
ge1
=
Effect
.
GlobalEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
ge1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
ge1
:
SetCondition
(
XY
.
zscon1
)
ge1
:
SetOperation
(
XY
.
zsop1
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
XY
.
zsfilter1
(
c
,
rp
)
return
Duel
.
GetFlagEffect
(
rp
,
33443500
)
==
0
end
function
XY
.
zs
filter1
(
c
,
t
p
,
re
)
return
c
:
GetSummonPlayer
()
==
tp
and
not
c
:
IsCode
(
33403500
)
and
(
re
and
not
re
:
GetHandler
(
0x5349
))
function
XY
.
zs
ckfilter1
(
c
,
r
p
,
re
)
return
c
:
GetSummonPlayer
()
==
rp
and
not
c
:
IsCode
(
33403500
)
and
(
re
and
not
re
:
GetHandler
():
IsSetCard
(
0x5349
))
end
function
XY
.
zscon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
XY
.
zsfilter1
,
1
,
nil
,
tp
,
re
)
return
eg
:
IsExists
(
XY
.
zsfilter1
,
1
,
nil
,
rp
)
end
function
XY
.
zsop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
33443500
)
if
eg
:
IsExists
(
XY
.
zsckfilter1
,
1
,
nil
,
rp
,
re
)
then
Duel
.
RegisterFlagEffect
(
rp
,
33443500
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
XY
.
handcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
XY
.
hdfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_EXTRA
,
0
)
==
0
end
function
XY
.
hdfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
33403500
)
end
function
XY
.
recost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
33443500
)
==
0
and
aux
.
bfgcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
end
if
chk
==
0
then
return
aux
.
bfgcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
...
...
@@ -56,6 +87,17 @@ function XY.REsplimit(e,c,sump,sumtype,sumpos,targetp,se)
return
not
se
:
GetHandler
():
IsSetCard
(
0x5349
)
and
not
c
:
IsCode
(
33403500
)
end
function
XY
.
recon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ss
=
Duel
.
GetFlagEffect
(
tp
,
33403501
)
local
sx
=
0
while
(
sx
<
(
ss
/
2
+
2
))
do
sx
=
sx
+
1
ss
=
ss
+
1
end
return
Duel
.
GetFlagEffect
(
tp
,
33413501
)
<
sx
and
Duel
.
GetFlagEffect
(
tp
,
c
:
GetCode
()
+
20000
)
==
0
and
Duel
.
GetFlagEffect
(
tp
,
33443500
)
==
0
end
function
XY
.
REstfilter
(
c
,
m
)
return
c
:
IsSetCard
(
0x5349
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSSetable
()
and
not
c
:
IsCode
(
m
)
end
...
...
@@ -64,35 +106,8 @@ function XY.resettg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
c
:
GetCode
()
+
20000
)
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
XY
.
REstfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
:
GetHandler
():
GetCode
())
end
Duel
.
RegisterFlagEffect
(
tp
,
c
:
GetCode
()
+
30000
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
33403501
,
0
,
0
,
0
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_CHAIN_NEGATED
)
e2
:
SetCondition
(
XY
.
regcon
)
e2
:
SetOperation
(
XY
.
regop3
)
e2
:
SetReset
(
RESET_EVENT
+
RESET_CHAIN
+
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
function
XY
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
IsSetCard
(
0x5349
)
and
rp
==
tp
end
function
XY
.
regop3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
m
=
c
:
GetCode
()
local
n1
=
Duel
.
GetFlagEffect
(
tp
,
33413501
)
local
n3
=
Duel
.
GetFlagEffect
(
tp
,
m
+
30000
)
Duel
.
ResetFlagEffect
(
tp
,
33403501
)
Duel
.
ResetFlagEffect
(
tp
,
m
+
30000
)
if
n1
>=
2
then
for
i
=
1
,
n1
-
1
do
Duel
.
RegisterFlagEffect
(
tp
,
33413501
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
if
n3
>=
2
then
for
i
=
1
,
n3
-
1
do
Duel
.
RegisterFlagEffect
(
tp
,
m
+
30000
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
Duel
.
RegisterFlagEffect
(
tp
,
33413501
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
33403501
,
0
,
0
,
0
)
end
function
XY
.
resetop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
...
...
@@ -101,4 +116,29 @@ function XY.resetop(e,tp,eg,ep,ev,re,r,rp)
if
#
g
>
0
then
Duel
.
SSet
(
tp
,
g
)
end
end
\ No newline at end of file
end
function
XY
.
drfilter
(
c
,
e
)
return
c
:
IsSetCard
(
0x5349
)
and
c
:
IsAbleToDeck
()
end
function
XY
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
if
chkc
then
return
false
end
local
g
=
Duel
.
GetMatchingGroup
(
XY
.
drfilter
,
tp
,
LOCATION_REMOVED
,
0
,
e
:
GetHandler
())
local
n
=
g
:
GetCount
()
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
and
n
>=
5
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
5
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
2
)
Duel
.
RegisterFlagEffect
(
tp
,
c
:
GetCode
()
+
30000
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
33413501
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
33403501
,
0
,
0
,
0
)
end
function
XY
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
XY
.
drfilter
,
tp
,
LOCATION_REMOVED
,
0
,
5
,
5
,
nil
,
e
)
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_EFFECT
)
Duel
.
ShuffleDeck
(
tp
)
Duel
.
BreakEffect
()
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
end
expansions/script/c33400033.lua
View file @
03279c8b
...
...
@@ -234,7 +234,14 @@ function c33400033.disop(e,tp,eg,ep,ev,re,r,rp)
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c33400033
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
local
tc
=
Duel
.
GetFirstTarge
t
()
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c33400033
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
local
tc
=
tg
:
GetFirs
t
()
tc
:
AddCounter
(
0x34f
,
2
)
end
\ No newline at end of file
end
expansions/script/c33400100.lua
View file @
03279c8b
--刻刻帝-喰时之城
function
c33400100
.
initial_effect
(
c
)
local
m
=
33400100
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
c
:
EnableCounterPermit
(
0x34f
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
Set
Operation
(
c33400100
.
activate
)
c
:
RegisterEffect
(
e1
)
--counter
e1
:
Set
CountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_OATH
)
c
:
RegisterEffect
(
e1
)
--
Add
counter
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_
FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_
CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetOperation
(
c
33400100
.
counter
)
e2
:
SetOperation
(
c
m
.
acop
)
c
:
RegisterEffect
(
e2
)
--atk down
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -21,37 +22,56 @@ function c33400100.initial_effect(c)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetValue
(
c33400100
.
atkval
)
e3
:
SetCondition
(
cm
.
atkcon
)
e3
:
SetValue
(
cm
.
atkval
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
c
:
RegisterEffect
(
e4
)
--damage
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e7
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e7
:
SetOperation
(
cm
.
ctp
)
c
:
RegisterEffect
(
e7
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e8
:
SetCode
(
EVENT_LEAVE_FIELD
)
e8
:
SetOperation
(
cm
.
ctop
)
e8
:
SetLabelObject
(
e7
)
c
:
RegisterEffect
(
e8
)
end
function
c
33400100
.
atkval
(
e
)
return
Duel
.
Get
MatchingGroupCount
(
c33400100
.
PD
,
e
:
GetHandlerPlayer
(),
LOCATION_GRAVE
,
0
,
nil
)
*-
100
function
c
m
.
atkcon
(
e
)
return
Duel
.
Get
TurnPlayer
()
~=
e
:
GetHandlerPlayer
()
end
function
c33400100
.
PD
(
c
)
function
cm
.
atkval
(
e
)
return
Duel
.
GetMatchingGroupCount
(
cm
.
down
,
e
:
GetHandlerPlayer
(),
LOCATION_GRAVE
,
0
,
nil
)
*-
100
end
function
cm
.
down
(
c
)
return
c
:
IsSetCard
(
0x3340
)
or
c
:
IsSetCard
(
0x3341
)
end
function
c33400100
.
counter
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
eg
:
FilterCount
(
c33400100
.
cfilter
,
nil
)
if
ct
>
0
then
e
:
GetHandler
():
AddCounter
(
0x34f
,
ct
,
true
)
function
cm
.
cfilter
(
c
,
tp
)
return
c
:
GetPreviousLocation
()
==
LOCATION_ONFIELD
and
c
:
GetPreviousControler
()
==
tp
end
function
cm
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
cm
.
cfilter
,
1
,
nil
,
tp
)
then
e
:
GetHandler
():
AddCounter
(
0x34f
,
1
)
end
end
function
c33400100
.
cfilter
(
c
)
return
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
function
cm
.
ctp
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ct
=
c
:
GetCounter
(
0x34f
)
e
:
SetLabel
(
ct
)
end
function
c
33400100
.
filter
(
c
)
return
c
:
Is
Code
(
33400113
)
and
c
:
IsAbleToHand
(
)
function
c
m
.
ct
filter
(
c
)
return
c
:
Is
Faceup
()
and
c
:
IsCanAddCounter
(
0x34f
,
1
)
end
function
c33400100
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c33400100
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
33400100
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
function
cm
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
e
:
GetLabelObject
():
GetLabel
()
if
ct
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
local
tc1
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
local
tc
=
tc1
:
GetFirst
()
tc
:
AddCounter
(
0x34f
,
ct
,
true
)
end
end
end
\ No newline at end of file
expansions/script/c33400470.lua
View file @
03279c8b
...
...
@@ -25,17 +25,17 @@ function cm.initial_effect(c)
e2
:
SetOperation
(
cm
.
desop
)
c
:
RegisterEffect
(
e2
)
--origami
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e
2
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e
2
:
SetCode
(
EVENT_FREE_CHAIN
)
e
2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e
2
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DRAW
+
CATEGORY_COUNTER
)
e
2
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_OATH
)
e
2
:
SetCondition
(
cm
.
descon
)
e
2
:
SetTarget
(
cm
.
destg2
)
e
2
:
SetOperation
(
cm
.
desop2
)
c
:
RegisterEffect
(
e
2
)
local
e
3
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e
3
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e
3
:
SetCode
(
EVENT_FREE_CHAIN
)
e
3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e
3
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DRAW
+
CATEGORY_COUNTER
)
e
3
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_OATH
)
e
3
:
SetCondition
(
cm
.
descon
)
e
3
:
SetTarget
(
cm
.
destg2
)
e
3
:
SetOperation
(
cm
.
desop2
)
c
:
RegisterEffect
(
e
3
)
end
function
cm
.
desfilter
(
c
)
...
...
@@ -46,13 +46,13 @@ function cm.ctfilter(c)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
cm
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g1
,
g1
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
function
cm
.
activate
(
e
)
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
...
...
@@ -62,7 +62,7 @@ function cm.activate(e)
end
if
Duel
.
IsExistingMatchingCard
(
cm
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
m
,
3
))
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
()
)
local
tc
=
tg
:
GetFirst
()
tc
:
AddCounter
(
0x34f
,
3
*
ss
)
end
...
...
@@ -74,10 +74,10 @@ function cm.desfilter2(c)
end
function
cm
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
desfilter2
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
desfilter2
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
()
)
and
Duel
.
IsExistingTarget
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
cm
.
desfilter2
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
cm
.
desfilter2
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
()
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
2
,
nil
)
g1
:
Merge
(
g2
)
...
...
@@ -101,10 +101,10 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
destg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
desfilter2
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
desfilter2
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
()
)
and
Duel
.
IsExistingTarget
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
cm
.
desfilter2
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
2
,
nil
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
cm
.
desfilter2
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
2
,
e
:
GetHandler
()
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
2
,
nil
)
g1
:
Merge
(
g2
)
...
...
expansions/script/c33400503.lua
View file @
03279c8b
...
...
@@ -58,7 +58,7 @@ function cm.penop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
penfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_
S
ZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_
P
ZONE
,
POS_FACEUP
,
true
)
end
end
end
...
...
expansions/script/c33400512.lua
View file @
03279c8b
...
...
@@ -172,7 +172,7 @@ function cm.penop(e,tp,eg,ep,ev,re,r,rp)
op
=
1
end
if
c
:
IsRelateToEffect
(
e
)
and
op
==
0
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_
S
ZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_
P
ZONE
,
POS_FACEUP
,
true
)
end
if
op
==
1
then
local
g1
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanAddCounter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
,
0x1015
,
1
)
...
...
expansions/script/c33400513.lua
View file @
03279c8b
...
...
@@ -135,7 +135,7 @@ function cm.penop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
b1
=
1
end
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanAddCounter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
,
0x1015
,
1
)
then
b2
=
1
end
if
b1
==
1
and
b2
==
1
then
if
b1
==
1
and
b2
==
1
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
3
),
aux
.
Stringid
(
m
,
4
))
elseif
b1
==
1
then
op
=
0
...
...
@@ -143,7 +143,7 @@ function cm.penop(e,tp,eg,ep,ev,re,r,rp)
op
=
1
end
if
c
:
IsRelateToEffect
(
e
)
and
op
==
0
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_
S
ZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_
P
ZONE
,
POS_FACEUP
,
true
)
end
if
op
==
1
then
local
g1
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanAddCounter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
,
0x1015
,
1
)
...
...
expansions/script/c33400514.lua
View file @
03279c8b
...
...
@@ -145,7 +145,7 @@ function cm.penop(e,tp,eg,ep,ev,re,r,rp)
op
=
1
end
if
c
:
IsRelateToEffect
(
e
)
and
op
==
0
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_
S
ZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_
P
ZONE
,
POS_FACEUP
,
true
)
end
if
op
==
1
then
local
g1
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanAddCounter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
,
0x1015
,
1
)
...
...
expansions/script/c33400515.lua
View file @
03279c8b
...
...
@@ -173,7 +173,7 @@ function cm.penop(e,tp,eg,ep,ev,re,r,rp)
op
=
1
end
if
c
:
IsRelateToEffect
(
e
)
and
op
==
0
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_
S
ZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_
P
ZONE
,
POS_FACEUP
,
true
)
end
if
op
==
1
then
local
g1
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanAddCounter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
,
0x1015
,
1
)
...
...
expansions/script/c33400516.lua
View file @
03279c8b
...
...
@@ -138,7 +138,7 @@ function cm.penop(e,tp,eg,ep,ev,re,r,rp)
op
=
1
end
if
c
:
IsRelateToEffect
(
e
)
and
op
==
0
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_
S
ZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_
P
ZONE
,
POS_FACEUP
,
true
)
end
if
op
==
1
then
local
g1
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanAddCounter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
,
0x1015
,
1
)
...
...
expansions/script/c33400524.lua
View file @
03279c8b
...
...
@@ -150,7 +150,7 @@ end
function
cm
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
and
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
e
:
GetHandler
(),
tp
,
tp
,
LOCATION_
S
ZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
e
:
GetHandler
(),
tp
,
tp
,
LOCATION_
P
ZONE
,
POS_FACEUP
,
true
)
end
end
...
...
expansions/script/c33400755.lua
View file @
03279c8b
...
...
@@ -17,6 +17,7 @@ function cm.initial_effect(c)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetCountLimit
(
1
)
e5
:
SetCondition
(
cm
.
atkcon
)
e5
:
SetOperation
(
cm
.
atkop
)
c
:
RegisterEffect
(
e5
)
...
...
expansions/script/c33401058.lua
View file @
03279c8b
...
...
@@ -26,7 +26,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
cfilter
(
c
,
tp
)
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsSetCard
(
0x9341
)
and
c
:
GetPreviousControler
()
==
tp
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsSetCard
(
0x9341
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
GetPreviousControler
()
==
tp
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
cm
.
cfilter
,
1
,
nil
,
tp
)
...
...
expansions/script/c33401303.lua
View file @
03279c8b
...
...
@@ -23,7 +23,7 @@ function c33401303.initial_effect(c)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x341
+
0x5344
))
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x341
,
0x5344
))
e2
:
SetValue
(
c33401303
.
atkval
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
...
...
@@ -69,7 +69,7 @@ function c33401303.desop(e,tp,eg,ep,ev,re,r,rp)
end
function
c33401303
.
pd
(
c
)
return
c
:
IsSetCard
(
0x341
+
0x5344
+
0x340
)
return
c
:
IsSetCard
(
0x341
,
0x5344
,
0x340
)
end
function
c33401303
.
atkval
(
e
,
c
)
return
Duel
.
GetMatchingGroupCount
(
c33401303
.
pd
,
e
:
GetHandlerPlayer
(),
LOCATION_GRAVE
,
0
,
nil
)
*
100
...
...
expansions/script/c33701009.lua
View file @
03279c8b
...
...
@@ -5,7 +5,8 @@ local cm=_G["c"..m]
function
cm
.
initial_effect
(
c
)
rscf
.
SetSummonCondition
(
c
)
aux
.
AddXyzProcedureLevelFree
(
c
,
cm
.
mfilter
,
aux
.
TRUE
,
40
,
40
)
local
e1
=
rsef
.
I
(
c
,{
m
,
0
},{
1
,
m
,
2
},
"sp"
,
nil
,
LOCATION_EXTRA
+
LOCATION_GRAVE
,
nil
,
rscost
.
lpcost
(
true
),
cm
.
sptg
,
cm
.
spop
)
local
e0
=
rsef
.
I
(
c
,{
m
,
0
},{
1
,
m
,
2
},
"sp"
,
nil
,
LOCATION_EXTRA
,
nil
,
rscost
.
lpcost
(
true
),
cm
.
sptg
,
cm
.
spop
)
local
e1
=
rsef
.
I
(
c
,{
m
,
0
},{
1
,
m
,
2
},
"sp"
,
nil
,
LOCATION_GRAVE
,
nil
,
rscost
.
lpcost
(
true
),
cm
.
sptg
,
cm
.
spop
)
local
e3
=
rsef
.
SV_ADD
(
c
,
"att"
,
cm
.
attfilter
)
local
e5
=
rsef
.
SV_INDESTRUCTABLE
(
c
,
"battle"
,
1
,
cm
.
con
(
ATTRIBUTE_LIGHT
))
local
e8
=
rsef
.
I
(
c
,{
m
,
2
},
1
,
"th"
,
"tg"
,
LOCATION_MZONE
,
cm
.
con
(
ATTRIBUTE_WATER
),
nil
,
rstg
.
target
({
Card
.
IsAbleToHand
,
"th"
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
c
}),
cm
.
thop
)
...
...
@@ -77,7 +78,7 @@ function cm.rfilter(c,e,tp)
end
function
cm
.
rtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
og
=
e
:
GetLabelObject
():
GetLabelObject
()
if
chk
==
0
then
return
og
:
IsExists
(
cm
.
rfilter
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
if
chk
==
0
then
return
og
and
og
:
IsExists
(
cm
.
rfilter
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
SetTargetCard
(
og
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
LOCATION_GRAVE
)
end
...
...
expansions/script/c79029078.lua
View file @
03279c8b
...
...
@@ -4,7 +4,7 @@ function c79029078.initial_effect(c)
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFunRep2
(
c
,
c79029078
.
ffilter
,
3
,
3
,
false
)
--synchro summon
aux
.
AddSynchroMixProcedure
(
c
,
aux
.
Tuner
(
nil
),
aux
.
Tuner
(
nil
),
nil
,
aux
.
NonTuner
(
nil
),
2
,
99
)
aux
.
AddSynchroMixProcedure
(
c
,
aux
.
Tuner
(
nil
),
aux
.
Tuner
(
nil
),
nil
,
aux
.
NonTuner
(
nil
),
1
,
99
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--splimit
...
...
expansions/script/c79029120.lua
View file @
03279c8b
--乌萨斯·重装干员-古米
function
c79029120
.
initial_effect
(
c
)
aux
.
AddXyzProcedure
(
c
,
nil
,
4
,
2
,
c79029120
.
ovfilter
,
aux
.
Stringid
(
79029120
,
1
),
99
)
aux
.
AddXyzProcedure
(
c
,
nil
,
4
,
3
,
c79029120
.
ovfilter
,
aux
.
Stringid
(
79029120
,
1
),
99
)
--serch
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
...
...
expansions/script/c79029527.lua
View file @
03279c8b
...
...
@@ -5,7 +5,7 @@ function c79029527.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetHintTiming
(
0
,
TIMING
S_CHECK_MONSTER
+
TIMING
_END_PHASE
)
e1
:
SetCountLimit
(
1
,
79029527
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCost
(
c79029527
.
cost
)
e1
:
SetTarget
(
c79029527
.
target
)
...
...
@@ -18,11 +18,11 @@ function c79029527.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c79029527
.
filter1
(
c
,
e
,
tp
)
local
lv
=
c
:
GetLink
()
local
rg
=
Duel
.
GetMatchingGroup
(
c79029527
.
filter3
,
tp
,
LOCATION_REMOVED
,
0
,
c
)
return
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsLinkSummonable
(
nil
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
and
rg
:
GetCount
()
==
lv
local
rg
=
Duel
.
GetMatchingGroup
(
c79029527
.
filter3
,
tp
,
LOCATION_REMOVED
,
0
,
nil
)
return
c
:
IsType
(
TYPE_LINK
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
and
rg
:
GetCount
()
>=
lv
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_LINK
,
tp
,
false
,
false
)
end
function
c79029527
.
filter3
(
c
)
return
c
:
IsAbleTo
Remove
()
and
c
:
IsCanBeLinkMaterial
(
nil
)
return
c
:
IsAbleTo
Deck
()
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c79029527
.
filter2
(
c
)
return
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsSetCard
(
0x11b
)
...
...
@@ -46,7 +46,7 @@ function c79029527.activate(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
79029527
,
0
))
then
local
gb
=
Duel
.
GetDecktopGroup
(
tp
,
lv
)
Duel
.
SendtoGrave
(
gb
,
REASON_EFFECT
)
end
end
end
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