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
b2239a64
Commit
b2239a64
authored
Aug 09, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
0cd8b458
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
121 additions
and
99 deletions
+121
-99
expansions/script/c11450993.lua
expansions/script/c11450993.lua
+1
-1
expansions/script/c11450998.lua
expansions/script/c11450998.lua
+7
-1
expansions/script/c11450999.lua
expansions/script/c11450999.lua
+1
-1
expansions/script/c11451002.lua
expansions/script/c11451002.lua
+10
-10
expansions/script/c11451003.lua
expansions/script/c11451003.lua
+1
-1
expansions/script/c114722253.lua
expansions/script/c114722253.lua
+23
-15
expansions/script/c11533718.lua
expansions/script/c11533718.lua
+34
-26
expansions/script/c11561055.lua
expansions/script/c11561055.lua
+9
-19
expansions/script/c11561063.lua
expansions/script/c11561063.lua
+1
-1
expansions/script/c13000755.lua
expansions/script/c13000755.lua
+2
-1
expansions/script/c40011513.lua
expansions/script/c40011513.lua
+24
-15
expansions/script/c53726010.lua
expansions/script/c53726010.lua
+1
-1
expansions/script/c53737010.lua
expansions/script/c53737010.lua
+2
-2
expansions/script/c7481445.lua
expansions/script/c7481445.lua
+1
-1
expansions/script/c98941049.lua
expansions/script/c98941049.lua
+1
-1
expansions/script/c98941050.lua
expansions/script/c98941050.lua
+1
-1
expansions/script/special.lua
expansions/script/special.lua
+2
-2
No files found.
expansions/script/c11450993.lua
View file @
b2239a64
...
...
@@ -129,7 +129,7 @@ function cm.adtg(e,tp,eg,ep,ev,re,r,rp,chk)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
if
ft
>
0
then
Debug
.
Message
(
cm
[
tp
][
LOCATION_EXTRA
])
--
Debug.Message(cm[tp][LOCATION_EXTRA])
mg
=
Duel
.
GetMatchingGroup
(
cm
.
mfilter
,
tp
,
0x47
,
0
,
nil
,
tp
)
else
mg
=
mg
:
Filter
(
cm
.
mzfilter
,
nil
,
tp
)
...
...
expansions/script/c11450998.lua
View file @
b2239a64
...
...
@@ -137,7 +137,13 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
end
if
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
>
0
then
Duel
.
ConfirmCards
(
1
-
rp
,
tc
)
Duel
.
HintSelection
(
Group
.
FromCards
(
tc
))
--Duel.HintSelection(Group.FromCards(tc))
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_PUBLIC
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
,
true
)
tc
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
4
))
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
expansions/script/c11450999.lua
View file @
b2239a64
...
...
@@ -140,7 +140,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Debug
.
Message
(
e
:
GetActivateLocation
())
--
Debug.Message(e:GetActivateLocation())
--if e:IsHasType(EFFECT_TYPE_ACTIVATE) then Duel.SetChainLimit(aux.FALSE) end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c11451002.lua
View file @
b2239a64
...
...
@@ -92,10 +92,10 @@ function cm.rffilter(c)
end
function
cm
.
reop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
#
g
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_REMOVE
)
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
g
:
Select
(
1
-
tp
,
1
,
1
,
nil
):
GetFirst
()
local
b1
=
tc
:
IsFaceup
()
and
not
tc
:
IsStatus
(
STATUS_EFFECT_ENABLED
)
if
Duel
.
Remove
(
tc
,
nil
,
REASON_EFFECT
+
REASON_TEMPORARY
)
>
0
then
local
fid
=
c
:
GetFieldID
()
...
...
@@ -134,17 +134,17 @@ function cm.reop(e,tp,eg,ep,ev,re,r,rp)
end
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
or
tc
:
GetFlagEffectLabel
(
m
-
1
)
>
m
then
Duel
.
SendtoGrave
(
tc
,
REASON_RULE
+
REASON_RETURN
)
else
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
Duel
.
ReturnToField
(
tc
)
end
end
...
...
expansions/script/c11451003.lua
View file @
b2239a64
...
...
@@ -89,7 +89,7 @@ end
function
cm
.
dsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
then
return
end
local
op
=
re
:
GetOperation
()
or
aux
.
TRUE
local
op2
=
function
(
e
,
...
)
e
:
SetOperation
(
op
)
op
(
e
,
...
)
op
(
e
,
...
)
end
local
op2
=
function
(
e
,
...
)
e
:
SetOperation
(
op
)
op
(
e
,
...
)
Duel
.
BreakEffect
()
op
(
e
,
...
)
end
re
:
SetOperation
(
op2
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
expansions/script/c114722253.lua
View file @
b2239a64
...
...
@@ -21,20 +21,16 @@ function c114722253.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetCountLimit
(
1
,
114722253
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetCountLimit
(
1
,
114722253
)
e3
:
SetCondition
(
c114722253
.
stcon
)
e3
:
SetCost
(
c114722253
.
stcost
)
e3
:
SetTarget
(
c114722253
.
sttg
)
e3
:
SetOperation
(
c114722253
.
stop
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetRange
(
LOCATION_FZONE
)
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EVENT_CHAINING
)
e4
:
SetCountLimit
(
1
,
114722253
)
e4
:
SetCondition
(
c114722253
.
stcon
)
e4
:
SetTarget
(
c114722253
.
sttg2
)
e4
:
SetOperation
(
c114722253
.
stop
)
c
:
RegisterEffect
(
e4
)
end
c114722253
.
card_code_list
=
{
46986414
}
...
...
@@ -93,22 +89,28 @@ function c114722253.stfilter(c,tp,eg,ep,ev,re,r,rp)
end
]]
function
c114722253
.
stcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
return
true
end
function
c114722253
.
sefilter
(
c
)
local
te
=
c
:
GetActivateEffect
()
if
not
te
then
return
false
end
local
op
=
te
:
GetOperation
()
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
not
c
:
IsType
(
TYPE_EQUIP
)
and
not
c
:
IsCode
(
114722253
)
and
c
:
IsAbleToGraveAsCost
()
and
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
and
op
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
not
c
:
IsType
(
TYPE_EQUIP
)
and
not
c
:
IsCode
(
114722253
)
and
c
:
IsAbleToGraveAsCost
()
and
c
:
CheckActivateEffect
(
false
,
true
,
false
)
~=
nil
and
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
and
op
end
function
c114722253
.
sttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c114722253
.
sefilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
not
Duel
.
CheckEvent
(
EVENT_CHAINING
)
end
if
chk
==
0
then
if
e
:
GetLabel
()
==
0
then
return
false
end
e
:
SetLabel
(
0
)
return
Duel
.
IsExistingMatchingCard
(
c114722253
.
sefilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
not
Duel
.
CheckEvent
(
EVENT_CHAINING
)
end
e
:
SetLabel
(
0
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c114722253
.
sefilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
Duel
.
ShuffleDeck
(
tp
)
Duel
.
BreakEffect
()
local
te
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
g
:
GetFirst
():
CheckActivateEffect
(
false
,
false
,
false
)
e
:
SetCategory
(
te
:
GetCategory
())
local
te
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
g
:
GetFirst
():
CheckActivateEffect
(
false
,
true
,
false
)
and
g
:
GetFirst
():
CheckActivateEffect
(
false
,
false
,
false
)
e
:
SetProperty
(
te
:
GetProperty
())
local
fcos
=
te
:
GetCost
()
local
tg
=
te
:
GetTarget
()
...
...
@@ -116,6 +118,7 @@ function c114722253.sttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
tg
then
tg
(
e
,
tp
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
,
1
)
end
te
:
SetLabelObject
(
e
:
GetLabelObject
())
e
:
SetLabelObject
(
te
)
Duel
.
ClearOperationInfo
(
0
)
end
function
c114722253
.
stop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
...
...
@@ -143,7 +146,12 @@ function c114722253.sefilter2(c,e,tp,eg,ep,ev,re,r,rp)
else
return
false
end
end
function
c114722253
.
sttg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c114722253
.
sefilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
if
chk
==
0
then
if
e
:
GetLabel
()
==
0
then
return
false
end
e
:
SetLabel
(
0
)
return
Duel
.
IsExistingMatchingCard
(
c114722253
.
sefilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
e
:
SetLabel
(
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c114722253
.
sefilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
...
...
@@ -157,7 +165,6 @@ function c114722253.sttg2(e,tp,eg,ep,ev,re,r,rp,chk)
else
te
=
tc
:
GetActivateEffect
()
end
e
:
SetCategory
(
te
:
GetCategory
())
e
:
SetProperty
(
te
:
GetProperty
())
local
tg
=
te
:
GetTarget
()
local
fcos
=
te
:
GetCost
()
...
...
@@ -171,4 +178,5 @@ function c114722253.sttg2(e,tp,eg,ep,ev,re,r,rp,chk)
end
te
:
SetLabelObject
(
e
:
GetLabelObject
())
e
:
SetLabelObject
(
te
)
Duel
.
ClearOperationInfo
(
0
)
end
expansions/script/c11533718.lua
View file @
b2239a64
...
...
@@ -4,27 +4,27 @@ function c11533718.initial_effect(c)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--splimit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
function
(
e
,
c
,
tp
,
sumtp
,
sumpos
)
local
e1
0
=
Effect
.
CreateEffect
(
c
)
e1
0
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
0
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
0
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
0
:
SetRange
(
LOCATION_PZONE
)
e1
0
:
SetTargetRange
(
1
,
0
)
e1
0
:
SetTarget
(
function
(
e
,
c
,
tp
,
sumtp
,
sumpos
)
return
not
c
:
IsSetCard
(
0xb4
,
0xc4
)
and
bit
.
band
(
sumtp
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
end
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
0
)
--SpecialSummon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetCountLimit
(
1
,
11533718
)
e2
:
SetCondition
(
c11533718
.
ricon
)
e2
:
SetTarget
(
c11533718
.
ritg
)
e2
:
SetOperation
(
c11533718
.
riop
)
c
:
RegisterEffect
(
e2
)
local
e2
0
=
Effect
.
CreateEffect
(
c
)
e2
0
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
0
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
0
:
SetCode
(
EVENT_CHAINING
)
e2
0
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
0
:
SetRange
(
LOCATION_PZONE
)
e2
0
:
SetCountLimit
(
1
,
11533718
)
e2
0
:
SetCondition
(
c11533718
.
ricon
)
e2
0
:
SetTarget
(
c11533718
.
ritg
)
e2
0
:
SetOperation
(
c11533718
.
riop
)
c
:
RegisterEffect
(
e2
0
)
--Negate Activation
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_NEGATE
+
CATEGORY_RELEASE
)
...
...
@@ -139,12 +139,20 @@ function c11533718.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c11533718
.
negcfilter
(
c
)
return
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_HAND
))
and
c
:
IsSetCard
(
0xb4
)
and
c
:
IsReleasable
()
end
--function c11533718.negcfilter(c)
-- return (c:IsFaceup() or c:IsLocation(LOCATION_HAND)) and c:IsSetCard(0xb4) and c:IsReleasable()
--end
function
c11533718
.
rrfil
(
c
,
tp
)
local
re
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_CANNOT_RELEASE
)
local
val
=
nil
if
re
then
val
=
re
:
GetValue
()
end
return
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_HAND
))
and
c
:
IsSetCard
(
0xb4
)
and
(
c
:
IsReleasable
()
or
(
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsLocation
(
LOCATION_HAND
)
and
(
val
==
nil
or
val
(
re
,
c
)
~=
true
)))
end
function
c11533718
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c11533718
.
negcfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
local
g
=
Duel
.
GetMatchingGroup
(
c11533718
.
negcfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c11533718
.
rrfil
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
local
g
=
Duel
.
GetMatchingGroup
(
c11533718
.
rrfil
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsDestructable
()
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
1
,
0
,
0
)
...
...
@@ -153,8 +161,8 @@ function c11533718.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c11533718
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c11533718
.
negcfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
())
if
#
g
>
0
and
Duel
.
Release
(
g
,
REASON_EFFECT
)
~=
0
and
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c11533718
.
rrfil
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
())
if
#
g
>
0
and
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_RELEASE
)
~=
0
and
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
...
...
expansions/script/c11561055.lua
View file @
b2239a64
...
...
@@ -113,10 +113,13 @@ function c11561055.lfilter(c)
end
function
c11561055
.
nafilter
(
c
)
local
tp
=
c
:
GetControler
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
IsExistingMatchingCard
(
c11561055
.
nafilter2
,
tp
,
0x77
,
0
,
3
,
nil
,
c
:
GetCode
())
local
loc
=
0x77
&
(
~
c
:
GetLocation
())
return
c
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
IsExistingMatchingCard
(
c11561055
.
nafilter2
,
tp
,
loc
,
0
,
1
,
c
,
c
:
GetCode
(),
c
)
end
function
c11561055
.
nafilter2
(
c
,
code
)
return
c
:
IsCode
(
code
)
function
c11561055
.
nafilter2
(
c
,
code
,
tc
)
local
tp
=
c
:
GetControler
()
local
loc
=
0x77
&
(
~
c
:
GetLocation
())
&
(
~
tc
:
GetLocation
())
return
c
:
IsCode
(
code
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
loc
,
0
,
1
,
c
,
code
)
end
function
c11561055
.
nafilter3
(
c
,
tp
,
ccodes
)
return
Duel
.
IsExistingMatchingCard
(
c11561055
.
nafilter2
,
tp
,
0x77
,
0
,
3
,
nil
,
c
:
GetCode
())
and
c
:
IsCode
(
table.unpack
(
ccodes
))
...
...
@@ -131,14 +134,7 @@ function c11561055.xyzcondition(e,c,og,min,max)
if
og
then
mg
=
og
else
--mg=Duel.GetMatchingGroup(c11561055.nafilter,tp,0x77,0,nil)
local
tg
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
tp
)
local
ccodes
=
{}
for
tc
in
aux
.
Next
(
tg
)
do
local
code
=
tc
:
GetCode
()
table.insert
(
ccodes
,
code
)
end
mg
=
Duel
.
GetMatchingGroup
(
c11561055
.
nafilter3
,
tp
,
0x77
,
0
,
nil
,
tp
,
ccodes
)
mg
=
Duel
.
GetMatchingGroup
(
c11561055
.
nafilter
,
tp
,
0x77
,
0
,
nil
)
end
local
sg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_XMATERIAL
)
if
sg
:
IsExists
(
Auxiliary
.
MustMaterialCounterFilter
,
1
,
nil
,
mg
)
then
return
false
end
...
...
@@ -155,15 +151,9 @@ function c11561055.xyztarget(e,tp,eg,ep,ev,re,r,rp,chk,c,og,min,max)
if
og
then
mg
=
og
else
--
mg=Duel.GetMatchingGroup(c11561055.nafilter,tp,0x77,0,nil)
mg
=
Duel
.
GetMatchingGroup
(
c11561055
.
nafilter
,
tp
,
0x77
,
0
,
nil
)
--local tg=Duel.GetMatchingGroup(c11561055.nafilter,tp,LOCATION_MZONE,0,nil,tp,codes)
local
tg
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
tp
)
local
ccodes
=
{}
for
tc
in
aux
.
Next
(
tg
)
do
local
code
=
tc
:
GetCode
()
table.insert
(
ccodes
,
code
)
end
mg
=
Duel
.
GetMatchingGroup
(
c11561055
.
nafilter3
,
tp
,
0x77
,
0
,
nil
,
tp
,
ccodes
)
--local tg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,0,nil,tp)
end
local
sg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_XMATERIAL
)
Duel
.
SetSelectedCard
(
sg
)
...
...
expansions/script/c11561063.lua
View file @
b2239a64
...
...
@@ -120,7 +120,7 @@ function c11561063.spfilter(c,e,tp)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c11561063
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetOverlayGroup
(
):
IsExists
(
c11561063
.
spfilter
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetMZoneCount
(
1
-
tp
)
~=
0
end
if
chk
==
0
then
return
Duel
.
GetOverlayGroup
(
tp
,
1
,
0
):
IsExists
(
c11561063
.
spfilter
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetMZoneCount
(
1
-
tp
)
~=
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
1
-
tp
,
LOCATION_OVERLAY
)
end
function
c11561063
.
gcheckfilter
(
g
)
...
...
expansions/script/c13000755.lua
View file @
b2239a64
...
...
@@ -34,13 +34,14 @@ function s.hspop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Release
(
sc
,
REASON_COST
)
end
function
s
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
c
=
e
:
GetHandler
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
s
.
stcon
)
e2
:
SetOperation
(
s
.
stop
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
expansions/script/c40011513.lua
View file @
b2239a64
...
...
@@ -9,12 +9,12 @@ function c40011513.initial_effect(c)
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_
QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetType
(
EFFECT_TYPE_
IGNITION
)
--
e2:SetCode(EVENT_FREE_CHAIN)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCountLimit
(
1
,
40011513
)
e2
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
end
)
--
e2:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
--
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2 end)
e2
:
SetCost
(
c40011513
.
thcost
)
e2
:
SetTarget
(
c40011513
.
thtg
)
e2
:
SetOperation
(
c40011513
.
thop
)
...
...
@@ -43,20 +43,29 @@ function c40011513.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
g
:
AddCard
(
e
:
GetHandler
())
Duel
.
SendtoGrave
(
g
,
REASON_COST
+
REASON_DISCARD
)
end
function
c40011513
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xaf1b
)
and
not
c
:
IsCode
(
40011513
,
40011525
)
and
not
c
:
IsForbidden
()
function
c40011513
.
filter1
(
c
)
return
c
:
IsCode
(
40011525
)
and
c
:
IsAbleToHand
()
end
function
c40011513
.
filter2
(
c
)
return
c
:
IsSetCard
(
0xaf1b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
40011513
)
end
function
c40011513
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c40011513
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c40011513
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c40011513
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
2
,
tp
,
LOCATION_DECK
)
end
function
c40011513
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c40011513
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
):
GetFirst
()
if
tc
then
Duel
.
SendtoHand
(
tc
,
tp
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
function
c40011513
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g1
=
Duel
.
GetMatchingGroup
(
c40011513
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
c40011513
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
g1
:
GetCount
()
>
0
and
g2
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg1
=
g1
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg2
=
g2
:
Select
(
tp
,
1
,
1
,
nil
)
sg1
:
Merge
(
sg2
)
Duel
.
SendtoHand
(
sg1
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg1
)
end
end
function
c40011513
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c53726010.lua
View file @
b2239a64
...
...
@@ -52,7 +52,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
check
,
zone
):
GetFirst
()
if
tc
then
if
check
and
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
if
check
and
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
tp
,
zone
)
and
(
not
tc
:
IsAbleToHand
()
or
Duel
.
SelectOption
(
tp
,
1190
,
1152
)
==
1
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
,
zone
)
else
...
...
expansions/script/c53737010.lua
View file @
b2239a64
...
...
@@ -66,13 +66,13 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
b1
=
not
b
and
ft
>
0
local
b2
=
b
and
ft
==
1
and
st
-
ft
>
0
local
b3
=
b
and
ft
==
2
local
res
=
Duel
.
IsPlayerCanRelease
(
tp
,
nil
,
REASON_EFFECT
)
local
res
=
Duel
.
IsPlayerCanRelease
(
tp
)
if
chk
==
0
then
return
(
b1
or
b2
or
b3
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
penfilter
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
,
0
,
1
,
nil
,
res
)
end
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
res
=
Duel
.
IsPlayerCanRelease
(
tp
,
nil
,
REASON_EFFECT
)
local
res
=
Duel
.
IsPlayerCanRelease
(
tp
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
penfilter
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
res
):
GetFirst
()
if
tc
and
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
expansions/script/c7481445.lua
View file @
b2239a64
...
...
@@ -8,7 +8,7 @@ function s.initial_effect(c)
--end
--Debug.Message(#fun)
c
:
EnableReviveLimit
()
aux
.
AddFusionProcMixRep
(
c
,
false
,
true
,
aux
.
TRUE
,
1
,
63
,
s
.
fusfilter1
,
s
.
fusfilter1
)
aux
.
AddFusionProcMixRep
(
c
,
false
,
true
,
aux
.
TRUE
,
1
,
127
,
s
.
fusfilter1
,
s
.
fusfilter1
)
--aux.AddFusionProcMix(c,false,true,s.fusfilter1,s.fusfilter1,table.unpack(fun))
--grave fusion material
--summon success
...
...
expansions/script/c98941049.lua
View file @
b2239a64
...
...
@@ -70,7 +70,7 @@ function c98941049.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
and
(
Duel
.
CheckReleaseGroupEx
(
tp
,
Card
.
IsReleasable
,
1
,
e
:
GetHandler
())
or
Duel
.
GetTurnPlayer
()
==
tp
)
end
function
c98941049
.
rrfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xb4
)
and
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
true
)
return
c
:
IsSetCard
(
0xb4
)
and
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
CanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
true
)
end
function
c98941049
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c98941050.lua
View file @
b2239a64
...
...
@@ -70,7 +70,7 @@ function c98941050.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
and
(
Duel
.
CheckReleaseGroupEx
(
tp
,
Card
.
IsReleasable
,
1
,
e
:
GetHandler
())
or
Duel
.
GetTurnPlayer
()
==
tp
)
end
function
c98941050
.
rrfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xb4
)
and
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
true
)
return
c
:
IsSetCard
(
0xb4
)
and
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
CanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
true
)
end
function
c98941050
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/special.lua
View file @
b2239a64
...
...
@@ -80,10 +80,10 @@ function Auxiliary.PreloadUds()
table_range
[
e
]
=
r
return
_SetRange
(
e
,
r
,
...
)
end
--[[
local _IsCanTurnSet=Card.IsCanTurnSet
local
_IsCanTurnSet
=
Card
.
IsCanTurnSet
function
Card
.
IsCanTurnSet
(
c
)
return
(
c
:
IsSSetable
(
true
)
and
c
:
IsLocation
(
LOCATION_SZONE
))
or
((
_IsCanTurnSet
(
c
)
and
not
c
:
IsLocation
(
LOCATION_SZONE
)))
end
--]]
end
EFFECT_FLAG_CANNOT_NEGATE
=
EFFECT_FLAG_CANNOT_NEGATE
or
0x200
--require("script/procedure.lua")
end
\ No newline at end of file
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