Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
5fe2359d
Commit
5fe2359d
authored
Sep 27, 2019
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some of redtext
parent
22835a40
Changes
28
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
351 additions
and
357 deletions
+351
-357
expansions/script/c1141004.lua
expansions/script/c1141004.lua
+1
-1
expansions/script/c12009043.lua
expansions/script/c12009043.lua
+1
-1
expansions/script/c12031010.lua
expansions/script/c12031010.lua
+1
-1
expansions/script/c14801055.lua
expansions/script/c14801055.lua
+87
-87
expansions/script/c15415173.lua
expansions/script/c15415173.lua
+1
-1
expansions/script/c17050904.lua
expansions/script/c17050904.lua
+15
-15
expansions/script/c17060805.lua
expansions/script/c17060805.lua
+5
-6
expansions/script/c18001002.lua
expansions/script/c18001002.lua
+1
-1
expansions/script/c18001003.lua
expansions/script/c18001003.lua
+1
-1
expansions/script/c18001004.lua
expansions/script/c18001004.lua
+1
-1
expansions/script/c18001005.lua
expansions/script/c18001005.lua
+1
-1
expansions/script/c18713104.lua
expansions/script/c18713104.lua
+0
-1
expansions/script/c18713106.lua
expansions/script/c18713106.lua
+0
-1
expansions/script/c21499999.lua
expansions/script/c21499999.lua
+0
-4
expansions/script/c22600016.lua
expansions/script/c22600016.lua
+1
-1
expansions/script/c22600024.lua
expansions/script/c22600024.lua
+70
-70
expansions/script/c32912372.lua
expansions/script/c32912372.lua
+53
-53
expansions/script/c33700170.lua
expansions/script/c33700170.lua
+1
-1
expansions/script/c33700345.lua
expansions/script/c33700345.lua
+1
-0
expansions/script/c33700349.lua
expansions/script/c33700349.lua
+1
-1
expansions/script/c33700428.lua
expansions/script/c33700428.lua
+1
-1
expansions/script/c40008706.lua
expansions/script/c40008706.lua
+5
-5
expansions/script/c47500033.lua
expansions/script/c47500033.lua
+55
-55
expansions/script/c50218133.lua
expansions/script/c50218133.lua
+26
-26
expansions/script/c65010515.lua
expansions/script/c65010515.lua
+1
-1
expansions/script/c65090038.lua
expansions/script/c65090038.lua
+8
-8
expansions/script/c69696918.lua
expansions/script/c69696918.lua
+12
-12
expansions/script/c75646718.lua
expansions/script/c75646718.lua
+1
-1
No files found.
expansions/script/c1141004.lua
View file @
5fe2359d
...
...
@@ -75,7 +75,7 @@ function c1141004.ofilter2(c,e,tp,num)
end
function
c1141004
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
(
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
1141004
,
0
))
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
if
c
:
IsRelateToEffect
(
e
)
and
(
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
1141004
,
0
))
)
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RESOLVECARD
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c1141004
.
ofilter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
e
:
GetLabel
())
if
sg
:
GetCount
()
>
0
then
...
...
expansions/script/c12009043.lua
View file @
5fe2359d
...
...
@@ -57,7 +57,7 @@ end
function
c12009043
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c12009043
.
filter
(
c
,
e
,
sp
)
...
...
expansions/script/c12031010.lua
View file @
5fe2359d
...
...
@@ -59,7 +59,7 @@ function c12031010.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
c120310
01
.
thfilter
(
c
)
function
c120310
10
.
thfilter
(
c
)
return
c
:
IsCode
(
12031000
)
and
c
:
IsAbleToHand
()
end
function
c12031010
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c14801055.lua
View file @
5fe2359d
--灾厄融合兽 雷霆杀手
function
c14801055
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--spsummon condition
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e0
)
--handes
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
14801003
,
1
))
e1
:
SetCategory
(
CATEGORY_HANDES
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e1
:
SetCondition
(
c14801003
.
condition
)
e1
:
SetTarget
(
c14801003
.
target
)
e1
:
SetOperation
(
c14801003
.
operation
)
c
:
RegisterEffect
(
e1
)
--disable
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
14801003
,
0
))
e2
:
SetCategory
(
CATEGORY_DISABLE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCountLimit
(
1
)
e2
:
SetTarget
(
c14801003
.
distg
)
e2
:
SetOperation
(
c14801003
.
disop
)
c
:
RegisterEffect
(
e2
)
--indes
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e4
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e4
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e4
)
c
:
EnableReviveLimit
()
--spsummon condition
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e0
)
--handes
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
14801055
,
1
))
e1
:
SetCategory
(
CATEGORY_HANDES
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e1
:
SetCondition
(
c14801055
.
condition
)
e1
:
SetTarget
(
c14801055
.
target
)
e1
:
SetOperation
(
c14801055
.
operation
)
c
:
RegisterEffect
(
e1
)
--disable
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
14801055
,
0
))
e2
:
SetCategory
(
CATEGORY_DISABLE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCountLimit
(
1
)
e2
:
SetTarget
(
c14801055
.
distg
)
e2
:
SetOperation
(
c14801055
.
disop
)
c
:
RegisterEffect
(
e2
)
--indes
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e4
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e4
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e4
)
end
function
c148010
03
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
function
c148010
55
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
end
function
c148010
03
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
0
,
0
,
1
-
tp
,
1
)
function
c148010
55
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
0
,
0
,
1
-
tp
,
1
)
end
function
c148010
03
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
ep
,
LOCATION_HAND
,
0
)
local
sg
=
g
:
RandomSelect
(
ep
,
1
)
Duel
.
SendtoGrave
(
sg
,
REASON_DISCARD
+
REASON_EFFECT
)
function
c148010
55
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
ep
,
LOCATION_HAND
,
0
)
local
sg
=
g
:
RandomSelect
(
ep
,
1
)
Duel
.
SendtoGrave
(
sg
,
REASON_DISCARD
+
REASON_EFFECT
)
end
function
c148010
03
.
disfilter
(
c
)
return
c
:
IsFaceup
()
and
not
(
c
:
GetAttack
()
==
0
and
c
:
IsDisabled
())
function
c148010
55
.
disfilter
(
c
)
return
c
:
IsFaceup
()
and
not
(
c
:
GetAttack
()
==
0
and
c
:
IsDisabled
())
end
function
c148010
03
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c14801003
.
disfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c14801003
.
disfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c14801003
.
disfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
g
,
1
,
0
,
0
)
function
c148010
55
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c14801055
.
disfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c14801055
.
disfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c14801055
.
disfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
g
,
1
,
0
,
0
)
end
function
c148010
03
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetValue
(
0
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e3
:
SetValue
(
RESET_TURN_SET
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
)
if
tc
:
IsType
(
TYPE_TRAPMONSTER
)
then
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
e4
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e4
)
end
end
function
c148010
55
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetValue
(
0
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e3
:
SetValue
(
RESET_TURN_SET
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
)
if
tc
:
IsType
(
TYPE_TRAPMONSTER
)
then
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
e4
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e4
)
end
end
end
\ No newline at end of file
expansions/script/c15415173.lua
View file @
5fe2359d
...
...
@@ -12,7 +12,7 @@ function c15415173.initial_effect(c)
e1
:
SetOperation
(
c15415173
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c154151
58
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c154151
73
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
0x167
)
end
function
c15415173
.
filter
(
c
)
...
...
expansions/script/c17050904.lua
View file @
5fe2359d
...
...
@@ -20,23 +20,23 @@ function cm.initial_effect(c)
e4
:
SetValue
(
2
)
c
:
RegisterEffect
(
e4
)
--destroy
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_BATTLED
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_BATTLED
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
Duel
.
SetTargetCard
(
tc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
tc
,
1
,
0
,
0
)
if
chk
==
0
then
return
true
end
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
Duel
.
SetTargetCard
(
tc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
tc
,
1
,
0
,
0
)
end
function
cm
.
operation
(
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
\ No newline at end of file
expansions/script/c17060805.lua
View file @
5fe2359d
...
...
@@ -52,7 +52,6 @@ function cm.initial_effect(c)
e5
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e5
:
SetRange
(
LOCATION_EXTRA
)
e5
:
SetHintTiming
(
0
,
TIMING_END_PHASE
+
TIMING_EQUIP
)
e5
:
SetProperty
()
e5
:
SetCondition
(
cm
.
xyzcon
)
e5
:
SetCost
(
cm
.
xyzcost1
)
e5
:
SetTarget
(
cm
.
xyztg1
)
...
...
@@ -75,11 +74,11 @@ function cm.IsMillion_Arthur(c)
return
m
and
m
.
is_named_with_Million_Arthur
end
function
iCount
(
name
,
tp
,
m
,
id
)
return
((
name
==
"get"
or
name
==
"set"
)
and
{(
name
==
"get"
and
{
tonumber
(((
Duel
.
GetFlagEffect
(
tp
,
m
)
==
nil
)
and
{
0
}
or
{
Duel
.
GetFlagEffect
(
tp
,
m
)})[
1
])}
or
{
Debug
.
Message
(
""
,
"请使用Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)"
)
})[
1
]}
or
{(
bit
.
band
(
iCount
(
"get"
,
tp
,
m
,
id
),
math.pow
(
2
,
id
-
1
))
==
0
and
{
true
}
or
{
false
})[
1
]})[
1
]
return
((
name
==
"get"
or
name
==
"set"
)
and
{(
name
==
"get"
and
{
tonumber
(((
Duel
.
GetFlagEffect
(
tp
,
m
)
==
nil
)
and
{
0
}
or
{
Duel
.
GetFlagEffect
(
tp
,
m
)})[
1
])}
or
{
Debug
.
Message
(
""
,
"请使用Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)"
)
})[
1
]}
or
{(
bit
.
band
(
iCount
(
"get"
,
tp
,
m
,
id
),
math.pow
(
2
,
id
-
1
))
==
0
and
{
true
}
or
{
false
})[
1
]})[
1
]
end
function
cm
.
ovfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsType
(
TYPE_XYZ
)
...
...
expansions/script/c18001002.lua
View file @
5fe2359d
...
...
@@ -30,7 +30,7 @@ function c18001002.initial_effect(c)
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetRange
(
LOCATION_REMOVED
)
e4
:
SetProperty
(
+
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetCode
(
EVENT_DESTROYED
)
e4
:
SetCondition
(
c18001002
.
condition
)
e4
:
SetTarget
(
c18001002
.
target
)
...
...
expansions/script/c18001003.lua
View file @
5fe2359d
...
...
@@ -30,7 +30,7 @@ function c18001003.initial_effect(c)
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetRange
(
LOCATION_REMOVED
)
e4
:
SetProperty
(
+
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetCode
(
EVENT_DESTROYED
)
e4
:
SetCondition
(
c18001003
.
condition
)
e4
:
SetTarget
(
c18001003
.
target
)
...
...
expansions/script/c18001004.lua
View file @
5fe2359d
...
...
@@ -30,7 +30,7 @@ function c18001004.initial_effect(c)
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetRange
(
LOCATION_REMOVED
)
e4
:
SetProperty
(
+
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetCode
(
EVENT_DESTROYED
)
e4
:
SetCondition
(
c18001004
.
condition
)
e4
:
SetTarget
(
c18001004
.
target
)
...
...
expansions/script/c18001005.lua
View file @
5fe2359d
...
...
@@ -30,7 +30,7 @@ function c18001005.initial_effect(c)
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetRange
(
LOCATION_REMOVED
)
e4
:
SetProperty
(
+
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetCode
(
EVENT_DESTROYED
)
e4
:
SetCondition
(
c18001005
.
condition
)
e4
:
SetTarget
(
c18001005
.
target
)
...
...
expansions/script/c18713104.lua
View file @
5fe2359d
...
...
@@ -16,7 +16,6 @@ function c18713104.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
()
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetCountLimit
(
1
,
18713104
)
...
...
expansions/script/c18713106.lua
View file @
5fe2359d
...
...
@@ -14,7 +14,6 @@ function c18713106.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
()
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetCountLimit
(
1
,
18713106
)
...
...
expansions/script/c21499999.lua
deleted
100644 → 0
View file @
22835a40
--流雾麟衍生物
function
c2149999
.
initial_effect
(
c
)
end
expansions/script/c22600016.lua
View file @
5fe2359d
...
...
@@ -5,7 +5,7 @@ function c22600016.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetProperty
(
+
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_REMOVE
)
e1
:
SetCountLimit
(
1
,
22600016
)
e1
:
SetCondition
(
c22600016
.
spcon
)
...
...
expansions/script/c22600024.lua
View file @
5fe2359d
--音语—二重奏之吉他×2
function
c22600024
.
initial_effect
(
c
)
--link summon
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
nil
,
2
,
2
,
c22600018
.
spcheck
)
--remove
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
22600024
,
0
))
e1
:
SetCategory
(
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCondition
(
c22600024
.
rmcon
)
e1
:
SetTarget
(
c22600024
.
rmtg
)
e1
:
SetOperation
(
c22600024
.
rmop
)
c
:
RegisterEffect
(
e1
)
--remove
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
22600024
,
1
))
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetHintTiming
(
0
,
0x1c0
)
e2
:
SetCountLimit
(
1
,
22600024
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_TOGRAVE
)
e2
:
SetTarget
(
c22600024
.
retg
)
e2
:
SetOperation
(
c22600024
.
reop
)
c
:
RegisterEffect
(
e2
)
--link summon
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
nil
,
2
,
2
,
c22600024
.
spcheck
)
--remove
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
22600024
,
0
))
e1
:
SetCategory
(
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCondition
(
c22600024
.
rmcon
)
e1
:
SetTarget
(
c22600024
.
rmtg
)
e1
:
SetOperation
(
c22600024
.
rmop
)
c
:
RegisterEffect
(
e1
)
--remove
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
22600024
,
1
))
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetHintTiming
(
0
,
0x1c0
)
e2
:
SetCountLimit
(
1
,
22600024
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_TOGRAVE
)
e2
:
SetTarget
(
c22600024
.
retg
)
e2
:
SetOperation
(
c22600024
.
reop
)
c
:
RegisterEffect
(
e2
)
end
function
c22600024
.
spcheck
(
g
)
return
g
:
GetClassCount
(
Card
.
GetLevel
)
==
g
:
GetCount
()
and
g
:
GetClassCount
(
Card
.
GetLinkAttribute
)
==
g
:
GetCount
()
and
g
:
GetClassCount
(
Card
.
GetLinkRace
)
==
1
return
g
:
GetClassCount
(
Card
.
GetLevel
)
==
g
:
GetCount
()
and
g
:
GetClassCount
(
Card
.
GetLinkAttribute
)
==
g
:
GetCount
()
and
g
:
GetClassCount
(
Card
.
GetLinkRace
)
==
1
end
function
c22600024
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
end
function
c22600024
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
1
,
nil
)
if
chk
==
0
then
return
g
:
GetCount
()
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
1
,
nil
)
if
chk
==
0
then
return
g
:
GetCount
()
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
end
function
c22600024
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
local
rg
=
g
:
RandomSelect
(
tp
,
1
)
local
tc
=
rg
:
GetFirst
()
Duel
.
Remove
(
tc
,
POS_FACEDOWN
,
REASON_EFFECT
)
tc
:
RegisterFlagEffect
(
22600024
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c22600024
.
retcon
)
e1
:
SetOperation
(
c22600024
.
retop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
local
rg
=
g
:
RandomSelect
(
tp
,
1
)
local
tc
=
rg
:
GetFirst
()
Duel
.
Remove
(
tc
,
POS_FACEDOWN
,
REASON_EFFECT
)
tc
:
RegisterFlagEffect
(
22600024
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c22600024
.
retcon
)
e1
:
SetOperation
(
c22600024
.
retop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c22600024
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetLabelObject
():
GetFlagEffect
(
22600024
)
~=
0
return
e
:
GetLabelObject
():
GetFlagEffect
(
22600024
)
~=
0
end
function
c22600024
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
Duel
.
SendtoHand
(
tc
,
1
-
tp
,
REASON_EFFECT
)
local
tc
=
e
:
GetLabelObject
()
Duel
.
SendtoHand
(
tc
,
1
-
tp
,
REASON_EFFECT
)
end
function
c22600024
.
refilter1
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x260
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x260
)
end
function
c22600024
.
refilter2
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsType
(
TYPE_MONSTER
)
end
function
c22600024
.
retg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c22600024
.
refilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
c22600024
.
refilter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c22600024
.
refilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c22600024
.
refilter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g1
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g2
,
1
,
0
,
0
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c22600024
.
refilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
c22600024
.
refilter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c22600024
.
refilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c22600024
.
refilter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g1
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g2
,
1
,
0
,
0
)
end
function
c22600024
.
reop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ex1
,
dg
=
Duel
.
GetOperationInfo
(
0
,
CATEGORY_TOGRAVE
)
local
ex2
,
cg
=
Duel
.
GetOperationInfo
(
0
,
CATEGORY_REMOVE
)
local
dc
=
dg
:
GetFirst
()
local
cc
=
cg
:
GetFirst
()
if
dc
:
IsRelateToEffect
(
e
)
and
cc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoGrave
(
dc
,
REASON_EFFECT
)
Duel
.
Remove
(
cc
,
POS_FACEDOWN
,
REASON_EFFECT
)
end
local
ex1
,
dg
=
Duel
.
GetOperationInfo
(
0
,
CATEGORY_TOGRAVE
)
local
ex2
,
cg
=
Duel
.
GetOperationInfo
(
0
,
CATEGORY_REMOVE
)
local
dc
=
dg
:
GetFirst
()
local
cc
=
cg
:
GetFirst
()
if
dc
:
IsRelateToEffect
(
e
)
and
cc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoGrave
(
dc
,
REASON_EFFECT
)
Duel
.
Remove
(
cc
,
POS_FACEDOWN
,
REASON_EFFECT
)
end
end
expansions/script/c32912372.lua
View file @
5fe2359d
--Spiral Drill - Burning Fighter
function
c32912372
.
initial_effect
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
32912372
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetChain
Limit
(
1
,
32912372
)
e1
:
SetCondition
(
c32912372
.
spcon
)
e1
:
SetTarget
(
c32912372
.
sptg
)
e1
:
SetOperation
(
c32912372
.
spop
)
c
:
RegisterEffect
(
e1
)
--destroys
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
32912372
,
1
))
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCountLimit
(
1
)
e2
:
SetHintTiming
(
0
,
0x1e0
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCost
(
c32912372
.
descost
)
e2
:
SetTarget
(
c32912372
.
destg
)
e2
:
SetOperation
(
c32912372
.
desop
)
c
:
RegisterEffect
(
e2
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
32912372
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCount
Limit
(
1
,
32912372
)
e1
:
SetCondition
(
c32912372
.
spcon
)
e1
:
SetTarget
(
c32912372
.
sptg
)
e1
:
SetOperation
(
c32912372
.
spop
)
c
:
RegisterEffect
(
e1
)
--destroys
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
32912372
,
1
))
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCountLimit
(
1
)
e2
:
SetHintTiming
(
0
,
0x1e0
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCost
(
c32912372
.
descost
)
e2
:
SetTarget
(
c32912372
.
destg
)
e2
:
SetOperation
(
c32912372
.
desop
)
c
:
RegisterEffect
(
e2
)
end
function
c32912372
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x205
)
and
not
c
:
IsCode
(
32912372
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x205
)
and
not
c
:
IsCode
(
32912372
)
end
function
c32912372
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c32912372
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c32912372
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c32912372
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c32912372
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetValue
(
LOCATION_DECKSHF
)
e1
:
SetReset
(
RESET_EVENT
+
0x47e0000
)
c
:
RegisterEffect
(
e1
,
true
)
end
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetValue
(
LOCATION_DECKSHF
)
e1
:
SetReset
(
RESET_EVENT
+
0x47e0000
)
c
:
RegisterEffect
(
e1
,
true
)
end
end
function
c32912372
.
rfilter
(
c
)
return
c
:
IsSetCard
(
0x205
)
return
c
:
IsSetCard
(
0x205
)
end
function
c32912372
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c32912372
.
rfilter
,
1
,
e
:
GetHandler
())
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c32912372
.
rfilter
,
1
,
1
,
e
:
GetHandler
())
Duel
.
Release
(
g
,
REASON_COST
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c32912372
.
rfilter
,
1
,
e
:
GetHandler
())
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c32912372
.
rfilter
,
1
,
1
,
e
:
GetHandler
())
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c32912372
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
c32912372
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
\ No newline at end of file
expansions/script/c33700170.lua
View file @
5fe2359d
...
...
@@ -80,7 +80,7 @@ function c33700170.tg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetTargetPlayer
(
tp
)
end
function
c33700170
.
filter
(
c
)
return
c
:
IsSetCard
(
0x3440
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
IsAbleToHand
()
return
c
:
IsSetCard
(
0x3440
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
and
c
:
IsAbleToHand
()
end
function
c33700170
.
damfilter
(
c
)
return
not
c
:
IsSetCard
(
0x3440
)
...
...
expansions/script/c33700345.lua
View file @
5fe2359d
...
...
@@ -6,6 +6,7 @@ cm.dfc_back_side=m-1
function
cm
.
initial_effect
(
c
)
Senya
.
DFCBackSideCommonEffect
(
c
)
c
:
EnableReviveLimit
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
...
...
expansions/script/c33700349.lua
View file @
5fe2359d
...
...
@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
()
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_BP
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
expansions/script/c33700428.lua
View file @
5fe2359d
...
...
@@ -5,7 +5,7 @@ local s = c33700428
local
id
=
33700428
function
s
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunctionEx
(
Card
.
IsType
,
TYPE_TOKEN
),
4
,
4
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLinkType
,
TYPE_EFFECT
),
4
,
4
)
--battle indestructable
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c40008706.lua
View file @
5fe2359d
...
...
@@ -63,18 +63,18 @@ function c40008706.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
function
c40
164421
.
cfilter
(
c
)
function
c40
008706
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0xf14
)
end
function
c40
164421
.
thfilter
(
c
,
lv
)
function
c40
008706
.
thfilter
(
c
,
lv
)
return
c
:
IsLevelBelow
(
lv
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c40
164421
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c40
008706
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
false
end
local
g
=
Duel
.
GetMatchingGroup
(
c40
164421
.
cfilter
,
tp
,
LOCATION_REMOVED
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c40
008706
.
cfilter
,
tp
,
LOCATION_REMOVED
,
0
,
nil
)
local
ct
=
g
:
GetClassCount
(
Card
.
GetCode
)
return
Duel
.
IsExistingMatchingCard
(
c40
164421
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
ct
)
return
Duel
.
IsExistingMatchingCard
(
c40
008706
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
ct
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
...
...
expansions/script/c47500033.lua
View file @
5fe2359d
--空域炮
function
c47500033
.
initial_effect
(
c
)
--act in hand
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e0
:
SetCondition
(
c47500033
.
handcon
)
c
:
RegisterEffect
(
e0
)
--Fuck Conter
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetCondition
(
c47500033
.
chcon
)
e1
:
SetTarget
(
c47500033
.
negtg
)
e1
:
SetOperation
(
c47500033
.
negop
)
c
:
RegisterEffect
(
e1
)
c47500033
.
act_effect
=
e1
--act in hand
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e0
:
SetCondition
(
c47500033
.
handcon
)
c
:
RegisterEffect
(
e0
)
--Fuck Conter
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetCondition
(
c47500033
.
chcon
)
e1
:
SetTarget
(
c47500033
.
negtg
)
e1
:
SetOperation
(
c47500033
.
negop
)
c
:
RegisterEffect
(
e1
)
c47500033
.
act_effect
=
e1
end
c47500033
.
card_code_list
=
{
47500000
}
function
c47500033
.
handcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
c47500033
.
chcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
return
ep
~=
tp
and
(
re
:
IsActiveType
(
TYPE_COUNTER
)
and
loc
==
LOCATION_HAND
)
and
re
:
GetActivityCount
()
==
re
:
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
return
ep
~=
tp
and
re
:
IsActiveType
(
TYPE_COUNTER
)
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c47500033
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
re
:
GetHandler
():
IsAbleToRemove
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
if
Duel
.
GetTurnPlayer
()
==
tp
then
Duel
.
SetChainLimit
(
aux
.
TRUE
)
end
if
chk
==
0
then
return
re
:
GetHandler
():
IsAbleToRemove
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
if
Duel
.
GetTurnPlayer
()
==
tp
then
Duel
.
SetChainLimit
(
aux
.
TRUE
)
end
end
function
c47500033
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetTargetRange
(
LOCATION_SZONE
,
LOCATION_SZONE
)
e1
:
SetTarget
(
c47500033
.
distg
)
e1
:
SetLabel
(
re
:
GetHandler
():
GetOriginalCode
())
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e2
:
SetCondition
(
c47500033
.
discon
)
e2
:
SetOperation
(
c47500033
.
disop
)
e2
:
SetLabel
(
re
:
GetHandler
():
GetOriginalCode
())
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetTargetRange
(
LOCATION_SZONE
,
LOCATION_SZONE
)
e1
:
SetTarget
(
c47500033
.
distg
)
e1
:
SetLabel
(
re
:
GetHandler
():
GetOriginalCode
())
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e2
:
SetCondition
(
c47500033
.
discon
)
e2
:
SetOperation
(
c47500033
.
disop
)
e2
:
SetLabel
(
re
:
GetHandler
():
GetOriginalCode
())
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
c47500033
.
distg
(
e
,
c
)
local
code
=
e
:
GetLabel
()
local
code1
,
code2
=
c
:
GetOriginalCodeRule
()
return
code1
==
code
or
code2
==
code
local
code
=
e
:
GetLabel
()
local
code1
,
code2
=
c
:
GetOriginalCodeRule
()
return
code1
==
code
or
code2
==
code
end
function
c47500033
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
code
=
e
:
GetLabel
()
local
code1
,
code2
=
re
:
GetHandler
():
GetOriginalCodeRule
()
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
(
code1
==
code
or
code2
==
code
)
local
code
=
e
:
GetLabel
()
local
code1
,
code2
=
re
:
GetHandler
():
GetOriginalCodeRule
()
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
(
code1
==
code
or
code2
==
code
)
end
function
c47500033
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
end
\ No newline at end of file
expansions/script/c50218133.lua
View file @
5fe2359d
--圣之数码兽究极体 战斗暴龙兽
function
c50218133
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
ritlimit
)
c
:
RegisterEffect
(
e1
)
--destroy all
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
13331639
,
1
))
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e4
:
SetTarget
(
c13331639
.
destg
)
e4
:
SetOperation
(
c13331639
.
desop
)
c
:
RegisterEffect
(
e4
)
c
:
EnableReviveLimit
()
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
ritlimit
)
c
:
RegisterEffect
(
e1
)
--destroy all
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
50218133
,
1
))
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e4
:
SetTarget
(
c50218133
.
destg
)
e4
:
SetOperation
(
c50218133
.
desop
)
c
:
RegisterEffect
(
e4
)
end
function
c
13331639
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_ONFIELD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
function
c
50218133
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_ONFIELD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c
13331639
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_ONFIELD
)
if
g
:
GetCount
()
>
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
function
c
50218133
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_ONFIELD
)
if
g
:
GetCount
()
>
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
\ No newline at end of file
expansions/script/c65010515.lua
View file @
5fe2359d
...
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
c
:
AddLinkProcedure
(
nil
,
2
,
3
,
cm
.
gf
)
local
e1
=
rsef
.
QO
(
c
,
nil
,{
m
,
1
},{
1
,
m
},
"sp"
,
nil
,
LOCATION_MZONE
,
rscon
.
phmp
,
nil
,
rsop
.
target2
(
cm
.
fun
,
cm
.
lfilter
,
"sp"
,
LOCATION_EXTRA
),
cm
.
spop
)
end
cm
.
rssetcode
=
=
"URBEX"
cm
.
rssetcode
=
"URBEX"
function
cm
.
gf
(
g
)
return
g
:
IsExists
(
rscf
.
CheckSetCard
,
1
,
nil
,
"URBEX"
)
end
...
...
expansions/script/c65090038.lua
View file @
5fe2359d
...
...
@@ -9,8 +9,8 @@ function c65090038.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_BATTLED
)
e1
:
SetTarget
(
c6509003
3
.
target
)
e1
:
SetOperation
(
c6509003
3
.
operation
)
e1
:
SetTarget
(
c6509003
8
.
target
)
e1
:
SetOperation
(
c6509003
8
.
operation
)
c
:
RegisterEffect
(
e1
)
--destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -21,11 +21,11 @@ function c65090038.initial_effect(c)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetTarget
(
c6509003
3
.
tgtg
)
e2
:
SetOperation
(
c6509003
3
.
tgop
)
e2
:
SetTarget
(
c6509003
8
.
tgtg
)
e2
:
SetOperation
(
c6509003
8
.
tgop
)
c
:
RegisterEffect
(
e2
)
end
function
c6509003
3
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c6509003
8
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
a
=
Duel
.
GetAttacker
()
local
t
=
Duel
.
GetAttackTarget
()
...
...
@@ -40,7 +40,7 @@ function c65090033.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
c6509003
3
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6509003
8
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
local
g
=
Group
.
CreateGroup
()
...
...
@@ -52,13 +52,13 @@ function c65090033.operation(e,tp,eg,ep,ev,re,r,rp)
local
rg
=
g
:
Filter
(
Card
.
IsRelateToBattle
,
nil
)
Duel
.
Destroy
(
rg
,
REASON_EFFECT
)
end
function
c6509003
3
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c6509003
8
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
nil
,
1
,
1
-
tp
,
LOCATION_ONFIELD
)
end
function
c6509003
3
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6509003
8
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
local
g
=
tc
:
GetColumnGroup
():
Filter
(
Card
.
IsControler
,
nil
,
1
-
tp
)
...
...
expansions/script/c69696918.lua
View file @
5fe2359d
...
...
@@ -2,18 +2,18 @@
local
m
=
69696918
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
cm
.
AddLinkProcedure
(
c
,
nil
,
2
,
99
,
cm
.
lcheck
)
aux
.
AddLinkProcedure
(
c
,
nil
,
2
,
99
,
cm
.
lcheck
)
c
:
EnableReviveLimit
()
--extra link
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e0
:
SetRange
(
LOCATION_EXTRA
)
e0
:
SetTarget
(
cm
.
mattg
)
e0
:
SetCode
(
EFFECT_EXTRA_LINK_MATERIAL
)
e0
:
SetTargetRange
(
LOCATION_EXTRA
,
0
)
e0
:
SetValue
(
cm
.
matval
)
c
:
RegisterEffect
(
e0
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e0
:
SetRange
(
LOCATION_EXTRA
)
e0
:
SetTarget
(
cm
.
mattg
)
e0
:
SetCode
(
EFFECT_EXTRA_LINK_MATERIAL
)
e0
:
SetTargetRange
(
LOCATION_EXTRA
,
0
)
e0
:
SetValue
(
cm
.
matval
)
c
:
RegisterEffect
(
e0
)
--destroy
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
@@ -39,10 +39,10 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
mattg
(
e
,
c
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsFaceup
()
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsFaceup
()
end
function
cm
.
matval
(
e
,
c
,
mg
)
return
c
:
IsCode
(
69696918
)
return
c
:
IsCode
(
69696918
)
end
function
cm
.
lcheck
(
g
,
lc
)
return
g
:
IsExists
(
Card
.
IsRace
,
1
,
nil
,
RACE_SPELLCASTER
)
...
...
expansions/script/c75646718.lua
View file @
5fe2359d
...
...
@@ -97,4 +97,4 @@ function c75646718.op(e,tp,eg,ep,ev,re,r,rp)
if
cost
then
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
Duel
.
RaiseEvent
(
tc
,
4179255
,
te
,
0
,
tp
,
tp
,
Duel
.
GetCurrentChain
())
end
endnd
\ No newline at end of file
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