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
00b46664
Commit
00b46664
authored
Oct 16, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e7f0e691
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
168 additions
and
176 deletions
+168
-176
expansions/script/c11451711.lua
expansions/script/c11451711.lua
+2
-2
expansions/script/c13020005.lua
expansions/script/c13020005.lua
+8
-22
expansions/script/c13020015.lua
expansions/script/c13020015.lua
+8
-4
expansions/script/c260023011.lua
expansions/script/c260023011.lua
+65
-64
expansions/script/c260023013.lua
expansions/script/c260023013.lua
+84
-83
expansions/script/c33701537.lua
expansions/script/c33701537.lua
+1
-1
No files found.
expansions/script/c11451711.lua
View file @
00b46664
...
...
@@ -152,7 +152,7 @@ function cm.mvop(e,tp,eg,ep,ev,re,r,rp,opt,lab)
local
b1
=
0
local
fid
=
e
:
GetLabel
()
if
fid
~=
0
then
b1
=
1
end
if
g
and
#
g
>
0
and
Duel
.
GetFlagEffect
(
0
,
m
)
==
0
then
if
g
and
#
g
>
0
and
Duel
.
GetFlagEffect
(
0
,
11451711
)
==
0
then
if
opt
==
2
then
return
true
end
Duel
.
HintSelection
(
Group
.
FromCards
(
c
))
--if Duel.SelectYesNo(tp,aux.Stringid(m,4+b1)) then
...
...
@@ -166,7 +166,7 @@ function cm.mvop(e,tp,eg,ep,ev,re,r,rp,opt,lab)
e1
:
SetValue
(
lab
*
500
)
c
:
RegisterEffect
(
e1
)
Duel
.
CalculateDamage
(
c
,
tc
)
Duel
.
RegisterFlagEffect
(
0
,
m
,
RESET_CHAIN
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
0
,
11451711
,
RESET_PHASE
+
PHASE_DAMAGE
,
0
,
1
)
end
if
fid
~=
0
then
Duel
.
RaiseEvent
(
c
,
11451718
,
e
,
fid
,
0
,
0
,
0
)
end
if
opt
==
1
then
Duel
.
RegisterFlagEffect
(
tp
,
0xffffff
+
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
...
...
expansions/script/c13020005.lua
View file @
00b46664
...
...
@@ -3,7 +3,8 @@ local cm, m, ofs = GetID()
local
yr
=
13020010
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
yr
)
c
:
SetUniqueOnField
(
1
,
0
,
m
)
c
:
SetSPSummonOnce
(
m
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFun2
(
c
,
cm
.
filter66
,
aux
.
FilterBoolFunction
(
Card
.
IsType
,
TYPE_EFFECT
),
true
)
...
...
@@ -37,25 +38,7 @@ end
function
cm
.
filter
(
c
,
c2
)
return
c
:
IsType
(
TYPE_EQUIP
)
and
not
c
:
IsForbidden
()
and
aux
.
IsCodeListed
(
c
,
yr
)
and
c
:
CheckEquipTarget
(
c2
)
end
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter
,
tp
,
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
c
)
if
g
:
GetCount
()
>
0
then
g
=
g
:
GetFirst
()
local
mg
=
Group
.
CreateGroup
()
mg
:
AddCard
(
c
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
mg
:
Merge
(
g2
)
local
tc
=
c
if
g
:
IsLocation
(
LOCATION_GRAVE
)
and
#
mg
>
1
then
tc
=
mg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
end
Duel
.
Equip
(
tp
,
g
,
tc
,
true
,
true
)
Duel
.
BreakEffect
()
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
cm
.
AddContactFusionProcedure
(
c
,
filter
,
self_location
,
opponent_location
,
mat_operation
,
...
)
self_location
=
self_location
or
0
opponent_location
=
opponent_location
or
0
...
...
@@ -98,17 +81,20 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
g
=
g
:
GetFirst
()
local
mg
=
Group
.
CreateGroup
()
mg
:
AddCard
(
c
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
mg
:
Merge
(
g2
)
local
tc
=
c
if
g
:
IsLocation
(
LOCATION_GRAVE
)
and
#
mg
>
1
then
tc
=
mg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
Duel
.
Equip
(
tp
,
g
,
tc
,
true
)
else
Duel
.
Equip
(
tp
,
g
,
tc
,
true
)
end
Duel
.
Equip
(
tp
,
g
,
tc
,
true
,
true
)
Duel
.
BreakEffect
()
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
cm
.
cfilter
(
c
,
tp
)
return
c
:
IsPreviousControler
(
tp
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
...
...
expansions/script/c13020015.lua
View file @
00b46664
...
...
@@ -111,10 +111,10 @@ function cm.filter6(c,e,tp,id,g)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
and
#
g
:
Filter
(
cm
.
filter4
,
nil
,
c
)
~=
0
end
function
cm
.
filter5
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_EQUIP
)
return
c
:
IsType
(
TYPE_EQUIP
)
or
c
:
IsType
(
TYPE_UNION
)
end
function
cm
.
filter4
(
c
,
c2
)
return
c
2
:
CheckEquipTarget
(
c
)
and
not
c
:
IsCode
(
m
)
return
c
:
CheckEquipTarget
(
c2
)
and
not
c
:
IsCode
(
m
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -134,6 +134,10 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
local
g2
=
Duel
.
GetMatchingGroup
(
cm
.
filter5
,
tp
,
LOCATION_GRAVE
+
QY_cw
,
0
,
nil
,
e
,
tp
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter6
,
tp
,
LOCATION_GRAVE
+
QY_cw
,
0
,
1
,
1
,
nil
,
e
,
tp
,
m
,
g2
):
GetFirst
()
Duel
.
SpecialSummon
(
g1
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
g2
=
g2
:
Filter
(
cm
.
filter4
,
nil
,
g1
):
GetFirst
()
g2
=
g2
:
Filter
Select
(
tp
,
cm
.
filter4
,
1
,
1
,
nil
,
g1
):
GetFirst
()
Duel
.
Equip
(
tp
,
g2
,
g1
,
true
)
end
\ No newline at end of file
end
expansions/script/c260023011.lua
View file @
00b46664
--探究天使のアザゼル
function
c260023011
.
initial_effect
(
c
)
--link summon
aux
.
AddLinkProcedure
(
c
,
c260023011
.
matfilter
,
1
,
1
)
c
:
EnableReviveLimit
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
,
260023011
)
e1
:
SetCondition
(
c260023011
.
thcon
)
e1
:
SetTarget
(
c260023011
.
thtg
)
e1
:
SetOperation
(
c260023011
.
thop
)
c
:
RegisterEffect
(
e1
)
--effect gain
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_BE_MATERIAL
)
e2
:
SetProperty
(
EFFECT_FLAG_EVENT_PLAYER
)
e2
:
SetCondition
(
c260023011
.
effcon
)
e2
:
SetOperation
(
c260023011
.
effop
)
c
:
RegisterEffect
(
e2
)
--link summon
aux
.
AddLinkProcedure
(
c
,
c260023011
.
matfilter
,
1
,
1
)
c
:
EnableReviveLimit
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
,
260023011
)
e1
:
SetCondition
(
c260023011
.
thcon
)
e1
:
SetTarget
(
c260023011
.
thtg
)
e1
:
SetOperation
(
c260023011
.
thop
)
c
:
RegisterEffect
(
e1
)
--effect gain
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_BE_MATERIAL
)
e2
:
SetProperty
(
EFFECT_FLAG_EVENT_PLAYER
)
e2
:
SetCondition
(
c260023011
.
effcon
)
e2
:
SetOperation
(
c260023011
.
effop
)
c
:
RegisterEffect
(
e2
)
end
--【召喚条件】
function
c260023011
.
matfilter
(
c
)
return
c
:
IsLinkSetCard
(
0x2045
)
and
not
c
:
IsLinkType
(
TYPE_LINK
)
return
c
:
IsLinkSetCard
(
0x2045
)
and
not
c
:
IsLinkType
(
TYPE_LINK
)
end
--【サルベージ】
function
c260023011
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
end
function
c260023011
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x2045
)
or
c
:
IsSetCard
(
0x942
)
and
c
:
IsAbleToHand
()
and
c
:
IsFaceup
()
return
c
:
IsSetCard
(
0x2045
)
or
c
:
IsSetCard
(
0x942
)
and
c
:
IsAbleToHand
()
and
c
:
IsFaceup
()
end
function
c260023011
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c260023011
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_REMOVED
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c260023011
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_REMOVED
)
end
function
c260023011
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c260023011
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c260023011
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
--【破壊付与】
function
c260023011
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
r
==
REASON_LINK
and
e
:
GetHandler
():
GetReasonCard
():
IsRace
(
RACE_FIEND
)
return
r
==
REASON_LINK
and
e
:
GetHandler
():
GetReasonCard
():
IsRace
(
RACE_FIEND
)
end
function
c260023011
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
rc
)
--destroy
e1
:
SetDescription
(
aux
.
Stringid
(
260023011
,
1
))
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
260025011
)
e1
:
SetCost
(
aux
.
bfgcost
)
e1
:
SetTarget
(
c260023011
.
destg
)
e1
:
SetOperation
(
c260023011
.
desop
)
e1
:
SetOwnerPlayer
(
ep
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
rc
:
RegisterEffect
(
e1
,
true
)
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
rc
)
--destroy
e1
:
SetDescription
(
aux
.
Stringid
(
260023011
,
1
))
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_MZONE
)
--e1:SetCountLimit(1,260025011)
e1
:
SetCost
(
aux
.
bfgcost
)
e1
:
SetTarget
(
c260023011
.
destg
)
e1
:
SetOperation
(
c260023011
.
desop
)
e1
:
SetOwnerPlayer
(
ep
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
rc
:
RegisterEffect
(
e1
,
true
)
rc
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
260023011
,
1
))
end
function
c260023011
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
c260023011
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
expansions/script/c260023013.lua
View file @
00b46664
--探究悪魔のロアマスター
function
c260023013
.
initial_effect
(
c
)
--link summon
aux
.
AddLinkProcedure
(
c
,
nil
,
2
,
2
,
c260023013
.
lcheck
)
c
:
EnableReviveLimit
()
--remove
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e1
:
SetTargetRange
(
0xff
,
0xff
)
e1
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
260023013
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
260023013
)
e2
:
SetCost
(
aux
.
bfgcost
)
e2
:
SetTarget
(
c260023013
.
sptg
)
e2
:
SetOperation
(
c260023013
.
spop
)
c
:
RegisterEffect
(
e2
)
--effect gain
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_BE_MATERIAL
)
e3
:
SetProperty
(
EFFECT_FLAG_EVENT_PLAYER
)
e3
:
SetCondition
(
c260023013
.
effcon
)
e3
:
SetOperation
(
c260023013
.
effop
)
c
:
RegisterEffect
(
e3
)
--link summon
aux
.
AddLinkProcedure
(
c
,
nil
,
2
,
2
,
c260023013
.
lcheck
)
c
:
EnableReviveLimit
()
--remove
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e1
:
SetTargetRange
(
0xff
,
0xff
)
e1
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
260023013
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
260023013
)
e2
:
SetCost
(
aux
.
bfgcost
)
e2
:
SetTarget
(
c260023013
.
sptg
)
e2
:
SetOperation
(
c260023013
.
spop
)
c
:
RegisterEffect
(
e2
)
--effect gain
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_BE_MATERIAL
)
e3
:
SetProperty
(
EFFECT_FLAG_EVENT_PLAYER
)
e3
:
SetCondition
(
c260023013
.
effcon
)
e3
:
SetOperation
(
c260023013
.
effop
)
c
:
RegisterEffect
(
e3
)
end
--【召喚条件】
function
c260023013
.
lcheck
(
g
)
return
g
:
IsExists
(
Card
.
IsLinkSetCard
,
1
,
nil
,
0x2045
)
return
g
:
IsExists
(
Card
.
IsLinkSetCard
,
1
,
nil
,
0x2045
)
end
--【サーチ】
function
c260023013
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsSummonType
(
SUMMON_TYPE_LINK
)
local
c
=
e
:
GetHandler
()
return
c
:
IsSummonType
(
SUMMON_TYPE_LINK
)
end
function
c260023013
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x942
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x942
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
function
c260023013
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c260023013
.
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
(
c260023013
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c260023013
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c260023013
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c260023013
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
--【特殊召喚】
function
c260023013
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
260023001
)
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
260023001
)
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c260023013
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c260023013
.
spfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c260023013
.
spfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
)
end
function
c260023013
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c260023013
.
spfilter
),
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c260023013
.
spfilter
),
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
--【攻撃アップ】
function
c260023013
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
r
==
REASON_LINK
and
e
:
GetHandler
():
GetReasonCard
():
IsRace
(
RACE_FIEND
)
return
r
==
REASON_LINK
and
e
:
GetHandler
():
GetReasonCard
():
IsRace
(
RACE_FIEND
)
end
function
c260023013
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
rc
)
--draw
e1
:
SetDescription
(
aux
.
Stringid
(
260023013
,
2
))
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCost
(
aux
.
bfgcost
)
e1
:
SetTarget
(
c260023013
.
drtg
)
e1
:
SetOperation
(
c260023013
.
drop
)
e1
:
SetOwnerPlayer
(
ep
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
rc
:
RegisterEffect
(
e1
,
true
)
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
rc
)
--draw
e1
:
SetDescription
(
aux
.
Stringid
(
260023013
,
2
))
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_MZONE
)
--e1:SetCountLimit(1)
e1
:
SetCost
(
aux
.
bfgcost
)
e1
:
SetTarget
(
c260023013
.
drtg
)
e1
:
SetOperation
(
c260023013
.
drop
)
e1
:
SetOwnerPlayer
(
ep
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
rc
:
RegisterEffect
(
e1
,
true
)
rc
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
260023013
,
2
))
end
function
c260023013
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
function
c260023013
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
end
\ No newline at end of file
expansions/script/c33701537.lua
View file @
00b46664
...
...
@@ -84,7 +84,7 @@ function cm.rcop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
ct
)
sc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
...
...
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