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
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
八宫一月
ygopro-scripts
Commits
084a91d2
Commit
084a91d2
authored
Apr 10, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (20/80)
parent
f92af55d
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
107 additions
and
123 deletions
+107
-123
c33656832.lua
c33656832.lua
+6
-10
c34079868.lua
c34079868.lua
+15
-10
c34379489.lua
c34379489.lua
+6
-5
c35191415.lua
c35191415.lua
+1
-2
c41546.lua
c41546.lua
+3
-3
c45591967.lua
c45591967.lua
+1
-5
c46035545.lua
c46035545.lua
+22
-23
c71696014.lua
c71696014.lua
+2
-2
c71863024.lua
c71863024.lua
+13
-11
c71985676.lua
c71985676.lua
+1
-0
c72318602.lua
c72318602.lua
+1
-1
c7268133.lua
c7268133.lua
+0
-2
c72708264.lua
c72708264.lua
+1
-14
c73534250.lua
c73534250.lua
+2
-2
c8384771.lua
c8384771.lua
+9
-10
c8706701.lua
c8706701.lua
+5
-3
c9106362.lua
c9106362.lua
+11
-2
c9929398.lua
c9929398.lua
+8
-18
No files found.
c33656832.lua
View file @
084a91d2
...
...
@@ -15,8 +15,8 @@ function c33656832.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_CHAIN_NEGATED
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
...
...
@@ -51,19 +51,15 @@ function c33656832.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
end
end
function
c33656832
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
function
c33656832
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
end
end
function
c33656832
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
then
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
then
Duel
.
MoveToField
(
e
:
GetHandler
(),
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
end
function
c33656832
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
function
c33656832
.
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
)
end
c34079868.lua
View file @
084a91d2
...
...
@@ -41,18 +41,20 @@ function c34079868.initial_effect(c)
e3
:
SetOperation
(
c34079868
.
operation
)
c
:
RegisterEffect
(
e3
)
end
function
c34079868
.
rfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0xc7
)
and
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsSetCard
,
1
,
c
,
0xda
)
end
function
c34079868
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
2
and
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsSetCard
,
1
,
nil
,
0xc7
)
and
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsSetCard
,
1
,
nil
,
0xda
)
and
Duel
.
CheckReleaseGroup
(
tp
,
c34079868
.
rfilter
,
1
,
nil
,
tp
)
end
function
c34079868
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g1
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsSetCard
,
1
,
1
,
nil
,
0xc7
)
local
g1
=
Duel
.
SelectReleaseGroup
(
tp
,
,
c34079868
.
rfilter
,
1
,
1
,
nil
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g2
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsSetCard
,
1
,
1
,
nil
,
0xda
)
local
g2
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsSetCard
,
1
,
1
,
g1
:
GetFirst
()
,
0xda
)
g1
:
Merge
(
g2
)
Duel
.
Release
(
g1
,
REASON_COST
)
end
...
...
@@ -77,23 +79,26 @@ end
function
c34079868
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
~=
tp
and
e
:
GetHandler
():
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
function
c34079868
.
spfilter
(
c
,
e
,
tp
,
set
)
return
c
:
IsSetCard
(
set
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
function
c34079868
.
spfilter1
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xc7
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
c34079868
.
spfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
c
,
e
,
tp
,
0xda
)
end
function
c34079868
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xda
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c34079868
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
IsExistingMatchingCard
(
c34079868
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
0xc7
)
and
Duel
.
IsExistingMatchingCard
(
c34079868
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
0xda
)
end
and
Duel
.
IsExistingMatchingCard
(
c34079868
.
spfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
tp
,
LOCATION_DECK
)
end
function
c34079868
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
2
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c34079868
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
0xc7
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c34079868
.
spfilter
1
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c34079868
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
0xda
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c34079868
.
spfilter
2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
g1
:
GetFirst
(),
e
,
tp
)
g1
:
Merge
(
g2
)
if
g1
:
GetCount
()
==
2
then
Duel
.
SpecialSummon
(
g1
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
c34379489.lua
View file @
084a91d2
...
...
@@ -15,13 +15,14 @@ function c34379489.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCondition
(
c34379489
.
con
)
e3
:
SetOperation
(
c34379489
.
op
)
e3
:
SetCondition
(
c34379489
.
con
dition
)
e3
:
SetOperation
(
c34379489
.
op
eration
)
c
:
RegisterEffect
(
e3
)
end
function
c34379489
.
filter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
not
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
and
not
c
:
IsReason
(
REASON_REPLACE
)
and
not
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c34379489
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c34379489
.
filter
,
1
,
nil
,
tp
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
...
...
@@ -33,10 +34,10 @@ end
function
c34379489
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_REPLACE
)
end
function
c34379489
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c34379489
.
con
dition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_EXTRA
)
end
function
c34379489
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c34379489
.
op
eration
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
...
...
c35191415.lua
View file @
084a91d2
...
...
@@ -66,8 +66,7 @@ end
function
c35191415
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c35191415
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c35191415
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
)
end
and
Duel
.
IsExistingTarget
(
c35191415
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c35191415
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
...
...
c41546.lua
View file @
084a91d2
...
...
@@ -19,7 +19,7 @@ function c41546.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
4154
6
)
e2
:
SetCountLimit
(
1
,
4154
7
)
e2
:
SetTarget
(
c41546
.
destg
)
e2
:
SetOperation
(
c41546
.
desop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -75,10 +75,10 @@ function c41546.desop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
end
Duel
.
SpecialSummonComplete
()
end
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
end
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
c45591967.lua
View file @
084a91d2
...
...
@@ -9,7 +9,6 @@ function c45591967.initial_effect(c)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCountLimit
(
1
,
45591967
)
e1
:
SetCondition
(
c45591967
.
dmcon
)
e1
:
SetCost
(
c45591967
.
dmcost
)
e1
:
SetTarget
(
c45591967
.
dmtg
)
e1
:
SetOperation
(
c45591967
.
dmop
)
...
...
@@ -29,10 +28,7 @@ function c45591967.initial_effect(c)
Duel
.
AddCustomActivityCounter
(
45591967
,
ACTIVITY_SPSUMMON
,
c45591967
.
counterfilter
)
end
function
c45591967
.
counterfilter
(
c
)
return
not
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
end
function
c45591967
.
dmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
return
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_PENDULUM
)
~=
SUMMON_TYPE_PENDULUM
end
function
c45591967
.
dmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
45591967
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
...
...
c46035545.lua
View file @
084a91d2
...
...
@@ -11,7 +11,7 @@ function c46035545.initial_effect(c)
e1
:
SetCondition
(
aux
.
nfbdncon
)
e1
:
SetTarget
(
c46035545
.
splimit
)
c
:
RegisterEffect
(
e1
)
--
Increase
--
atk up
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
46035545
,
0
))
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
...
...
@@ -24,16 +24,16 @@ function c46035545.initial_effect(c)
e2
:
SetOperation
(
c46035545
.
atkop
)
c
:
RegisterEffect
(
e2
)
--
local
e
6
=
Effect
.
CreateEffect
(
c
)
e
6
:
SetCategory
(
CATEGORY_TOHAND
)
e
6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e
6
:
SetCode
(
EVENT_DESTROYED
)
e
6
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e
6
:
SetCountLimit
(
1
,
46035545
)
e
6
:
SetCondition
(
c46035545
.
thcon
)
e
6
:
SetTarget
(
c46035545
.
thtg
)
e
6
:
SetOperation
(
c46035545
.
thop
)
c
:
RegisterEffect
(
e
6
)
local
e
3
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetCategory
(
CATEGORY_TOHAND
)
e
3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e
3
:
SetCode
(
EVENT_DESTROYED
)
e
3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e
3
:
SetCountLimit
(
1
,
46035545
)
e
3
:
SetCondition
(
c46035545
.
thcon
)
e
3
:
SetTarget
(
c46035545
.
thtg
)
e
3
:
SetOperation
(
c46035545
.
thop
)
c
:
RegisterEffect
(
e
3
)
end
function
c46035545
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
return
not
c
:
IsSetCard
(
0xaf
)
and
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
...
...
@@ -74,31 +74,30 @@ function c46035545.thcon(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
and
(
c
:
GetPreviousSequence
()
==
6
or
c
:
GetPreviousSequence
()
==
7
)
end
function
c46035545
.
thfilter
1
(
c
)
function
c46035545
.
thfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10af
)
and
c
:
IsAbleToHand
()
end
function
c46035545
.
thfilter2
(
c
)
function
c46035545
.
pfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xaf
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
end
function
c46035545
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c46035545
.
thfilter
1
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c46035545
.
thfilter
1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c46035545
.
thfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c46035545
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
and
Duel
.
IsExistingMatchingCard
(
c46035545
.
thfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c46035545
.
pfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c46035545
.
thfilter
1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c46035545
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
function
c46035545
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
then
local
ct
=
0
if
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
then
ct
=
ct
+
1
end
if
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
then
ct
=
ct
+
1
end
if
ct
==
0
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
>
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c46035545
.
thfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
ct
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c46035545
.
pfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
ct
,
nil
)
local
pc
=
g
:
GetFirst
()
while
pc
do
Duel
.
MoveToField
(
pc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
...
...
c71696014.lua
View file @
084a91d2
...
...
@@ -49,8 +49,8 @@ function c71696014.filter(c,e,tp)
return
c
:
IsCode
(
46986414
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c71696014
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c71696014
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c71696014
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c71696014
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c71863024.lua
View file @
084a91d2
...
...
@@ -33,19 +33,20 @@ function c71863024.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c71863024
.
atkfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9f
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9f
)
and
c
:
GetAttack
()
>
0
end
function
c71863024
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
c71863024
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPPO
)
local
g
1
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
e
:
SetLabelObject
(
g
1
:
GetFirst
())
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
e
:
SetLabelObject
(
g
:
GetFirst
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SELF
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c71863024
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c71863024
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c71863024
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
hc
=
e
:
GetLabelObject
()
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tc
=
g
:
GetFirst
()
...
...
@@ -71,14 +72,14 @@ function c71863024.hspcon(e,c)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
<=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
end
function
c71863024
.
atktg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPPO
)
local
g
1
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
e
:
SetLabelObject
(
g
1
:
GetFirst
())
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
e
:
SetLabelObject
(
g
:
GetFirst
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SELF
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c71863024
.
atkop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
@@ -86,14 +87,15 @@ function c71863024.atkop2(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tc
=
g
:
GetFirst
()
if
tc
==
hc
then
tc
=
g
:
GetNext
()
end
if
hc
:
IsFaceup
()
and
hc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelat
eToEffect
(
e
)
then
if
hc
:
IsFaceup
()
and
hc
:
IsRelateToEffect
(
e
)
and
not
hc
:
IsImmun
eToEffect
(
e
)
then
local
atk
=
c
:
GetAttack
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
atk
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
if
hc
:
RegisterEffect
(
e1
)
then
hc
:
RegisterEffect
(
e1
)
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
c71985676.lua
View file @
084a91d2
...
...
@@ -43,6 +43,7 @@ function c71985676.dmop(e,tp,eg,ep,ev,re,r,rp)
end
function
c71985676
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
Duel
.
ChangeBattleDamage
(
1
-
tp
,
0
)
end
function
c71985676
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
...
...
c72318602.lua
View file @
084a91d2
...
...
@@ -11,7 +11,7 @@ function c72318602.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c72318602
.
filter
(
c
)
return
c
:
Is
SetCard
(
0x1045
)
and
c
:
IsFaceup
(
)
return
c
:
Is
Faceup
()
and
c
:
IsSetCard
(
0x1045
)
end
function
c72318602
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
Duel
.
IsExistingMatchingCard
(
c72318602
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
...
c7268133.lua
View file @
084a91d2
...
...
@@ -53,7 +53,6 @@ function c7268133.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ATKCHANGE
,
g
,
1
,
0
,
0
)
end
function
c7268133
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
@@ -61,7 +60,6 @@ function c7268133.atkop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
1000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
...
...
c72708264.lua
View file @
084a91d2
...
...
@@ -10,22 +10,9 @@ function c72708264.initial_effect(c)
e1
:
SetCost
(
c72708264
.
copycost
)
e1
:
SetOperation
(
c72708264
.
copyop
)
c
:
RegisterEffect
(
e1
)
if
not
c72708264
.
global_check
then
c72708264
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
ge1
:
SetLabel
(
72708264
)
ge1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
ge1
:
SetOperation
(
aux
.
sumreg
)
Duel
.
RegisterEffect
(
ge1
,
0
)
local
ge2
=
ge1
:
Clone
()
ge2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
Duel
.
RegisterEffect
(
ge2
,
0
)
end
end
function
c72708264
.
copycon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
72708264
)
>
0
return
e
:
GetHandler
():
IsStatus
(
STATUS_SUMMON_TURN
+
STATUS_SPSUMMON_TURN
)
end
function
c72708264
.
costfilter
(
c
)
return
c
:
IsSetCard
(
0x99
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGraveAsCost
()
...
...
c73534250.lua
View file @
084a91d2
...
...
@@ -43,6 +43,7 @@ function c73534250.spop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e2
)
Duel
.
SpecialSummonComplete
()
end
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
@@ -52,7 +53,6 @@ function c73534250.spop(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetTarget
(
c73534250
.
splimit
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
SpecialSummonComplete
()
end
function
c73534250
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
c
:
IsSetCard
(
0x33
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
...
...
c8384771.lua
View file @
084a91d2
--EMゴムゴムートン
function
c8384771
.
initial_effect
(
c
)
aux
.
EnablePendulumAttribute
(
c
)
--
P.Zone
--
indes
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetCondition
(
c8384771
.
con
)
e1
:
SetTarget
(
c8384771
.
t
g
)
e1
:
SetOperation
(
c8384771
.
op1
)
e1
:
SetCondition
(
c8384771
.
con
dition
)
e1
:
SetTarget
(
c8384771
.
t
arget
)
e1
:
SetOperation
(
c8384771
.
op
eration
1
)
c
:
RegisterEffect
(
e1
)
--M.Zone
local
e2
=
e1
:
Clone
()
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetOperation
(
c8384771
.
op2
)
e2
:
SetOperation
(
c8384771
.
op
eration
2
)
c
:
RegisterEffect
(
e2
)
end
function
c8384771
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8384771
.
con
dition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
if
not
d
or
a
:
GetControler
()
==
d
:
GetControler
()
then
return
false
end
if
a
:
IsControler
(
tp
)
then
e
:
SetLabelObject
(
a
)
else
e
:
SetLabelObject
(
d
)
end
return
true
end
function
c8384771
.
t
g
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c8384771
.
t
arget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetTargetCard
(
e
:
GetLabelObject
())
end
function
c8384771
.
op1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8384771
.
op
eration
1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
...
...
@@ -40,7 +39,7 @@ function c8384771.op1(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
)
end
end
function
c8384771
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8384771
.
op
eration
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c8706701.lua
View file @
084a91d2
...
...
@@ -17,10 +17,10 @@ function c8706701.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCountLimit
(
1
,
8706702
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCondition
(
c8706701
.
thcon
)
e2
:
SetTarget
(
c8706701
.
thtg
)
e2
:
SetOperation
(
c8706701
.
thop
)
...
...
@@ -50,9 +50,11 @@ function c8706701.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
function
c8706701
.
cfilter
(
c
,
tp
)
return
c
:
GetSummonType
()
==
SUMMON_TYPE_SYNCHRO
and
c
:
GetSummonPlayer
()
==
tp
end
function
c8706701
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
eg
:
GetFirst
()
return
ec
:
GetSummonType
()
==
SUMMON_TYPE_SYNCHRO
and
ec
:
GetSummonPlayer
()
==
tp
and
aux
.
exccon
(
e
)
return
eg
:
IsExists
(
c8706701
.
cfilter
,
1
,
nil
)
and
aux
.
exccon
(
e
)
end
function
c8706701
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
...
...
c9106362.lua
View file @
084a91d2
...
...
@@ -9,18 +9,19 @@ function c9106362.initial_effect(c)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c9106362
.
dmcon1
)
e1
:
SetOperation
(
c9106362
.
dmop
)
e1
:
SetOperation
(
c9106362
.
dmop
1
)
c
:
RegisterEffect
(
e1
)
--Negate damage (monster)
local
e2
=
e1
:
Clone
()
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
c9106362
.
dmcon2
)
e2
:
SetOperation
(
c9106362
.
dmop2
)
c
:
RegisterEffect
(
e2
)
end
function
c9106362
.
dmcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
end
function
c9106362
.
dmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9106362
.
dmop
1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -37,3 +38,11 @@ function c9106362.dmcon2(e,tp,eg,ep,ev,re,r,rp)
local
d
=
Duel
.
GetAttackTarget
()
return
d
and
a
:
GetControler
()
~=
d
:
GetControler
()
end
function
c9106362
.
dmop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetOperation
(
c9106362
.
damop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
c9929398.lua
View file @
084a91d2
...
...
@@ -5,7 +5,7 @@ function c9929398.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
c9929398
.
spcon
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -26,7 +26,6 @@ function c9929398.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCost
(
c9929398
.
cost
)
e3
:
SetTarget
(
c9929398
.
target
)
e3
:
SetOperation
(
c9929398
.
operation
)
c
:
RegisterEffect
(
e3
)
...
...
@@ -56,7 +55,6 @@ function c9929398.tknop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
token
:
RegisterEffect
(
e1
,
true
)
...
...
@@ -73,31 +71,23 @@ end
function
c9929398
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
not
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAbleToRemoveAsCost
()
end
function
c9929398
.
spfilter
(
c
,
e
,
tp
)
function
c9929398
.
spfilter
(
c
,
e
,
tp
,
ct
)
local
rlv
=
c
:
GetLevel
()
-
e
:
GetHandler
():
GetLevel
()
if
rlv
<
1
then
return
false
end
local
rg
=
Duel
.
GetMatchingGroup
(
c9929398
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
e
:
GetHandler
())
return
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsSetCard
(
0x33
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
rg
:
CheckWithSumEqual
(
Card
.
GetLevel
,
rlv
,
1
,
63
)
end
function
c9929398
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
100
)
if
chk
==
0
then
return
true
end
and
rg
:
CheckWithSumEqual
(
Card
.
GetLevel
,
rlv
,
ct
,
63
)
end
function
c9929398
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
2
and
Duel
.
IsExistingTarget
(
c9929398
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
local
ct
=-
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
and
Duel
.
IsExistingTarget
(
c9929398
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
ct
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c9929398
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c9929398
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
ct
)
local
rlv
=
g
:
GetFirst
():
GetLevel
()
-
e
:
GetHandler
():
GetLevel
()
local
rg
=
Duel
.
GetMatchingGroup
(
c9929398
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
e
:
GetHandler
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g2
=
rg
:
SelectWithSumEqual
(
tp
,
Card
.
GetLevel
,
rlv
,
1
,
63
)
local
g2
=
rg
:
SelectWithSumEqual
(
tp
,
Card
.
GetLevel
,
rlv
,
ct
,
63
)
g2
:
AddCard
(
e
:
GetHandler
())
Duel
.
Remove
(
g2
,
POS_FACEUP
,
REASON_COST
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
...
...
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