Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
REIKAI
ygopro
Commits
36ce8ec7
Commit
36ce8ec7
authored
Apr 26, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
71075f6d
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
90 additions
and
93 deletions
+90
-93
script/c17016362.lua
script/c17016362.lua
+5
-4
script/c18239909.lua
script/c18239909.lua
+17
-11
script/c19355597.lua
script/c19355597.lua
+7
-8
script/c39980304.lua
script/c39980304.lua
+2
-7
script/c43383478.lua
script/c43383478.lua
+13
-16
script/c44405066.lua
script/c44405066.lua
+1
-0
script/c45349196.lua
script/c45349196.lua
+1
-4
script/c45627618.lua
script/c45627618.lua
+10
-9
script/c46502744.lua
script/c46502744.lua
+5
-0
script/c57624336.lua
script/c57624336.lua
+3
-2
script/c6172122.lua
script/c6172122.lua
+4
-13
script/c71612253.lua
script/c71612253.lua
+1
-3
script/c7394770.lua
script/c7394770.lua
+15
-12
script/c79777187.lua
script/c79777187.lua
+6
-4
No files found.
script/c17016362.lua
View file @
36ce8ec7
...
...
@@ -47,13 +47,14 @@ function c17016362.mtcost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
c17016362
.
mtfilter
(
c
)
return
c
:
Is
AttackPos
(
)
and
c
:
IsDestructable
()
and
not
c
:
IsHasEffect
(
EFFECT_EXTRA_ATTACK
)
return
c
:
Is
Position
(
POS_FACEUP_ATTACK
)
and
c
:
IsDestructable
()
and
not
c
:
IsHasEffect
(
EFFECT_EXTRA_ATTACK
)
end
function
c17016362
.
mttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c17016362
.
mtfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c17016362
.
mtfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
())
end
local
turnp
=
Duel
.
GetTurnPlayer
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
turnp
)
and
c17016362
.
mtfilter
(
chkc
)
and
chkc
~=
e
:
GetHandler
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c17016362
.
mtfilter
,
turnp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c17016362
.
mtfilter
,
t
p
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SelectTarget
(
tp
,
c17016362
.
mtfilter
,
t
urnp
,
LOCATION_MZONE
,
0
,
1
,
1
,
e
:
GetHandler
())
end
function
c17016362
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
script/c18239909.lua
View file @
36ce8ec7
...
...
@@ -27,21 +27,20 @@ function c18239909.initial_effect(c)
end
function
c18239909
.
tgfilter
(
c
)
if
c
:
IsLocation
(
LOCATION_MZONE
)
then
return
c
:
IsType
(
TYPE_PENDULUM
)
else
if
c
:
IsLocation
(
LOCATION_SZONE
)
then
return
c
:
Is
Faceup
()
and
c
:
Is
Type
(
TYPE_PENDULUM
)
else
return
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
end
return
false
end
function
c18239909
.
desfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
18239909
.
tgfilter
(
c
)
and
c
:
IsDestructable
()
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
function
c18239909
.
desfilter
(
c
)
return
c18239909
.
tgfilter
(
c
)
and
c
:
IsDestructable
()
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
0
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
end
function
c18239909
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
c18239909
.
desfilter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c18239909
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
,
tp
)
end
if
chkc
then
return
chkc
:
IsOnField
()
and
c18239909
.
desfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c18239909
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c18239909
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c18239909
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
0
,
LOCATION_ONFIELD
)
end
...
...
@@ -67,7 +66,14 @@ function c18239909.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
,
c18239909
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENCE
)
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENCE
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetValue
(
1
)
tc
:
RegisterEffect
(
e1
)
end
end
script/c19355597.lua
View file @
36ce8ec7
...
...
@@ -24,26 +24,25 @@ end
function
c19355597
.
splimit
(
e
,
se
,
sp
,
st
)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
or
bit
.
band
(
st
,
SUMMON_TYPE_FUSION
)
==
SUMMON_TYPE_FUSION
end
function
c19355597
.
tgfilter
(
c
,
e
,
tp
)
function
c19355597
.
tgfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1047
)
and
Duel
.
IsExistingMatchingCard
(
c19355597
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
function
c19355597
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x1047
)
and
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
function
c19355597
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c19355597
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c19355597
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c19355597
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
c19355597
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c19355597
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c19355597
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc
=
tg
:
GetFirst
()
local
g
=
Duel
.
GetMatchingGroup
(
c19355597
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
)
if
tc
and
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
g
:
GetCount
()
>
0
then
if
tc
and
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SpecialSummon
(
s
g
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c19355597
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
script/c39980304.lua
View file @
36ce8ec7
...
...
@@ -38,17 +38,12 @@ end
function
c39980304
.
chain_target
(
e
,
te
,
tp
)
return
Duel
.
GetMatchingGroup
(
c39980304
.
filter
,
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
+
LOCATION_HAND
+
LOCATION_DECK
,
0
,
nil
,
te
)
end
function
c39980304
.
chain_operation
(
e
,
te
,
tp
,
tc
,
mat
,
sumtype
,
step
)
function
c39980304
.
chain_operation
(
e
,
te
,
tp
,
tc
,
mat
,
sumtype
)
if
not
sumtype
then
sumtype
=
SUMMON_TYPE_FUSION
end
if
not
step
then
step
=
false
end
tc
:
SetMaterial
(
mat
)
Duel
.
Remove
(
mat
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
if
step
then
Duel
.
SpecialSummonStep
(
tc
,
sumtype
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
else
Duel
.
SpecialSummon
(
tc
,
sumtype
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
Duel
.
SpecialSummon
(
tc
,
sumtype
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
tc
:
RegisterFlagEffect
(
39980304
,
RESET_EVENT
+
0x1fc0000
+
RESET_PHASE
+
RESET_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetOwnerPlayer
(
tp
)
...
...
script/c43383478.lua
View file @
36ce8ec7
...
...
@@ -22,33 +22,34 @@ function c43383478.initial_effect(c)
end
function
c43383478
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
local
p1
=
false
local
p2
=
false
while
tc
do
if
tc
:
IsSetCard
(
0xba
)
and
tc
:
IsType
(
TYPE_XYZ
)
and
tc
:
IsReason
(
REASON_DESTROY
)
then
if
tc
:
IsControler
(
0
)
then
Duel
.
RegisterFlagEffect
(
0
,
43383478
,
RESET_PHASE
+
RESET_END
,
0
,
1
)
elseif
tc
:
IsControler
(
1
)
then
Duel
.
RegisterFlagEffect
(
1
,
43383478
,
RESET_PHASE
+
RESET_END
,
0
,
1
)
end
if
tc
:
IsSetCard
(
0xba
)
and
tc
:
IsType
(
TYPE_XYZ
)
and
tc
:
IsReason
(
REASON_DESTROY
)
then
if
tc
:
GetPreviousControler
()
==
0
then
p1
=
true
else
p2
=
true
end
end
tc
=
eg
:
GetNext
()
end
if
p1
then
Duel
.
RegisterFlagEffect
(
0
,
43383478
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
if
p2
then
Duel
.
RegisterFlagEffect
(
1
,
43383478
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c43383478
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFlagEffect
(
tp
,
43383478
)
~=
0
end
function
c43383478
.
filter1
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xba
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
c43383478
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetRank
(),
c
)
and
Duel
.
IsExistingMatchingCard
(
c43383478
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
,
c
:
GetRank
()
+
1
)
end
function
c43383478
.
filter2
(
c
,
e
,
tp
,
rk
,
mc
)
return
c
:
GetRank
()
==
rk
+
1
and
c
:
IsSetCard
(
0xba
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
function
c43383478
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
)
return
c
:
GetRank
()
==
rk
and
c
:
IsSetCard
(
0xba
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
function
c43383478
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c43383478
.
filter1
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
IsPlayerCanSpecialSummonCount
(
tp
,
2
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c43383478
.
filter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c43383478
.
filter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
...
...
@@ -58,13 +59,9 @@ function c43383478.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsImmuneToEffect
(
e
)
then
return
end
if
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c43383478
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
:
GetRank
(),
tc
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c43383478
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
,
tc
:
GetRank
()
+
1
)
local
sc
=
g
:
GetFirst
()
if
sc
then
local
mg
=
tc
:
GetOverlayGroup
()
if
mg
:
GetCount
()
~=
0
then
Duel
.
Overlay
(
sc
,
mg
)
end
Duel
.
Overlay
(
sc
,
Group
.
FromCards
(
tc
))
Duel
.
SpecialSummon
(
sc
,
SUMMON_TYPE_XYZ
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
sc
:
CompleteProcedure
()
...
...
script/c44405066.lua
View file @
36ce8ec7
...
...
@@ -51,6 +51,7 @@ function c44405066.damcon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
GetOverlayCount
()
>
0
and
ep
~=
tp
and
c
:
GetFlagEffect
(
44405066
)
~=
0
end
function
c44405066
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
44405066
)
Duel
.
Damage
(
1
-
tp
,
500
,
REASON_EFFECT
)
end
function
c44405066
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c45349196.lua
View file @
36ce8ec7
...
...
@@ -52,15 +52,12 @@ function c45349196.damtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c45349196
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
atk
=
g
:
GetFirst
():
GetBaseAttack
()
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
atk
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
atk
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
end
function
c45349196
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
tc
=
Duel
.
GetFirstTarget
()
if
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
~=
0
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Damage
(
1
-
tp
,
tc
:
GetBaseAttack
(),
REASON_EFFECT
)
~=
0
then
Duel
.
BreakEffect
()
Duel
.
SendtoDeck
(
tc
,
nil
,
2
,
REASON_EFFECT
)
end
...
...
script/c45627618.lua
View file @
36ce8ec7
...
...
@@ -41,13 +41,13 @@ end
c45627618
.
pendulum_level
=
7
function
c45627618
.
pctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
13
-
seq
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
13
-
seq
)
==
nil
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
TYPE_PENDULUM
)
end
end
function
c45627618
.
pcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
seq
=
e
:
GetHandler
():
GetSequence
()
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
13
-
seq
)
then
return
end
if
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
13
-
seq
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsType
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
TYPE_PENDULUM
)
if
g
:
GetCount
()
>
0
then
...
...
@@ -64,8 +64,6 @@ function c45627618.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
GetMatchingGroup
(
c45627618
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
g
:
GetCount
()
*
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
g
:
GetCount
()
*
1000
)
end
function
c45627618
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -76,7 +74,7 @@ function c45627618.desop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e1
:
SetValue
(
3
)
e1
:
SetValue
(
2
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
c
:
RegisterEffect
(
e1
)
end
...
...
@@ -85,6 +83,8 @@ function c45627618.valcheck(e,c)
local
g
=
c
:
GetMaterial
()
if
g
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_XYZ
)
then
e
:
GetLabelObject
():
SetLabel
(
1
)
else
e
:
GetLabelObject
():
SetLabel
(
0
)
end
end
function
c45627618
.
pencon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -93,14 +93,15 @@ end
function
c45627618
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lsc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
6
)
local
rsc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
7
)
local
g
=
Group
.
FromCards
(
lsc
,
rsc
)
local
g
=
Group
.
FromCards
(
lsc
,
rsc
)
:
Filter
(
Card
.
IsDestructable
,
nil
)
if
chk
==
0
then
return
g
:
GetCount
()
>
0
end
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c45627618
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
g
:
GetCount
()
>
0
and
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
then
local
lsc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
6
)
local
rsc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
7
)
local
g
=
Group
.
FromCards
(
lsc
,
rsc
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
then
Duel
.
MoveToField
(
e
:
GetHandler
(),
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
end
script/c46502744.lua
View file @
36ce8ec7
...
...
@@ -7,6 +7,7 @@ function c46502744.initial_effect(c)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
c46502744
.
spcon
)
e1
:
SetCost
(
c46502744
.
spcost
)
e1
:
SetTarget
(
c46502744
.
sptg
)
e1
:
SetOperation
(
c46502744
.
spop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -34,6 +35,10 @@ end
function
c46502744
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasCategory
(
CATEGORY_SPECIAL_SUMMON
)
end
function
c46502744
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
46502744
)
==
0
end
e
:
GetHandler
():
RegisterFlagEffect
(
46502744
,
RESET_CHAIN
,
0
,
1
)
end
function
c46502744
.
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
...
...
script/c57624336.lua
View file @
36ce8ec7
...
...
@@ -38,7 +38,8 @@ function c57624336.destg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
and
Duel
.
IsExistingTarget
(
c57624336
.
filter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c57624336
.
filter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
g
:
AddCard
(
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
end
function
c57624336
.
desop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
...
...
@@ -53,7 +54,7 @@ function c57624336.descost2(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c57624336
.
destg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsDestructable
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
()
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsDestructable
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
...
...
script/c6172122.lua
View file @
36ce8ec7
...
...
@@ -33,11 +33,8 @@ function c6172122.filter1(c,e)
return
c
:
IsCanBeFusionMaterial
()
and
c
:
IsAbleToGrave
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
function
c6172122
.
filter2
(
c
,
e
,
tp
,
m
,
f
,
chkf
)
return
c
:
IsType
(
TYPE_FUSION
)
and
(
c
:
IsSetCard
(
0x104
)
or
c
:
IsCode
(
11901678
)
or
c
:
IsCode
(
90660762
))
and
(
not
f
or
f
(
c
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
m
:
IsExists
(
c6172122
.
filter3
,
1
,
nil
,
c
,
m
,
chkf
)
end
function
c6172122
.
filter3
(
c
,
fusc
,
m
,
chkf
)
return
c
:
IsSetCard
(
0x3b
)
and
fusc
:
CheckFusionMaterial
(
m
,
c
,
chkf
)
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsSetCard
(
0x104
)
and
(
not
f
or
f
(
c
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
end
function
c6172122
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
...
...
@@ -77,19 +74,13 @@ function c6172122.activate(e,tp,eg,ep,ev,re,r,rp)
local
tg
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
tg
:
GetFirst
()
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
local
gc
=
mg1
:
FilterSelect
(
tp
,
c6172122
.
filter3
,
1
,
1
,
nil
,
tc
,
mg1
,
chkf
):
GetFirst
()
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
gc
,
chkf
)
mat1
:
AddCard
(
gc
)
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
nil
,
chkf
)
tc
:
SetMaterial
(
mat1
)
Duel
.
SendtoGrave
(
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
local
gc
=
mg2
:
FilterSelect
(
tp
,
c6172122
.
filter3
,
1
,
1
,
nil
,
tc
,
mg2
,
chkf
):
GetFirst
()
local
mat2
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg2
,
gc
,
chkf
)
mat2
:
AddCard
(
gc
)
local
mat2
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg2
,
nil
,
chkf
)
local
fop
=
ce
:
GetOperation
()
fop
(
ce
,
e
,
tp
,
tc
,
mat2
)
end
...
...
script/c71612253.lua
View file @
36ce8ec7
...
...
@@ -56,13 +56,11 @@ function c71612253.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
1000
)
end
function
c71612253
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsType
(
TYPE_MONSTER
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsType
(
TYPE_MONSTER
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
script/c7394770.lua
View file @
36ce8ec7
...
...
@@ -24,6 +24,7 @@ function c7394770.initial_effect(c)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
c7394770
.
atkcon
)
e3
:
SetCost
(
c7394770
.
atkcost
)
e3
:
SetTarget
(
c7394770
.
atktg
)
e3
:
SetOperation
(
c7394770
.
atkop
)
c
:
RegisterEffect
(
e3
)
end
...
...
@@ -72,27 +73,26 @@ function c7394770.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
tg
:
GetFirst
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetValue
(
0
)
e1
:
SetReset
(
RESET_EVENT
+
0xfe0000
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_DEFENCE
)
tc
:
RegisterEffect
(
e2
)
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
nil
,
chkf
)
tc
:
SetMaterial
(
mat1
)
Duel
.
SendtoGrave
(
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
Step
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
else
local
mat2
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg2
,
nil
,
chkf
)
local
fop
=
ce
:
GetOperation
()
fop
(
ce
,
e
,
tp
,
tc
,
mat2
,
nil
,
true
)
fop
(
ce
,
e
,
tp
,
tc
,
mat2
)
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetValue
(
0
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_DEFENCE
)
tc
:
RegisterEffect
(
e2
)
Duel
.
SpecialSummonComplete
()
tc
:
CompleteProcedure
()
e
:
GetHandler
():
SetCardTarget
(
tc
)
end
...
...
@@ -113,6 +113,9 @@ function c7394770.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c7394770
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
c7394770
.
cfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
)
end
function
c7394770
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetFirstCardTarget
()
end
end
function
c7394770
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
e
:
GetHandler
():
GetFirstCardTarget
()
...
...
script/c79777187.lua
View file @
36ce8ec7
...
...
@@ -22,6 +22,9 @@ function c79777187.initial_effect(c)
e3
:
SetTarget
(
c79777187
.
reptg
)
e3
:
SetValue
(
c79777187
.
repval
)
c
:
RegisterEffect
(
e3
)
local
g
=
Group
.
CreateGroup
()
g
:
KeepAlive
()
e3
:
SetLabelObject
(
g
)
end
function
c79777187
.
target
(
e
,
c
)
return
c
:
IsSetCard
(
0xc6
)
or
c
:
IsSetCard
(
0x9f
)
...
...
@@ -32,15 +35,14 @@ function c79777187.repfilter(c,tp)
end
function
c79777187
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c79777187
.
repfilter
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_CARD
,
0
,
79777187
)
local
g
=
eg
:
Filter
(
c79777187
.
repfilter
,
nil
,
tp
)
e
:
SetLabelObject
(
g
)
local
tc
=
g
:
GetFirst
()
while
tc
do
tc
:
RegisterFlagEffect
(
79777187
,
RESET_EVENT
+
0x1f
e
0000
+
RESET_PHASE
+
RESET_END
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
79777187
,
0
))
tc
:
RegisterFlagEffect
(
79777187
,
RESET_EVENT
+
0x1f
c
0000
+
RESET_PHASE
+
RESET_END
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
79777187
,
0
))
tc
=
g
:
GetNext
()
end
g
:
KeepAlive
()
e
:
GetLabelObject
():
Clear
()
e
:
GetLabelObject
():
Merge
(
g
)
return
true
end
function
c79777187
.
repval
(
e
,
c
)
...
...
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