Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
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
MyCard
ygopro-scripts
Commits
0b68dc20
Commit
0b68dc20
authored
Oct 21, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ae7aa6bf
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
183 additions
and
193 deletions
+183
-193
c40945356.lua
c40945356.lua
+45
-36
c41554273.lua
c41554273.lua
+19
-19
c41767843.lua
c41767843.lua
+16
-25
c41940225.lua
c41940225.lua
+16
-17
c42002073.lua
c42002073.lua
+3
-2
c42776855.lua
c42776855.lua
+18
-35
c42880485.lua
c42880485.lua
+19
-8
c4333086.lua
c4333086.lua
+22
-20
c43898403.lua
c43898403.lua
+10
-8
c46066477.lua
c46066477.lua
+15
-23
No files found.
c40945356.lua
View file @
0b68dc20
--
Twilight Stealth Commander - Nichirin
--
黄昏の中忍-ニチリン
function
c40945356
.
initial_effect
(
c
)
function
c40945356
.
initial_effect
(
c
)
--negate
--negate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -9,75 +9,84 @@ function c40945356.initial_effect(c)
...
@@ -9,75 +9,84 @@ function c40945356.initial_effect(c)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_SINGLE
)
e1
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_SINGLE
)
e1
:
SetCost
(
c40945356
.
cost
)
e1
:
SetCost
(
c40945356
.
cost
)
e1
:
SetTarget
(
c40945356
.
target1
)
e1
:
SetOperation
(
c40945356
.
operation1
)
e1
:
SetOperation
(
c40945356
.
operation1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
40945356
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
40945356
,
1
))
e2
:
SetProperty
(
EFFECT_FLAG_
CARD_TARGET
+
EFFECT_FLAG_
DAMAGE_STEP
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetHintTiming
(
0
,
0x1c0
)
e2
:
SetHintTiming
(
0
,
0x1c0
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_SINGLE
)
e2
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_SINGLE
)
e2
:
SetCondition
(
c40945356
.
condition
)
e2
:
SetCondition
(
c40945356
.
condition
2
)
e2
:
SetCost
(
c40945356
.
cost
)
e2
:
SetCost
(
c40945356
.
cost
)
e2
:
SetTarget
(
c40945356
.
target2
)
e2
:
SetTarget
(
c40945356
.
target2
)
e2
:
SetOperation
(
c40945356
.
operation2
)
e2
:
SetOperation
(
c40945356
.
operation2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--add setcode
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e3
:
SetCode
(
EFFECT_ADD_SETCODE
)
e3
:
SetValue
(
0x2b
)
c
:
RegisterEffect
(
e3
)
end
end
function
c40945356
.
cfilter
1
(
c
)
function
c40945356
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x2b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsDiscardable
()
return
c
:
IsSetCard
(
0x2b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsDiscardable
()
end
end
function
c40945356
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c40945356
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c40945356
.
cfilter1
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c40945356
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
Duel
.
DiscardHand
(
tp
,
c40945356
.
cfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c40945356
.
cfilter1
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
Duel
.
SendtoGrave
(
g1
,
REASON_COST
+
REASON_DISCARD
)
end
end
function
c40945356
.
indfilter
(
c
)
function
c40945356
.
afilter1
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x61
)
or
(
c
:
IsSetCard
(
0x2b
)
and
c
:
IsType
(
TYPE_MONSTER
)))
return
c
:
IsSetCard
(
0x2b
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
c40945356
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c40945356
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c40945356
.
indfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
end
function
c40945356
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c40945356
.
afilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c40945356
.
afilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
end
function
c40945356
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
e1
:
SetValue
(
1000
)
tc
:
RegisterEffect
(
e1
)
end
end
function
c40945356
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c40945356
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetTarget
(
c40945356
.
filter3
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTarget
(
c40945356
.
indtg
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetTarget
(
c40945356
.
filter3
)
e2
:
SetTarget
Range
(
LOCATION_ONFIELD
,
0
)
e2
:
SetTarget
Range
(
LOCATION_ONFILED
,
0
)
e2
:
SetTarget
(
c40945356
.
indtg
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
c40945356
.
filter3
(
e
,
c
)
function
c40945356
.
indtg
(
e
,
c
)
return
c
:
IsSetCard
(
0x61
)
or
(
c
:
IsSetCard
(
0x2b
)
and
c
:
IsType
(
TYPE_MONSTER
))
return
c
:
IsSetCard
(
0x61
)
or
(
c
:
IsSetCard
(
0x2b
)
and
c
:
IsType
(
TYPE_MONSTER
))
end
end
function
c40945356
.
condition2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
end
function
c40945356
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x2b
)
end
function
c40945356
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c40945356
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
c40945356
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c40945356
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
e1
:
SetValue
(
1000
)
tc
:
RegisterEffect
(
e1
)
end
end
c41554273.lua
View file @
0b68dc20
--
Dinomist Rush
--
ダイナミスト・ラッシュ
function
c41554273
.
initial_effect
(
c
)
function
c41554273
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -11,7 +11,7 @@ function c41554273.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c41554273.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c41554273
.
spfilter
(
c
,
e
,
tp
)
function
c41554273
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x
1e71
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x
d8
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c41554273
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c41554273
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
@@ -25,23 +25,23 @@ function c41554273.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,23 +25,23 @@ function c41554273.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
tc
)
local
e1
=
Effect
.
CreateEffect
(
tc
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetOperation
(
c41554273
.
desop
)
e1
:
SetCondition
(
c41554273
.
descon
)
e1
:
SetCondition
(
c41554273
.
descon
)
e1
:
SetOperation
(
c41554273
.
desop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
tc
:
RegisterFlagEffect
(
41554273
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
tc
:
RegisterFlagEffect
(
41554273
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
local
e2
=
Effect
.
CreateEffect
(
tc
)
local
e2
=
Effect
.
CreateEffect
(
tc
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e2
:
SetValue
(
c41554273
.
efilter
)
e2
:
SetValue
(
c41554273
.
efilter
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
end
end
end
end
function
c41554273
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c41554273
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c41767843.lua
View file @
0b68dc20
--
Score the Melodious Diva
--
幻奏の音女スコア
function
c41767843
.
initial_effect
(
c
)
function
c41767843
.
initial_effect
(
c
)
--atkdef 0
--atkdef 0
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
41767843
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
41767843
,
0
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_
TRIGGER
_O
+
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_
QUICK
_O
+
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e1
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
c41767843
.
con
)
e1
:
SetCondition
(
c41767843
.
con
dition
)
e1
:
SetCost
(
c41767843
.
cos
)
e1
:
SetCost
(
c41767843
.
cos
t
)
e1
:
SetOperation
(
c41767843
.
op
)
e1
:
SetOperation
(
c41767843
.
op
eration
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c41767843
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c41767843
.
con
dition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
return
(
a
:
GetControler
()
==
tp
and
a
:
IsSetCard
(
0x9b
)
and
a
:
IsRelateToBattle
())
if
not
d
then
return
false
end
or
(
d
and
d
:
GetControler
()
==
tp
and
d
:
IsSetCard
(
0x9b
)
and
d
:
IsRelateToBattle
())
if
a
:
IsControler
(
1
-
tp
)
then
a
=
d
end
return
a
:
IsSetCard
(
0x9b
)
and
a
:
IsRelateToBattle
()
end
end
function
c41767843
.
cos
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c41767843
.
cos
t
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c41767843
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c41767843
.
op
eration
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
if
not
a
:
IsRelateToBattle
()
or
not
d
:
IsRelateToBattle
()
then
return
end
if
not
a
:
IsRelateToBattle
()
or
not
d
:
IsRelateToBattle
()
then
return
end
if
a
:
IsControler
(
1
-
tp
)
then
d
=
a
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
if
a
:
GetControler
()
==
tp
then
e1
:
SetValue
(
0
)
e1
:
SetValue
(
0
)
d
:
RegisterEffect
(
e1
)
d
:
RegisterEffect
(
e1
)
else
e1
:
SetValue
(
0
)
a
:
RegisterEffect
(
e1
)
end
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_DEFENCE
)
e2
:
SetCode
(
EFFECT_SET_DEFENCE
)
if
a
:
GetControler
()
==
tp
then
d
:
RegisterEffect
(
e2
)
e2
:
SetValue
(
0
)
end
d
:
RegisterEffect
(
e2
)
else
e2
:
SetValue
(
0
)
a
:
RegisterEffect
(
e2
)
end
end
\ No newline at end of file
c41940225.lua
View file @
0b68dc20
--
Destroyer Fusion
--
破壊剣士融合
function
c41940225
.
initial_effect
(
c
)
function
c41940225
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -9,17 +9,17 @@ function c41940225.initial_effect(c)
...
@@ -9,17 +9,17 @@ function c41940225.initial_effect(c)
e1
:
SetTarget
(
c41940225
.
target
)
e1
:
SetTarget
(
c41940225
.
target
)
e1
:
SetOperation
(
c41940225
.
activate
)
e1
:
SetOperation
(
c41940225
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
spsummon
--
tohand
local
e
1
=
Effect
.
CreateEffect
(
c
)
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetCategory
(
CATEGORY_TOHAND
)
e
2
:
SetCategory
(
CATEGORY_TOHAND
)
e
1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e
2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e
1
:
SetRange
(
LOCATION_GRAVE
)
e
2
:
SetRange
(
LOCATION_GRAVE
)
e
1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CARD_TARGET
)
e
2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e
1
:
SetCountLimit
(
1
,
419402252
)
e
2
:
SetCountLimit
(
1
,
41940226
)
e
1
:
SetCost
(
c41940225
.
cost
)
e
2
:
SetCost
(
c41940225
.
th
cost
)
e
1
:
SetTarget
(
c41940225
.
sp
tg
)
e
2
:
SetTarget
(
c41940225
.
th
tg
)
e
1
:
SetOperation
(
c41940225
.
sp
op
)
e
2
:
SetOperation
(
c41940225
.
th
op
)
c
:
RegisterEffect
(
e
1
)
c
:
RegisterEffect
(
e
2
)
end
end
function
c41940225
.
filter0
(
c
,
tp
)
function
c41940225
.
filter0
(
c
,
tp
)
return
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
c
:
IsCanBeFusionMaterial
()
return
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
c
:
IsCanBeFusionMaterial
()
...
@@ -28,7 +28,7 @@ function c41940225.filter1(c,e,tp)
...
@@ -28,7 +28,7 @@ function c41940225.filter1(c,e,tp)
return
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
c
:
IsCanBeFusionMaterial
()
and
not
c
:
IsImmuneToEffect
(
e
)
return
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
c
:
IsCanBeFusionMaterial
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
end
function
c41940225
.
filter2
(
c
,
e
,
tp
,
m
,
f
,
chkf
)
function
c41940225
.
filter2
(
c
,
e
,
tp
,
m
,
f
,
chkf
)
return
c
:
IsType
(
TYPE_FUSION
)
and
(
c
:
GetCode
()
==
98502113
or
c
:
GetCode
()
==
86240887
)
and
(
not
f
or
f
(
c
))
return
(
c
:
IsCode
(
98502113
)
or
c
:
IsCode
(
86240887
))
and
(
not
f
or
f
(
c
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
end
end
function
c41940225
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c41940225
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
@@ -82,16 +82,15 @@ function c41940225.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -82,16 +82,15 @@ function c41940225.activate(e,tp,eg,ep,ev,re,r,rp)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
end
end
end
end
function
c41940225
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c41940225
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsAbleToGraveAsCost
,
1
,
1
,
REASON_COST
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsAbleToGraveAsCost
,
1
,
1
,
REASON_COST
)
end
end
function
c41940225
.
sp
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c41940225
.
th
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c41940225
.
sp
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c41940225
.
th
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
e
:
GetHandler
(),
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
e
:
GetHandler
(),
nil
,
REASON_EFFECT
)
end
end
...
...
c42002073.lua
View file @
0b68dc20
--
Performapal Trump Girl
--
EMトランプ・ガール
function
c42002073
.
initial_effect
(
c
)
function
c42002073
.
initial_effect
(
c
)
--pendulum summon
--pendulum summon
aux
.
AddPendulumProcedure
(
c
)
aux
.
AddPendulumProcedure
(
c
)
...
@@ -7,6 +7,7 @@ function c42002073.initial_effect(c)
...
@@ -7,6 +7,7 @@ function c42002073.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
...
@@ -15,12 +16,12 @@ function c42002073.initial_effect(c)
...
@@ -15,12 +16,12 @@ function c42002073.initial_effect(c)
e2
:
SetTarget
(
c42002073
.
target
)
e2
:
SetTarget
(
c42002073
.
target
)
e2
:
SetOperation
(
c42002073
.
operation
)
e2
:
SetOperation
(
c42002073
.
operation
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e6
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetCode
(
EVENT_DESTROYED
)
e6
:
SetCode
(
EVENT_DESTROYED
)
e6
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e6
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e6
:
SetCountLimit
(
1
,
10117149
)
e6
:
SetCondition
(
c42002073
.
spcon
)
e6
:
SetCondition
(
c42002073
.
spcon
)
e6
:
SetTarget
(
c42002073
.
sptg
)
e6
:
SetTarget
(
c42002073
.
sptg
)
e6
:
SetOperation
(
c42002073
.
spop
)
e6
:
SetOperation
(
c42002073
.
spop
)
...
...
c42776855.lua
View file @
0b68dc20
--
Dragon's Bind
--
追走の翼
function
c42776855
.
initial_effect
(
c
)
function
c42776855
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -30,9 +30,9 @@ function c42776855.filter(c)
...
@@ -30,9 +30,9 @@ function c42776855.filter(c)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SYNCHRO
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SYNCHRO
)
end
end
function
c42776855
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c42776855
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c42776855
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c
hkc
:
IsControler
(
tp
)
and
c
42776855
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c42776855
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c42776855
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
ATTACK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c42776855
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c42776855
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
end
function
c42776855
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c42776855
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -54,30 +54,23 @@ function c42776855.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,30 +54,23 @@ function c42776855.operation(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetValue
(
c42776855
.
efilter
)
e2
:
SetValue
(
c42776855
.
efilter
)
tc
:
RegisterEffect
(
e2
,
true
)
tc
:
RegisterEffect
(
e2
,
true
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
80485722
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
42776855
,
0
))
e3
:
SetCategory
(
CATEGORY_DESTROY
)
e3
:
SetCategory
(
CATEGORY_DESTROY
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetCode
(
EVENT_BATTLE_START
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCondition
(
c42776855
.
atkcon
)
e3
:
SetCondition
(
c42776855
.
atkcon
)
e3
:
SetOperation
(
c42776855
.
adesop
)
e3
:
SetOperation
(
c42776855
.
atkop
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
end
end
function
c42776855
.
rcon
(
e
)
function
c42776855
.
rcon
(
e
)
return
e
:
GetOwner
():
IsHasCardTarget
(
e
:
GetHandler
())
return
e
:
GetOwner
():
IsHasCardTarget
(
e
:
GetHandler
())
end
end
function
c42776855
.
acon
(
e
)
return
e
:
GetOwner
():
IsHasCardTarget
(
e
:
GetHandler
())
and
e
:
GetHandlerPlayer
()
==
e
:
GetLabel
()
end
function
c42776855
.
efilter
(
e
,
re
)
function
c42776855
.
efilter
(
e
,
re
)
return
e
:
GetOwnerPlayer
()
~=
re
:
GetOwnerPlayer
()
return
e
:
GetOwnerPlayer
()
~=
re
:
GetOwnerPlayer
()
end
end
function
c42776855
.
tgval
(
e
,
re
,
rp
)
return
rp
~=
e
:
GetOwnerPlayer
()
and
aux
.
tgval
(
e
,
re
,
rp
)
end
function
c42776855
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c42776855
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsDisabled
()
then
if
e
:
GetHandler
():
IsDisabled
()
then
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
...
@@ -88,35 +81,25 @@ function c42776855.descon2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -88,35 +81,25 @@ function c42776855.descon2(e,tp,eg,ep,ev,re,r,rp)
return
tc
and
eg
:
IsContains
(
tc
)
return
tc
and
eg
:
IsContains
(
tc
)
end
end
function
c42776855
.
desop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c42776855
.
desop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
end
function
c42776855
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c42776855
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
c
:
GetFirstCardTarget
()
local
tc
=
c
:
GetFirstCardTarget
()
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
local
bc
=
tc
:
GetBattleTarget
()
local
bc
=
tc
:
GetBattleTarget
()
return
ph
==
PHASE_DAMAGE
and
not
c
:
IsStatus
(
STATUS_CHAINING
)
return
tc
and
tc
:
IsLocation
(
LOCATION_MZONE
)
and
bc
and
bc
:
IsFaceup
()
and
bc
:
IsLocation
(
LOCATION_MZONE
)
and
bc
:
IsLevelAbove
(
5
)
and
a
:
IsLocation
(
LOCATION_MZONE
)
and
d
:
IsLocation
(
LOCATION_MZONE
)
and
(
tc
==
a
or
tc
==
d
)
and
bc
:
IsLevelAbove
(
5
)
and
not
Duel
.
IsDamageCalculated
()
and
e
:
GetHandler
():
GetFlagEffect
(
42776855
)
==
0
end
end
function
c42776855
.
a
des
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c42776855
.
a
tk
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
c
:
GetFirstCardTarget
()
local
tc
=
c
:
GetFirstCardTarget
()
local
bc
=
tc
:
GetBattleTarget
()
local
bc
=
tc
:
GetBattleTarget
()
local
atk
=
bc
:
GetBaseAttack
()
local
atk
=
bc
:
GetBaseAttack
()
if
bc
:
IsRelateToBattle
()
then
if
bc
:
IsRelateToBattle
()
and
Duel
.
Destroy
(
bc
,
REASON_EFFECT
)
~=
0
and
bc
:
IsType
(
TYPE_MONSTER
)
then
Duel
.
Destroy
(
bc
,
REASON_EFFECT
)
local
e1
=
Effect
.
CreateEffect
(
c
)
if
bc
:
IsLocation
(
LOCATION_GRAVE
)
and
bc
:
IsType
(
TYPE_MONSTER
)
then
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetValue
(
atk
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
RESET_END
)
e1
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
RESET_END
)
tc
:
RegisterEffect
(
e1
)
end
end
end
e
:
GetHandler
():
RegisterFlagEffect
(
42776855
,
RESET_PHASE
+
RESET_DAMAGE_CAL
,
0
,
1
)
end
end
\ No newline at end of file
c42880485.lua
View file @
0b68dc20
--
Superheavy Great General Hisu-
E
--
超重輝将ヒス-
E
function
c42880485
.
initial_effect
(
c
)
function
c42880485
.
initial_effect
(
c
)
--pendulum summon
--pendulum summon
aux
.
AddPendulumProcedure
(
c
)
aux
.
AddPendulumProcedure
(
c
)
...
@@ -32,6 +32,7 @@ function c42880485.initial_effect(c)
...
@@ -32,6 +32,7 @@ function c42880485.initial_effect(c)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e4
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e4
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetTarget
(
c42880485
.
postg
)
e4
:
SetOperation
(
c42880485
.
posop
)
e4
:
SetOperation
(
c42880485
.
posop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
local
e5
=
e4
:
Clone
()
...
@@ -50,11 +51,19 @@ function c42880485.initial_effect(c)
...
@@ -50,11 +51,19 @@ function c42880485.initial_effect(c)
local
e7
=
e6
:
Clone
()
local
e7
=
e6
:
Clone
()
e7
:
SetCode
(
EFFECT_SET_PROC
)
e7
:
SetCode
(
EFFECT_SET_PROC
)
c
:
RegisterEffect
(
e7
)
c
:
RegisterEffect
(
e7
)
--
local
e8
=
Effect
.
CreateEffect
(
c
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
)
e8
:
SetCode
(
EFFECT_DEFENCE_ATTACK
)
e8
:
SetCode
(
EFFECT_DEFENCE_ATTACK
)
e8
:
SetValue
(
1
)
e8
:
SetValue
(
1
)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
--add setcode
local
e9
=
Effect
.
CreateEffect
(
c
)
e9
:
SetType
(
EFFECT_TYPE_SINGLE
)
e9
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e9
:
SetCode
(
EFFECT_ADD_SETCODE
)
e9
:
SetValue
(
0x9a
)
c
:
RegisterEffect
(
e9
)
end
end
function
c42880485
.
splimcon
(
e
)
function
c42880485
.
splimcon
(
e
)
return
not
e
:
GetHandler
():
IsForbidden
()
return
not
e
:
GetHandler
():
IsForbidden
()
...
@@ -63,10 +72,10 @@ function c42880485.splimit(e,c,tp,sumtp,sumpos)
...
@@ -63,10 +72,10 @@ function c42880485.splimit(e,c,tp,sumtp,sumpos)
return
not
c
:
IsSetCard
(
0x9a
)
and
bit
.
band
(
sumtp
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
return
not
c
:
IsSetCard
(
0x9a
)
and
bit
.
band
(
sumtp
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
end
end
function
c42880485
.
filter
(
c
)
function
c42880485
.
filter
(
c
)
return
c
:
Is
SetCard
(
0x9a
)
and
c
:
IsFaceup
(
)
and
c
:
GetLevel
()
>
0
return
c
:
Is
Faceup
()
and
c
:
IsSetCard
(
0x9a
)
and
c
:
GetLevel
()
>
0
end
end
function
c42880485
.
lvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c42880485
.
lvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c42880485
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c
hkc
:
IsControler
(
tp
)
and
c
42880485
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c42880485
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c42880485
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c42880485
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c42880485
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
@@ -83,14 +92,16 @@ function c42880485.lvop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -83,14 +92,16 @@ function c42880485.lvop(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
end
end
end
end
function
c42880485
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c42880485
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c42880485
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
Is
Faceup
()
and
c
:
Is
RelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
ChangePosition
(
c
,
POS_FACEUP_DEFENCE
,
0
,
POS_FACEUP_ATTACK
,
0
)
Duel
.
ChangePosition
(
c
,
POS_FACEUP_DEFENCE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
end
end
end
end
function
c42880485
.
otfilter
(
c
,
tp
)
function
c42880485
.
otfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x9a
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
return
c
:
IsSetCard
(
0x9a
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
end
...
@@ -105,4 +116,4 @@ function c42880485.otop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -105,4 +116,4 @@ function c42880485.otop(e,tp,eg,ep,ev,re,r,rp,c)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
c
:
SetMaterial
(
sg
)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
end
\ No newline at end of file
c4333086.lua
View file @
0b68dc20
--
Shiranui Style: Sword of Swallow
--
不知火流 燕の太刀
function
c4333086
.
initial_effect
(
c
)
function
c4333086
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -6,38 +6,40 @@ function c4333086.initial_effect(c)
...
@@ -6,38 +6,40 @@ function c4333086.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
4333086
)
e1
:
SetCountLimit
(
1
,
4333086
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetHintTiming
(
0
,
0x1e0
)
e1
:
SetHintTiming
(
0
,
0x1e0
)
e1
:
SetCost
(
c4333086
.
cost
)
e1
:
SetCost
(
c4333086
.
cost
)
e1
:
SetTarget
(
c4333086
.
target
)
e1
:
SetTarget
(
c4333086
.
target
)
e1
:
SetOperation
(
c4333086
.
activate
)
e1
:
SetOperation
(
c4333086
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c4333086
.
rfilter
(
c
)
return
c
:
IsRace
(
RACE_ZOMBIE
)
and
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
0
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
2
,
c
)
end
function
c4333086
.
filter
(
c
)
function
c4333086
.
filter
(
c
)
return
c
:
IsSetCard
(
0xd
7
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
return
c
:
IsSetCard
(
0xd
9
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
end
end
function
c4333086
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c4333086
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c4333086
.
rfilter
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
nil
,
RACE_ZOMBIE
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c4333086
.
rfilter
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
1
,
nil
,
RACE_ZOMBIE
)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c4333086
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c4333086
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsDestructable
()
end
if
e
:
GetLabel
()
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
2
,
nil
)
e
:
SetLabel
(
0
)
and
Duel
.
IsExistingMatchingCard
(
c4333086
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
return
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
2
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
and
Duel
.
IsExistingMatchingCard
(
c4333086
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
e
:
SetLabel
(
0
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
2
,
2
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
2
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
()
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
end
end
function
c4333086
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c4333086
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
sg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
then
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c4333086
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
rg
=
Duel
.
SelectMatchingCard
(
tp
,
c4333086
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tg
=
g2
:
GetFirst
()
if
rg
:
GetCount
()
>
0
then
if
tg
==
nil
then
return
end
Duel
.
BreakEffect
()
Duel
.
Remove
(
tg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
end
end
c43898403.lua
View file @
0b68dc20
--
Twin Twister
--
ツインツイスター
function
c43898403
.
initial_effect
(
c
)
function
c43898403
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -15,15 +15,17 @@ function c43898403.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -15,15 +15,17 @@ function c43898403.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
end
function
c43898403
.
filter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsDestructable
()
end
function
c43898403
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c43898403
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
c
hkc
:
IsDestructable
(
)
and
chkc
~=
e
:
GetHandler
()
end
if
chkc
then
return
chkc
:
IsOnField
()
and
c
43898403
.
filter
(
chkc
)
and
chkc
~=
e
:
GetHandler
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c43898403
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsDestructable
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
2
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectTarget
(
tp
,
c43898403
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
2
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
()
,
0
,
0
)
end
end
function
c43898403
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c43898403
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
sg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
end
end
c46066477.lua
View file @
0b68dc20
--
Performance Band Hurricane
--
エンタメ・バンド・ハリケーン
function
c46066477
.
initial_effect
(
c
)
function
c46066477
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_
DESTROY
)
e1
:
SetCategory
(
CATEGORY_
TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
46066477
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCountLimit
(
1
,
46066477
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetTarget
(
c46066477
.
target
)
e1
:
SetTarget
(
c46066477
.
target
)
e1
:
SetOperation
(
c46066477
.
activate
)
e1
:
SetOperation
(
c46066477
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c46066477
.
filter
(
c
)
return
c
:
IsAbleToHand
()
end
function
c46066477
.
cfilter
(
c
)
function
c46066477
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9f
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9f
)
end
end
function
c46066477
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c46066477
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToHand
()
end
if
chk
==
0
then
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c46066477
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c46066477
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
e
:
SetLabel
(
ct
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c46066477
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c46066477
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
ct
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
end
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
ct
,
nil
)
local
ct
=
e
:
GetLabel
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
local
sg
=
Duel
.
GetMatchingGroup
(
c46066477
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
c
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
sg
,
ct
,
0
,
0
)
end
end
function
c46066477
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c46066477
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c46066477
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
Duel
.
GetMatchingGroup
(
c46066477
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>=
ct
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
sg
=
g
:
Select
(
tp
,
1
,
ct
,
nil
)
Duel
.
HintSelection
(
sg
)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment