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
bb2db5d6
Commit
bb2db5d6
authored
Jul 08, 2022
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
7c20916c
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
150 additions
and
57 deletions
+150
-57
expansions/no81.cdb
expansions/no81.cdb
+0
-0
expansions/script/c11451462.lua
expansions/script/c11451462.lua
+9
-0
expansions/script/c11451463.lua
expansions/script/c11451463.lua
+9
-0
expansions/script/c11451464.lua
expansions/script/c11451464.lua
+9
-0
expansions/script/c11451465.lua
expansions/script/c11451465.lua
+9
-0
expansions/script/c11451466.lua
expansions/script/c11451466.lua
+9
-0
expansions/script/c11451467.lua
expansions/script/c11451467.lua
+9
-0
expansions/script/c11451530.lua
expansions/script/c11451530.lua
+1
-1
expansions/script/c11451628.lua
expansions/script/c11451628.lua
+3
-2
expansions/script/c11451702.lua
expansions/script/c11451702.lua
+5
-0
expansions/script/c31000013.lua
expansions/script/c31000013.lua
+4
-8
expansions/script/c31000014.lua
expansions/script/c31000014.lua
+6
-6
expansions/script/c31000015.lua
expansions/script/c31000015.lua
+1
-1
expansions/script/c33200709.lua
expansions/script/c33200709.lua
+1
-1
expansions/script/c33200730.lua
expansions/script/c33200730.lua
+2
-3
expansions/script/c33200732.lua
expansions/script/c33200732.lua
+1
-2
expansions/script/c33200734.lua
expansions/script/c33200734.lua
+1
-2
expansions/script/c33200737.lua
expansions/script/c33200737.lua
+1
-2
expansions/script/c33200740.lua
expansions/script/c33200740.lua
+9
-6
expansions/script/c33200742.lua
expansions/script/c33200742.lua
+1
-2
expansions/script/c33712000.lua
expansions/script/c33712000.lua
+6
-0
expansions/script/c67200287.lua
expansions/script/c67200287.lua
+54
-21
No files found.
expansions/no81.cdb
View file @
bb2db5d6
No preview for this file type
expansions/script/c11451462.lua
View file @
bb2db5d6
...
...
@@ -153,12 +153,21 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
retfilter2
(
c
,
p
,
loc
)
if
(
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
and
c
:
GetPreviousTypeOnField
()
&
TYPE_EQUIP
>
0
)
or
c
:
IsPreviousLocation
(
LOCATION_FZONE
)
then
return
false
end
return
c
:
IsPreviousControler
(
p
)
and
c
:
IsPreviousLocation
(
loc
)
end
function
cm
.
fselect2
(
g
,
pft
)
return
g
:
FilterCount
(
Card
.
IsPreviousLocation
,
nil
,
LOCATION_PZONE
)
<=
pft
end
function
cm
.
returntofield
(
tc
)
if
tc
:
IsPreviousLocation
(
LOCATION_FZONE
)
then
local
p
=
tc
:
GetPreviousControler
()
local
gc
=
Duel
.
GetFieldCard
(
p
,
LOCATION_FZONE
,
0
)
if
gc
then
Duel
.
SendtoGrave
(
gc
,
REASON_RULE
)
Duel
.
BreakEffect
()
end
end
if
tc
:
GetPreviousTypeOnField
()
&
TYPE_EQUIP
>
0
then
Duel
.
SendtoGrave
(
tc
,
REASON_RULE
+
REASON_RETURN
)
else
...
...
expansions/script/c11451463.lua
View file @
bb2db5d6
...
...
@@ -157,12 +157,21 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
retfilter2
(
c
,
p
,
loc
)
if
(
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
and
c
:
GetPreviousTypeOnField
()
&
TYPE_EQUIP
>
0
)
or
c
:
IsPreviousLocation
(
LOCATION_FZONE
)
then
return
false
end
return
c
:
IsPreviousControler
(
p
)
and
c
:
IsPreviousLocation
(
loc
)
end
function
cm
.
fselect2
(
g
,
pft
)
return
g
:
FilterCount
(
Card
.
IsPreviousLocation
,
nil
,
LOCATION_PZONE
)
<=
pft
end
function
cm
.
returntofield
(
tc
)
if
tc
:
IsPreviousLocation
(
LOCATION_FZONE
)
then
local
p
=
tc
:
GetPreviousControler
()
local
gc
=
Duel
.
GetFieldCard
(
p
,
LOCATION_FZONE
,
0
)
if
gc
then
Duel
.
SendtoGrave
(
gc
,
REASON_RULE
)
Duel
.
BreakEffect
()
end
end
if
tc
:
GetPreviousTypeOnField
()
&
TYPE_EQUIP
>
0
then
Duel
.
SendtoGrave
(
tc
,
REASON_RULE
+
REASON_RETURN
)
else
...
...
expansions/script/c11451464.lua
View file @
bb2db5d6
...
...
@@ -213,12 +213,21 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
retfilter2
(
c
,
p
,
loc
)
if
(
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
and
c
:
GetPreviousTypeOnField
()
&
TYPE_EQUIP
>
0
)
or
c
:
IsPreviousLocation
(
LOCATION_FZONE
)
then
return
false
end
return
c
:
IsPreviousControler
(
p
)
and
c
:
IsPreviousLocation
(
loc
)
end
function
cm
.
fselect2
(
g
,
pft
)
return
g
:
FilterCount
(
Card
.
IsPreviousLocation
,
nil
,
LOCATION_PZONE
)
<=
pft
end
function
cm
.
returntofield
(
tc
)
if
tc
:
IsPreviousLocation
(
LOCATION_FZONE
)
then
local
p
=
tc
:
GetPreviousControler
()
local
gc
=
Duel
.
GetFieldCard
(
p
,
LOCATION_FZONE
,
0
)
if
gc
then
Duel
.
SendtoGrave
(
gc
,
REASON_RULE
)
Duel
.
BreakEffect
()
end
end
if
tc
:
GetPreviousTypeOnField
()
&
TYPE_EQUIP
>
0
then
Duel
.
SendtoGrave
(
tc
,
REASON_RULE
+
REASON_RETURN
)
else
...
...
expansions/script/c11451465.lua
View file @
bb2db5d6
...
...
@@ -191,12 +191,21 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
retfilter2
(
c
,
p
,
loc
)
if
(
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
and
c
:
GetPreviousTypeOnField
()
&
TYPE_EQUIP
>
0
)
or
c
:
IsPreviousLocation
(
LOCATION_FZONE
)
then
return
false
end
return
c
:
IsPreviousControler
(
p
)
and
c
:
IsPreviousLocation
(
loc
)
end
function
cm
.
fselect2
(
g
,
pft
)
return
g
:
FilterCount
(
Card
.
IsPreviousLocation
,
nil
,
LOCATION_PZONE
)
<=
pft
end
function
cm
.
returntofield
(
tc
)
if
tc
:
IsPreviousLocation
(
LOCATION_FZONE
)
then
local
p
=
tc
:
GetPreviousControler
()
local
gc
=
Duel
.
GetFieldCard
(
p
,
LOCATION_FZONE
,
0
)
if
gc
then
Duel
.
SendtoGrave
(
gc
,
REASON_RULE
)
Duel
.
BreakEffect
()
end
end
if
tc
:
GetPreviousTypeOnField
()
&
TYPE_EQUIP
>
0
then
Duel
.
SendtoGrave
(
tc
,
REASON_RULE
+
REASON_RETURN
)
else
...
...
expansions/script/c11451466.lua
View file @
bb2db5d6
...
...
@@ -212,12 +212,21 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
retfilter2
(
c
,
p
,
loc
)
if
(
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
and
c
:
GetPreviousTypeOnField
()
&
TYPE_EQUIP
>
0
)
or
c
:
IsPreviousLocation
(
LOCATION_FZONE
)
then
return
false
end
return
c
:
IsPreviousControler
(
p
)
and
c
:
IsPreviousLocation
(
loc
)
end
function
cm
.
fselect2
(
g
,
pft
)
return
g
:
FilterCount
(
Card
.
IsPreviousLocation
,
nil
,
LOCATION_PZONE
)
<=
pft
end
function
cm
.
returntofield
(
tc
)
if
tc
:
IsPreviousLocation
(
LOCATION_FZONE
)
then
local
p
=
tc
:
GetPreviousControler
()
local
gc
=
Duel
.
GetFieldCard
(
p
,
LOCATION_FZONE
,
0
)
if
gc
then
Duel
.
SendtoGrave
(
gc
,
REASON_RULE
)
Duel
.
BreakEffect
()
end
end
if
tc
:
GetPreviousTypeOnField
()
&
TYPE_EQUIP
>
0
then
Duel
.
SendtoGrave
(
tc
,
REASON_RULE
+
REASON_RETURN
)
else
...
...
expansions/script/c11451467.lua
View file @
bb2db5d6
...
...
@@ -241,12 +241,21 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
retfilter2
(
c
,
p
,
loc
)
if
(
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
and
c
:
GetPreviousTypeOnField
()
&
TYPE_EQUIP
>
0
)
or
c
:
IsPreviousLocation
(
LOCATION_FZONE
)
then
return
false
end
return
c
:
IsPreviousControler
(
p
)
and
c
:
IsPreviousLocation
(
loc
)
end
function
cm
.
fselect2
(
g
,
pft
)
return
g
:
FilterCount
(
Card
.
IsPreviousLocation
,
nil
,
LOCATION_PZONE
)
<=
pft
end
function
cm
.
returntofield
(
tc
)
if
tc
:
IsPreviousLocation
(
LOCATION_FZONE
)
then
local
p
=
tc
:
GetPreviousControler
()
local
gc
=
Duel
.
GetFieldCard
(
p
,
LOCATION_FZONE
,
0
)
if
gc
then
Duel
.
SendtoGrave
(
gc
,
REASON_RULE
)
Duel
.
BreakEffect
()
end
end
if
tc
:
GetPreviousTypeOnField
()
&
TYPE_EQUIP
>
0
then
Duel
.
SendtoGrave
(
tc
,
REASON_RULE
+
REASON_RETURN
)
else
...
...
expansions/script/c11451530.lua
View file @
bb2db5d6
...
...
@@ -70,7 +70,7 @@ function cm.fselect(g,c,e,tp)
return
true
,
zone1
,
zone2
end
function
cm
.
tgfilter
(
c
,
e
)
return
c
:
IsCanBeEffectTarget
(
e
)
and
not
c
:
IsLocation
(
LOCATION_FZONE
)
return
c
:
IsCanBeEffectTarget
(
e
)
--
and not c:IsLocation(LOCATION_FZONE)
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c11451628.lua
View file @
bb2db5d6
...
...
@@ -317,7 +317,7 @@ function cm.synop(e,tp,eg,ep,ev,re,r,rp,syncard,f,min,max)
oc
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
,
fid
)
end
og
:
KeepAlive
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetOwner
()
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
...
...
@@ -376,7 +376,8 @@ function cm.retop(e,tp,eg,ep,ev,re,r,rp)
end
for
tc
in
aux
.
Next
(
sg
)
do
if
tc
:
GetPreviousLocation
()
&
LOCATION_ONFIELD
>
0
then
Duel
.
MoveToField
(
tc
,
tp
,
tc
:
GetPreviousControler
(),
tc
:
GetPreviousLocation
(),
tc
:
GetPreviousPosition
(),
true
)
Duel
.
ReturnToField
(
tc
)
--Duel.MoveToField(tc,tp,tc:GetPreviousControler(),tc:GetPreviousLocation(),tc:GetPreviousPosition(),true)
elseif
tc
:
IsPreviousLocation
(
LOCATION_HAND
)
then
Duel
.
SendtoHand
(
tc
,
tc
:
GetPreviousControler
(),
REASON_EFFECT
)
end
...
...
expansions/script/c11451702.lua
View file @
bb2db5d6
...
...
@@ -11,7 +11,10 @@ function cm.initial_effect(c)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
_GetTurnCount
=
Duel
.
GetTurnCount
Duel
.
GetTurnCount
=
function
()
if
Duel
.
GetTurnPlayer
()
==
tp
then
return
_GetTurnCount
()
+
2
else
return
_GetTurnCount
()
+
1
end
end
local
eset
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_SKIP_TURN
)}
Duel
.
GetTurnCount
=
_GetTurnCount
if
#
eset
>
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -40,7 +43,9 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
Duel
.
RegisterEffect
(
e1
,
tp
)
end
Duel
.
GetTurnCount
=
function
()
if
Duel
.
GetTurnPlayer
()
==
1
-
tp
then
return
_GetTurnCount
()
+
2
else
return
_GetTurnCount
()
+
1
end
end
local
eset2
=
{
Duel
.
IsPlayerAffectedByEffect
(
1
-
tp
,
EFFECT_SKIP_TURN
)}
Duel
.
GetTurnCount
=
_GetTurnCount
if
#
eset2
>
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
expansions/script/c31000013.lua
View file @
bb2db5d6
...
...
@@ -85,8 +85,8 @@ end
function
c31000013
.
distg
(
e
,
c
)
local
tp
=
e
:
GetHandler
():
GetControler
()
return
Duel
.
IsExistingMatchingCard
(
c31000013
.
tkfilter
,
tp
,
nil
,
LOCATION_MZONE
,
1
,
nil
,
c
:
GetLevel
())
and
(
c
:
IsType
(
TYPE_EFFECT
)
or
c
:
GetOriginalType
()
&
TYPE_EFFECT
~=
0
)
and
not
c
:
IsDisabled
(
)
return
(
c
:
IsType
(
TYPE_EFFECT
)
or
c
:
GetOriginalType
()
&
TYPE_EFFECT
~=
0
)
and
Duel
.
IsExistingMatchingCard
(
c31000013
.
tkfilter
,
tp
,
nil
,
LOCATION_MZONE
,
1
,
nil
,
c
:
GetLevel
()
)
end
function
c31000013
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -112,12 +112,8 @@ function c31000013.operation(e,tp,eg,ep,ev,re,r,rp)
local
sg
=
g1
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
sg
:
GetFirst
()
if
tc
and
Duel
.
IsPlayerCanSendtoHand
(
tp
,
tc
)
then
if
tc
:
IsLocation
(
LOCATION_DECK
)
then
Duel
.
SendtoHand
(
sg
,
tp
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
else
Duel
.
SendtoHand
(
sg
,
tp
,
REASON_EFFECT
)
end
Duel
.
SendtoHand
(
sg
,
tp
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
end
c31000013
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
else
...
...
expansions/script/c31000014.lua
View file @
bb2db5d6
...
...
@@ -72,12 +72,12 @@ function c31000014.op(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e2
:
SetValue
(
vl2
)
tc
:
RegisterEffect
(
e2
)
if
(
preatk
~=
0
or
predef
~=
0
)
and
tc
:
IsAttack
(
0
)
and
tc
:
IsDefense
(
0
)
then
dg
:
AddCard
(
tc
)
end
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
then
for
i
=
1
,
ev
do
local
tgp
=
Duel
.
GetChainInfo
(
i
,
CHAININFO_TRIGGERING_PLAYER
)
if
tgp
~=
tp
then
Duel
.
NegateEffect
(
i
)
end
if
(
preatk
~=
0
or
predef
~=
0
)
and
tc
:
IsAttack
(
0
)
and
tc
:
IsDefense
(
0
)
then
if
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
>
0
then
for
i
=
1
,
ev
do
local
tgp
=
Duel
.
GetChainInfo
(
i
,
CHAININFO_TRIGGERING_PLAYER
)
if
tgp
~=
tp
then
Duel
.
NegateEffect
(
i
)
end
end
end
end
end
...
...
expansions/script/c31000015.lua
View file @
bb2db5d6
...
...
@@ -38,7 +38,7 @@ end
function
c31000015
.
xyzop
(
e
,
tp
,
chk
)
local
filter
=
function
(
c
)
return
c
:
IsCode
(
31000013
)
return
c
:
IsCode
(
31000013
)
and
c
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
filter
,
tp
,
LOCATION_ONFIELD
,
nil
,
1
,
nil
)
end
end
...
...
expansions/script/c33200709.lua
View file @
bb2db5d6
...
...
@@ -23,7 +23,7 @@ function c33200709.initial_effect(c)
--tohand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
33200709
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_REMOVE
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
...
...
expansions/script/c33200730.lua
View file @
bb2db5d6
...
...
@@ -22,9 +22,8 @@ function c33200730.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
33200730
,
1
))
e2
:
SetCategory
(
CATEGORY_COUNTER
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
,
33200731
)
e2
:
SetCondition
(
c33200730
.
ccon
)
e2
:
SetTarget
(
c33200730
.
ctg
)
...
...
@@ -83,7 +82,7 @@ end
--e2
function
c33200730
.
ccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_
ONFIELD
)
and
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_
MZONE
)
and
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
end
function
c33200730
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCanAddCounter
(
0x32a
,
2
)
...
...
expansions/script/c33200732.lua
View file @
bb2db5d6
...
...
@@ -20,9 +20,8 @@ function c33200732.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
33200732
,
1
))
e2
:
SetCategory
(
CATEGORY_COUNTER
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
,
33200731
)
e2
:
SetCondition
(
c33200732
.
ccon
)
e2
:
SetTarget
(
c33200732
.
ctg
)
...
...
expansions/script/c33200734.lua
View file @
bb2db5d6
...
...
@@ -32,9 +32,8 @@ function c33200734.initial_effect(c)
e3
:
SetDescription
(
aux
.
Stringid
(
33200734
,
2
))
e3
:
SetCategory
(
CATEGORY_COUNTER
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCountLimit
(
1
,
33200736
)
e3
:
SetCondition
(
c33200734
.
ccon
)
e3
:
SetTarget
(
c33200734
.
ctg
)
...
...
expansions/script/c33200737.lua
View file @
bb2db5d6
...
...
@@ -32,9 +32,8 @@ function c33200737.initial_effect(c)
e3
:
SetDescription
(
aux
.
Stringid
(
33200737
,
2
))
e3
:
SetCategory
(
CATEGORY_COUNTER
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCountLimit
(
1
,
33200739
)
e3
:
SetCondition
(
c33200737
.
ccon
)
e3
:
SetTarget
(
c33200737
.
ctg
)
...
...
expansions/script/c33200740.lua
View file @
bb2db5d6
...
...
@@ -23,11 +23,12 @@ function c33200740.initial_effect(c)
--counter
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
33200740
,
1
))
e3
:
SetCategory
(
CATEGORY_COUNTER
)
e3
:
SetCategory
(
CATEGORY_COUNTER
+
CATEGORY_TODECK
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCountLimit
(
1
,
33200741
)
e3
:
SetTarget
(
c33200740
.
counttg
)
e3
:
SetOperation
(
c33200740
.
counter
)
...
...
@@ -79,18 +80,20 @@ end
--e3
function
c33200740
.
counttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c33200740
.
cfilter
,
tp
,
LOCATION_REMOVED
,
0
,
2
,
nil
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c33200740
.
cfilter
(
chkc
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanAddCounter
(
0x32a
,
2
)
and
Duel
.
IsExistingTarget
(
c33200740
.
cfilter
,
tp
,
LOCATION_REMOVED
,
0
,
2
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c33200740
.
cfilter
,
tp
,
LOCATION_REMOVED
,
0
,
2
,
2
,
nil
)
Duel
.
HintSelection
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
e
:
GetHandler
(),
0
,
0x32a
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
0
,
LOCATION_REMOVED
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
2
,
0
,
0
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
33200740
,
1
))
end
function
c33200740
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0xc32a
)
and
c
:
IsAbleToDeck
()
end
function
c33200740
.
counter
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
IsExistingMatchingCard
(
c33200740
.
cfilter
,
tp
,
LOCATION_REMOVED
,
0
,
2
,
nil
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33200740
.
cfilter
,
tp
,
LOCATION_REMOVED
,
0
,
2
,
2
,
nil
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
g
:
GetCount
()
==
2
then
if
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
==
2
and
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
e
:
GetHandler
():
AddCounter
(
0x32a
,
2
)
...
...
expansions/script/c33200742.lua
View file @
bb2db5d6
...
...
@@ -29,9 +29,8 @@ function c33200742.initial_effect(c)
e3
:
SetDescription
(
aux
.
Stringid
(
33200742
,
2
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCountLimit
(
1
,
33200743
)
e3
:
SetCondition
(
c33200742
.
ccon
)
e3
:
SetTarget
(
c33200742
.
ctg
)
...
...
expansions/script/c33712000.lua
View file @
bb2db5d6
...
...
@@ -6,16 +6,22 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_DAMAGE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Debug
.
Message
(
Duel
.
GetTurnCount
())
return
Duel
.
GetTurnCount
()
>=
3
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
check1
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
)
local
check2
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
or
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
local
check3
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
local
check4
=
Duel
.
GetDecktopGroup
(
tp
,
15
):
FilterCount
(
Card
.
IsAbleToRemove
,
nil
)
==
15
and
Duel
.
GetDecktopGroup
(
1
-
tp
,
15
):
FilterCount
(
Card
.
IsAbleToRemove
,
nil
)
==
15
if
chk
==
0
then
return
(
check1
or
check2
or
check3
or
check4
)
and
Duel
.
GetLP
(
tp
)
>=
4000
end
Duel
.
SetChainLimit
(
aux
.
FALSE
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g1
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
nil
)
...
...
expansions/script/c67200287.lua
View file @
bb2db5d6
...
...
@@ -15,15 +15,25 @@ function c67200287.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetRange
(
LOCATION_
EXTRA
+
LOCATION_
HAND
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCountLimit
(
1
,
67200287
+
EFFECT_COUNT_CODE_OATH
)
e2
:
SetCondition
(
c67200287
.
spcon
)
e2
:
SetOperation
(
c67200287
.
spop
)
e2
:
SetValue
(
SUMMON_VALUE_SELF
)
--
e2:SetValue(SUMMON_VALUE_SELF)
c
:
RegisterEffect
(
e2
)
--special summon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e3
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e3
:
SetRange
(
LOCATION_EXTRA
)
e3
:
SetCountLimit
(
1
,
67200287
+
EFFECT_COUNT_CODE_OATH
)
e3
:
SetCondition
(
c67200287
.
spcon2
)
e3
:
SetOperation
(
c67200287
.
spop2
)
c
:
RegisterEffect
(
e3
)
--Equip
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
67200287
,
2
))
e4
:
SetDescription
(
aux
.
Stringid
(
67200287
,
5
))
e4
:
SetCategory
(
CATEGORY_EQUIP
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
)
...
...
@@ -49,38 +59,61 @@ function c67200287.repval(e,c)
return
c67200287
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
end
--
function
c67200287
.
spfilter1
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x674
)
and
c
:
IsReleasable
()
function
c67200287
.
rfilter
(
c
,
tp
)
--local tp=c:GetControler()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x674
)
and
c
:
IsReleasable
()
end
function
c67200287
.
mfilter
(
c
,
tp
)
--local tp=c:GetControler()
return
c
:
GetSequence
()
<
5
and
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
c67200287
.
spcon
(
e
,
c
)
--
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
rg
=
Duel
.
GetMatchingGroup
(
c67200287
.
rfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
,
tp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ct
=-
ft
+
1
if
ct
>
1
then
return
false
end
if
ct
>
0
and
not
Duel
.
IsExistingMatchingCard
(
c67200287
.
spfilter1
,
tp
,
LOCATION_SZONE
+
LOCATION_FZONE
,
0
,
ct
,
nil
)
then
return
false
end
return
Duel
.
IsExistingMatchingCard
(
c67200287
.
spfilter1
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
((
c
:
IsLocation
(
LOCATION_HAND
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
)
or
(
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
))
if
ft
>
0
then
return
Duel
.
IsExistingMatchingCard
(
c67200287
.
rfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
)
else
return
rg
:
GetCount
()
>
1
and
rg
:
IsExists
(
c67200287
.
mfilter
,
1
,
nil
,
tp
)
end
end
function
c67200287
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
--
local
rg
=
Duel
.
GetMatchingGroup
(
c67200287
.
rfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
,
tp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ct
=-
ft
+
1
if
ct
<
0
then
ct
=
0
end
local
g
=
Group
.
CreateGroup
()
if
ct
>
0
then
local
g
=
nil
if
ft
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c67200287
.
spfilter1
,
tp
,
LOCATION_MZONE
,
0
,
ct
,
ct
,
nil
)
g
:
Merge
(
sg
)
end
if
ct
<
1
then
g
=
rg
:
Select
(
tp
,
1
,
1
,
nil
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c67200287
.
spfilter1
,
tp
,
LOCATION_ONFIELD
,
0
,
1
-
ct
,
1
-
ct
,
g
:
GetFirst
())
g
:
Merge
(
sg
)
g
=
rg
:
FilterSelect
(
tp
,
c67200287
.
mfilter
,
1
,
1
,
nil
,
tp
)
local
g2
=
rg
:
Select
(
tp
,
1
,
1
,
g
:
GetFirst
())
g
:
Merge
(
g2
)
end
Duel
.
Release
(
g
,
REASON_COST
)
end
--
function
c67200287
.
spfilter2
(
c
,
tp
,
mc
)
return
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
Group
.
FromCards
(
c
,
mc
))
>
0
and
c
:
IsSetCard
(
0x674
)
and
c
:
IsReleasable
()
and
c
:
IsFaceup
()
end
function
c67200287
.
spcon2
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
g
=
Duel
.
GetMatchingGroup
(
c67200287
.
spfilter2
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
return
g
:
IsExists
(
c67200287
.
spfilter2
,
1
,
nil
,
tp
,
g
)
end
function
c67200287
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c67200287
.
spfilter2
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g1
=
g
:
FilterSelect
(
tp
,
c67200287
.
spfilter2
,
1
,
1
,
nil
,
tp
,
g
)
Duel
.
Release
(
g1
,
REASON_COST
)
end
--
function
c67200287
.
tgfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsSetCard
(
0x674
)
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