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
88176637
Commit
88176637
authored
Jan 23, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (4/4)
parent
9d7bceea
Changes
28
Show whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
112 additions
and
98 deletions
+112
-98
c10194329.lua
c10194329.lua
+1
-1
c10971759.lua
c10971759.lua
+1
-1
c11193246.lua
c11193246.lua
+6
-10
c11317977.lua
c11317977.lua
+3
-4
c11439455.lua
c11439455.lua
+12
-15
c11493868.lua
c11493868.lua
+2
-2
c12215894.lua
c12215894.lua
+1
-0
c12255007.lua
c12255007.lua
+3
-3
c12615446.lua
c12615446.lua
+2
-3
c13048472.lua
c13048472.lua
+2
-1
c23160024.lua
c23160024.lua
+2
-2
c23338098.lua
c23338098.lua
+2
-3
c24382602.lua
c24382602.lua
+10
-6
c25494711.lua
c25494711.lua
+1
-6
c31733941.lua
c31733941.lua
+1
-1
c45467446.lua
c45467446.lua
+7
-0
c45644898.lua
c45644898.lua
+6
-6
c46253216.lua
c46253216.lua
+1
-1
c48427163.lua
c48427163.lua
+1
-1
c50371210.lua
c50371210.lua
+3
-1
c50554729.lua
c50554729.lua
+15
-8
c50954680.lua
c50954680.lua
+1
-2
c59640711.lua
c59640711.lua
+2
-2
c59762399.lua
c59762399.lua
+1
-1
c62015408.lua
c62015408.lua
+8
-1
c6283472.lua
c6283472.lua
+1
-1
c62893810.lua
c62893810.lua
+13
-12
c63737050.lua
c63737050.lua
+4
-4
No files found.
c10194329.lua
View file @
88176637
...
@@ -14,7 +14,7 @@ function c10194329.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c10194329.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c10194329
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10194329
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
tp
and
(
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
or
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
)
return
ep
==
tp
and
bit
.
band
(
r
,
REASON_BATTLE
+
REASON_EFFECT
)
~=
0
end
end
function
c10194329
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10194329
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
c10971759.lua
View file @
88176637
...
@@ -68,7 +68,7 @@ function c10971759.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -68,7 +68,7 @@ function c10971759.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
end
function
c10971759
.
filter
(
c
)
function
c10971759
.
filter
(
c
)
return
c
:
GetLevel
()
==
3
and
c
:
IsRace
(
RACE_INSECT
)
and
c
:
IsFaceup
(
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
==
3
and
c
:
IsRace
(
RACE_INSECT
)
end
end
function
c10971759
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10971759
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c10971759
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c10971759
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
...
...
c11193246.lua
View file @
88176637
--月光輪廻舞踊
--月光輪廻舞踊
function
c11193246
.
initial_effect
(
c
)
function
c11193246
.
initial_effect
(
c
)
Duel
.
EnableGlobalFlag
(
GLOBALFLAG_DELAYED_QUICKEFFECT
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_DESTROYED
)
e1
:
SetCode
(
EVENT_DESTROYED
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
11193246
)
e1
:
SetCountLimit
(
1
,
11193246
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCondition
(
c11193246
.
condition
)
e1
:
SetCondition
(
c11193246
.
condition
)
e1
:
SetTarget
(
c11193246
.
target
)
e1
:
SetTarget
(
c11193246
.
target
)
e1
:
SetOperation
(
c11193246
.
operation
)
e1
:
SetOperation
(
c11193246
.
operation
)
...
@@ -26,15 +27,10 @@ function c11193246.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -26,15 +27,10 @@ function c11193246.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c11193246
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c11193246
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c11193246
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
g
:
GetCount
()
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg1
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c11193246
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
2
,
nil
)
if
g
:
GetCount
()
>=
2
and
Duel
.
SelectYesNo
(
tp
,
210
)
then
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
local
sg2
=
g
:
Select
(
tp
,
1
,
1
,
sg1
:
GetFirst
())
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
sg1
:
Merge
(
sg2
)
end
end
Duel
.
SendtoHand
(
sg1
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg1
)
end
end
c11317977.lua
View file @
88176637
...
@@ -4,7 +4,6 @@ function c11317977.initial_effect(c)
...
@@ -4,7 +4,6 @@ function c11317977.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
11317977
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
11317977
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCost
(
c11317977
.
cost
)
e1
:
SetCost
(
c11317977
.
cost
)
...
@@ -39,7 +38,7 @@ end
...
@@ -39,7 +38,7 @@ end
function
c11317977
.
thfilter
(
c
)
function
c11317977
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xdf
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
11317977
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0xdf
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
11317977
)
and
c
:
IsAbleToHand
()
end
end
function
c11317977
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c11317977
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c11317977
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c11317977
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
end
...
@@ -52,7 +51,7 @@ function c11317977.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,7 +51,7 @@ function c11317977.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c11317977
.
scfilter
(
c
)
function
c11317977
.
scfilter
(
c
)
return
c
:
GetCode
()
==
24094653
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
24094653
)
and
c
:
IsAbleToHand
()
end
end
function
c11317977
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c11317977
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c11317977
.
scfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c11317977
.
scfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
@@ -75,7 +74,7 @@ function c11317977.thfilter2(c)
...
@@ -75,7 +74,7 @@ function c11317977.thfilter2(c)
end
end
function
c11317977
.
thtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c11317977
.
thtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c11317977
.
thfilter2
,
tp
,
LOCATION_GRAVE
+
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c11317977
.
thfilter2
,
tp
,
LOCATION_GRAVE
+
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_EXTRA
)
end
end
function
c11317977
.
thop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c11317977
.
thop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
c11439455.lua
View file @
88176637
...
@@ -18,19 +18,19 @@ function c11439455.initial_effect(c)
...
@@ -18,19 +18,19 @@ function c11439455.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_DESTROYED
)
e3
:
SetCode
(
EVENT_DESTROYED
)
e3
:
SetCondition
(
c11439455
.
spcon
2
)
e3
:
SetCondition
(
c11439455
.
spcon
)
e3
:
SetTarget
(
c11439455
.
sptg
2
)
e3
:
SetTarget
(
c11439455
.
sptg
)
e3
:
SetOperation
(
c11439455
.
spop
2
)
e3
:
SetOperation
(
c11439455
.
spop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c11439455
.
atkfil
(
c
)
function
c11439455
.
atkfil
ter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xdf
)
and
not
c
:
IsCode
(
11439455
)
and
c
:
IsAttackAbove
(
0
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xdf
)
and
not
c
:
IsCode
(
11439455
)
end
end
function
c11439455
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c11439455
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c11439455
.
atkfil
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c11439455
.
atkfil
ter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c11439455
.
atkfil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c11439455
.
atkfil
ter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c11439455
.
atkfil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c11439455
.
atkfil
ter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ATKCHANGE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ATKCHANGE
,
g
,
1
,
0
,
0
)
end
end
function
c11439455
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c11439455
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -39,26 +39,23 @@ function c11439455.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,26 +39,23 @@ function c11439455.atkop(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e2
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e2
:
SetValue
(
c11439455
.
value
)
e2
:
SetValue
(
tc
:
GetBaseAttack
()
*
2
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
end
end
end
end
function
c11439455
.
value
(
e
,
c
)
function
c11439455
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
c
:
GetBaseAttack
()
*
2
end
function
c11439455
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
return
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c11439455
.
spfilter
(
c
,
e
,
tp
)
function
c11439455
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xdf
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xdf
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c11439455
.
sptg
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c11439455
.
sptg
(
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
and
Duel
.
IsExistingMatchingCard
(
c11439455
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c11439455
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c11439455
.
spop
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c11439455
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c11439455
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c11439455
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
...
c11493868.lua
View file @
88176637
...
@@ -41,11 +41,11 @@ end
...
@@ -41,11 +41,11 @@ end
function
c11493868
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c11493868
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
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_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
PHASE_STANDBY
,
2
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
)
e1
:
SetValue
(
800
)
e1
:
SetValue
(
800
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
end
end
...
...
c12215894.lua
View file @
88176637
...
@@ -65,6 +65,7 @@ function c12215894.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -65,6 +65,7 @@ function c12215894.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c12215894
.
cfilter
(
c
)
function
c12215894
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0xab
)
and
c
:
IsAbleToRemoveAsCost
()
and
not
c
:
IsCode
(
12215894
)
return
c
:
IsSetCard
(
0xab
)
and
c
:
IsAbleToRemoveAsCost
()
and
not
c
:
IsCode
(
12215894
)
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
end
end
function
c12215894
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c12215894
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c12215894
.
cfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_ONFIELD
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c12215894
.
cfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_ONFIELD
,
0
,
nil
)
...
...
c12255007.lua
View file @
88176637
...
@@ -27,9 +27,9 @@ function c12255007.aclimit(e,re,tp)
...
@@ -27,9 +27,9 @@ function c12255007.aclimit(e,re,tp)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c12255007
.
actcon
(
e
)
function
c12255007
.
actcon
(
e
)
local
c
=
Duel
.
GetAttacker
()
local
t
c
=
Duel
.
GetAttacker
()
local
p
=
e
:
GetHandler
():
GetControl
er
()
local
tp
=
e
:
GetHandlerPlay
er
()
return
c
and
c
:
IsControler
(
p
)
and
(
c
:
IsSetCard
(
0x9f
)
or
c
:
IsSetCard
(
0x99
))
return
tc
and
tc
:
IsControler
(
tp
)
and
(
tc
:
IsSetCard
(
0x9f
)
or
t
c
:
IsSetCard
(
0x99
))
end
end
function
c12255007
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12255007
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
return
Duel
.
GetTurnPlayer
()
~=
tp
...
...
c12615446.lua
View file @
88176637
--電子光虫-スカラジエータ
--電子光虫-スカラジエータ
function
c12615446
.
initial_effect
(
c
)
function
c12615446
.
initial_effect
(
c
)
--xyz summon
--xyz summon
aux
.
AddXyzProcedure
(
c
,
c12615446
.
matfil
,
3
,
2
,
nil
,
nil
,
5
)
aux
.
AddXyzProcedure
(
c
,
c12615446
.
matfil
ter
,
3
,
2
,
nil
,
nil
,
5
)
--Position+Negate
--Position+Negate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
12615446
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
12615446
,
0
))
...
@@ -26,10 +26,9 @@ function c12615446.initial_effect(c)
...
@@ -26,10 +26,9 @@ function c12615446.initial_effect(c)
e2
:
SetOperation
(
c12615446
.
xyzop
)
e2
:
SetOperation
(
c12615446
.
xyzop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c12615446
.
matfil
(
c
)
function
c12615446
.
matfil
ter
(
c
)
return
c
:
IsRace
(
RACE_INSECT
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
return
c
:
IsRace
(
RACE_INSECT
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
end
end
function
c12615446
.
poscost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c12615446
.
poscost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
2
,
REASON_COST
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
2
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
2
,
2
,
REASON_COST
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
2
,
2
,
REASON_COST
)
...
...
c13048472.lua
View file @
88176637
...
@@ -11,7 +11,8 @@ function c13048472.initial_effect(c)
...
@@ -11,7 +11,8 @@ function c13048472.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c13048472
.
filter
(
c
,
tp
)
function
c13048472
.
filter
(
c
,
tp
)
return
bit
.
band
(
c
:
GetType
(),
0x82
)
==
0x82
and
c
:
IsAbleToHand
()
and
Duel
.
IsExistingMatchingCard
(
c13048472
.
filter2
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
c
)
return
bit
.
band
(
c
:
GetType
(),
0x82
)
==
0x82
and
c
:
IsAbleToHand
()
and
Duel
.
IsExistingMatchingCard
(
c13048472
.
filter2
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
c
)
end
end
function
c13048472
.
filter2
(
c
,
mc
)
function
c13048472
.
filter2
(
c
,
mc
)
return
bit
.
band
(
c
:
GetType
(),
0x81
)
==
0x81
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
and
c13048472
.
isfit
(
c
,
mc
)
return
bit
.
band
(
c
:
GetType
(),
0x81
)
==
0x81
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
and
c13048472
.
isfit
(
c
,
mc
)
...
...
c23160024.lua
View file @
88176637
...
@@ -24,6 +24,7 @@ function c23160024.initial_effect(c)
...
@@ -24,6 +24,7 @@ function c23160024.initial_effect(c)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetCode
(
EVENT_RELEASE
)
e4
:
SetCode
(
EVENT_RELEASE
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e4
:
SetCountLimit
(
2
)
e4
:
SetCondition
(
c23160024
.
drcon
)
e4
:
SetCondition
(
c23160024
.
drcon
)
e4
:
SetOperation
(
c23160024
.
drop
)
e4
:
SetOperation
(
c23160024
.
drop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
...
@@ -41,11 +42,10 @@ function c23160024.cfilter(c,tp)
...
@@ -41,11 +42,10 @@ function c23160024.cfilter(c,tp)
return
c
:
IsSetCard
(
0xe0
)
and
c
:
IsReason
(
REASON_RELEASE
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousControler
()
==
tp
return
c
:
IsSetCard
(
0xe0
)
and
c
:
IsReason
(
REASON_RELEASE
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousControler
()
==
tp
end
end
function
c23160024
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23160024
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
23160024
)
<
2
and
e
g
:
IsExists
(
c23160024
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c23160024
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c23160024
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23160024
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
e
:
GetHandler
():
GetCode
())
Duel
.
Hint
(
HINT_CARD
,
0
,
e
:
GetHandler
():
GetCode
())
e
:
GetHandler
():
RegisterFlagEffect
(
23160024
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
function
c23160024
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23160024
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c23338098.lua
View file @
88176637
...
@@ -75,11 +75,10 @@ function c23338098.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -75,11 +75,10 @@ function c23338098.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c23338098
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c23338098
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
SelectTarget
(
tp
,
c23338098
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c23338098
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
1
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c23338098
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23338098
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
1
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
c24382602.lua
View file @
88176637
...
@@ -33,17 +33,18 @@ function c24382602.initial_effect(c)
...
@@ -33,17 +33,18 @@ function c24382602.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c24382602
.
extg
(
e
,
c
)
function
c24382602
.
extg
(
e
,
c
)
return
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsLevelBelow
(
1
)
return
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
GetLevel
()
==
1
end
end
function
c24382602
.
tgfilter
(
c
)
function
c24382602
.
tgfilter
(
c
)
return
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
c24382602
.
cfilter
,
c
:
GetControler
(),
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
nil
,
c
)
return
c
:
IsFaceup
()
end
end
function
c24382602
.
cfilter
(
c
,
t
c
)
function
c24382602
.
filter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
end
end
function
c24382602
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c24382602
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c24382602
.
tgfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c24382602
.
tgfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c24382602
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c24382602
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c24382602
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c24382602
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c24382602
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
end
...
@@ -51,7 +52,7 @@ function c24382602.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +52,7 @@ function c24382602.atkop(e,tp,eg,ep,ev,re,r,rp)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c24382602
.
cfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
tc
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c24382602
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
local
gc
=
g
:
GetFirst
()
local
gc
=
g
:
GetFirst
()
local
lv
=
gc
:
GetLevel
()
local
lv
=
gc
:
GetLevel
()
...
@@ -66,11 +67,14 @@ function c24382602.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -66,11 +67,14 @@ function c24382602.atkop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
end
end
else
if
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
then
else
local
cg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_DECK
,
0
)
local
cg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_DECK
,
0
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ConfirmCards
(
tp
,
cg
)
Duel
.
ConfirmCards
(
tp
,
cg
)
Duel
.
ShuffleDeck
(
tp
)
Duel
.
ShuffleDeck
(
tp
)
cg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ShuffleHand
(
tp
)
end
end
end
end
function
c24382602
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c24382602
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c25494711.lua
View file @
88176637
...
@@ -49,13 +49,8 @@ end
...
@@ -49,13 +49,8 @@ end
function
c25494711
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25494711
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetHandler
()
local
tc
=
e
:
GetHandler
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
atk
=
0
local
g
=
Duel
.
GetMatchingGroup
(
c25494711
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c25494711
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
bc
=
g
:
GetFirst
()
local
atk
=
g
:
GetSum
(
Card
.
GetAttack
)
while
bc
do
atk
=
atk
+
bc
:
GetAttack
()
bc
=
g
:
GetNext
()
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_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
c31733941.lua
View file @
88176637
c45467446.lua
View file @
88176637
...
@@ -35,6 +35,13 @@ function c45467446.initial_effect(c)
...
@@ -35,6 +35,13 @@ function c45467446.initial_effect(c)
e5
:
SetTarget
(
c45467446
.
sptg
)
e5
:
SetTarget
(
c45467446
.
sptg
)
e5
:
SetOperation
(
c45467446
.
spop
)
e5
:
SetOperation
(
c45467446
.
spop
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--add setcode
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
e6
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e6
:
SetCode
(
EFFECT_ADD_SETCODE
)
e6
:
SetValue
(
0xdd
)
c
:
RegisterEffect
(
e6
)
end
end
function
c45467446
.
rmfilter
(
c
)
function
c45467446
.
rmfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToRemove
()
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToRemove
()
...
...
c45644898.lua
View file @
88176637
...
@@ -44,19 +44,19 @@ function c45644898.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -44,19 +44,19 @@ function c45644898.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeckAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeckAsCost
()
end
Duel
.
SendtoDeck
(
e
:
GetHandler
(),
nil
,
2
,
REASON_COST
)
Duel
.
SendtoDeck
(
e
:
GetHandler
(),
nil
,
2
,
REASON_COST
)
end
end
function
c45644898
.
gvfilter
(
c
,
e
,
tp
)
function
c45644898
.
gvfilter
(
c
)
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsAbleToGrave
()
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsAbleToGrave
()
and
Duel
.
IsExistingMatchingCard
(
c45644898
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
,
e
,
tp
)
end
end
function
c45644898
.
spfilter
(
c
,
e
,
tp
)
function
c45644898
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xdd
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xdd
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c45644898
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c45644898
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c45644898
.
gvfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c45644898
.
gvfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c45644898
.
gvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c45644898
.
gvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c45644898
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c45644898
.
gvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c45644898
.
gvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
end
...
...
c46253216.lua
View file @
88176637
c48427163.lua
View file @
88176637
...
@@ -22,7 +22,7 @@ function c48427163.initial_effect(c)
...
@@ -22,7 +22,7 @@ function c48427163.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c48427163
.
filter
(
c
)
function
c48427163
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xdf
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xdf
)
end
end
function
c48427163
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c48427163
.
atkcost
(
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
...
...
c50371210.lua
View file @
88176637
...
@@ -72,6 +72,7 @@ function c50371210.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -72,6 +72,7 @@ function c50371210.operation(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetCode
(
EFFECT_DISABLE
)
e2
:
SetCode
(
EFFECT_DISABLE
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
end
end
...
@@ -85,5 +86,6 @@ function c50371210.ftarget(e,c)
...
@@ -85,5 +86,6 @@ function c50371210.ftarget(e,c)
return
e
:
GetHandler
():
GetEquipTarget
()
~=
c
return
e
:
GetHandler
():
GetEquipTarget
()
~=
c
end
end
function
c50371210
.
val
(
e
,
c
)
function
c50371210
.
val
(
e
,
c
)
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsSetCard
,
e
:
GetHandlerPlayer
(),
LOCATION_GRAVE
,
0
,
nil
,
0xdd
)
-
1
local
ct
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsSetCard
,
e
:
GetHandlerPlayer
(),
LOCATION_GRAVE
,
0
,
nil
,
0xdd
)
return
math.max
(
0
,
ct
-
1
)
end
end
c50554729.lua
View file @
88176637
...
@@ -25,26 +25,33 @@ function c50554729.initial_effect(c)
...
@@ -25,26 +25,33 @@ function c50554729.initial_effect(c)
e4
:
SetCode
(
EVENT_RELEASE
)
e4
:
SetCode
(
EVENT_RELEASE
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCountLimit
(
1
,
50554729
)
e4
:
SetCountLimit
(
1
,
50554729
)
e4
:
SetCondition
(
c50554729
.
thcon
)
e4
:
SetCondition
(
c50554729
.
thcon
1
)
e4
:
SetTarget
(
c50554729
.
thtg
)
e4
:
SetTarget
(
c50554729
.
thtg
)
e4
:
SetOperation
(
c50554729
.
thop
)
e4
:
SetOperation
(
c50554729
.
thop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EVENT_DESTROYED
)
e5
:
SetCode
(
EVENT_DESTROYED
)
e5
:
SetCondition
(
c50554729
.
thcon2
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c50554729
.
filter
(
c
)
function
c50554729
.
filter
(
c
)
return
c
:
Is
SetCard
(
0xe0
)
and
c
:
IsFaceup
(
)
return
c
:
Is
Faceup
()
and
c
:
IsSetCard
(
0xe0
)
end
end
function
c50554729
.
value
(
e
,
c
)
function
c50554729
.
value
(
e
,
c
)
return
Duel
.
GetMatchingGroupCount
(
c50554729
.
filter
,
c
:
GetControler
()
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
*
100
return
Duel
.
GetMatchingGroupCount
(
c50554729
.
filter
,
0
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
*
100
end
end
function
c50554729
.
confilter
(
c
,
tp
)
function
c50554729
.
cfilter1
(
c
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
+
REASON_RELEASE
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
+
LOCATION_HAND
)
and
c
:
GetPreviousControler
()
==
tp
end
function
c50554729
.
thcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c50554729
.
cfilter1
,
1
,
nil
,
tp
)
end
function
c50554729
.
cfilter2
(
c
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
+
LOCATION_HAND
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
+
LOCATION_HAND
)
and
c
:
GetPreviousControler
()
==
tp
end
end
function
c50554729
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50554729
.
thcon
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c50554729
.
c
onfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c50554729
.
c
filter2
,
1
,
nil
,
tp
)
end
end
function
c50554729
.
thfilter
(
c
)
function
c50554729
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xe0
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0xe0
)
and
c
:
IsAbleToHand
()
...
...
c50954680.lua
View file @
88176637
...
@@ -32,7 +32,6 @@ function c50954680.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,7 +32,6 @@ function c50954680.condition(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c50954680
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50954680
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsDestructable
()
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
re
:
GetHandler
():
IsDestructable
()
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
1
,
0
,
0
)
...
@@ -55,7 +54,7 @@ end
...
@@ -55,7 +54,7 @@ end
function
c50954680
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50954680
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
local
bc
=
c
:
GetBattleTarget
()
return
bc
and
bc
:
IsLevelAbove
(
5
)
return
bc
and
bc
:
IsLevelAbove
(
5
)
and
bc
:
IsControler
(
1
-
tp
)
end
end
function
c50954680
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50954680
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c59640711.lua
View file @
88176637
...
@@ -16,7 +16,7 @@ function c59640711.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -16,7 +16,7 @@ function c59640711.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
end
end
function
c59640711
.
spfilter
(
c
,
e
,
tp
)
function
c59640711
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x2016
)
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
GetCode
()
~=
59640711
return
c
:
IsSetCard
(
0x2016
)
and
c
:
IsType
(
TYPE_TUNER
)
and
not
c
:
IsCode
(
59640711
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c59640711
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c59640711
.
sptg
(
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
...
...
c59762399.lua
View file @
88176637
...
@@ -59,7 +59,7 @@ function c59762399.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -59,7 +59,7 @@ function c59762399.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c59762399
.
atkfilter
(
c
)
function
c59762399
.
atkfilter
(
c
)
return
c
:
Is
SetCard
(
0x9f
)
and
c
:
IsFaceup
(
)
return
c
:
Is
Faceup
()
and
c
:
IsSetCard
(
0x9f
)
end
end
function
c59762399
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c59762399
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c59762399
.
atkfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c59762399
.
atkfilter
(
chkc
)
end
...
...
c62015408.lua
View file @
88176637
...
@@ -10,6 +10,7 @@ function c62015408.initial_effect(c)
...
@@ -10,6 +10,7 @@ function c62015408.initial_effect(c)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
c62015408
.
condition
)
e1
:
SetCondition
(
c62015408
.
condition
)
e1
:
SetCost
(
c62015408
.
cost
)
e1
:
SetCost
(
c62015408
.
cost
)
e1
:
SetTarget
(
c62015408
.
target
)
e1
:
SetOperation
(
c62015408
.
operation
)
e1
:
SetOperation
(
c62015408
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
...
@@ -21,6 +22,12 @@ function c62015408.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -21,6 +22,12 @@ function c62015408.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
end
function
c62015408
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
30459350
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_EXTRA
,
0
)
>
0
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_EXTRA
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
1
-
tp
,
LOCATION_EXTRA
)
end
function
c62015408
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c62015408
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
)
...
@@ -29,7 +36,7 @@ function c62015408.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -29,7 +36,7 @@ function c62015408.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_EXTRA
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_EXTRA
)
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
ConfirmCards
(
tp
,
g
)
local
tg
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
0
,
LOCATION_EXTRA
,
nil
,
sg
:
GetFirst
():
GetCode
())
local
tg
=
g
:
Filter
(
Card
.
IsCode
,
nil
,
sg
:
GetFirst
():
GetCode
())
if
tg
:
GetCount
()
>
0
then
if
tg
:
GetCount
()
>
0
then
Duel
.
Remove
(
tg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
tg
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
...
...
c6283472.lua
View file @
88176637
...
@@ -63,7 +63,7 @@ end
...
@@ -63,7 +63,7 @@ end
function
c6283472
.
cfilter
(
c
)
function
c6283472
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xe0
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xe0
)
end
end
function
c6283472
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6283472
.
damcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c6283472
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c6283472
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
c6283472
.
damval
(
e
,
re
,
val
,
r
,
rp
,
rc
)
function
c6283472
.
damval
(
e
,
re
,
val
,
r
,
rp
,
rc
)
...
...
c62893810.lua
View file @
88176637
...
@@ -11,30 +11,31 @@ function c62893810.initial_effect(c)
...
@@ -11,30 +11,31 @@ function c62893810.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c62893810
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c62893810
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g1
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
local
g1
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
LOCATION_HAND
)
local
g2
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
g1
:
Merge
(
g2
)
if
chk
==
0
then
return
g1
:
GetCount
()
~=
0
end
if
chk
==
0
then
return
g1
:
GetCount
()
~=
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
g1
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
g1
,
1
,
0
,
0
)
end
end
function
c62893810
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c62893810
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g1
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
local
g2
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
if
g1
:
GetCount
()
+
g2
:
GetCount
()
==
0
then
return
end
local
d
=
Duel
.
TossDice
(
tp
,
1
)
local
d
=
Duel
.
TossDice
(
tp
,
1
)
if
d
==
1
then
if
d
==
1
then
Duel
.
ConfirmCards
(
tp
,
g1
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
local
sg
1
=
g1
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
sg
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
ShuffleHand
(
1
-
tp
)
Duel
.
ShuffleHand
(
1
-
tp
)
elseif
d
==
6
then
elseif
d
==
6
then
Duel
.
SendtoGrave
(
g2
,
REASON_EFFECT
+
REASON_DISCARD
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_DISCARD
)
else
else
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
local
sg
1
=
g2
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
sg
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
end
end
end
end
c63737050.lua
View file @
88176637
--龍大神
--龍大神
function
c63737050
.
initial_effect
(
c
)
function
c63737050
.
initial_effect
(
c
)
--tograve
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
63737050
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
63737050
,
0
))
e1
:
SetCategory
(
CATEGORY_
POSITION
)
e1
:
SetCategory
(
CATEGORY_
TOGRAVE
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
@@ -11,7 +12,6 @@ function c63737050.initial_effect(c)
...
@@ -11,7 +12,6 @@ function c63737050.initial_effect(c)
e1
:
SetOperation
(
c63737050
.
operation
)
e1
:
SetOperation
(
c63737050
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c63737050
.
cfilter
(
c
,
tp
)
function
c63737050
.
cfilter
(
c
,
tp
)
return
c
:
GetSummonPlayer
()
~=
tp
return
c
:
GetSummonPlayer
()
~=
tp
end
end
...
@@ -19,8 +19,8 @@ function c63737050.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -19,8 +19,8 @@ function c63737050.condition(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c63737050
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c63737050
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c63737050
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c63737050
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
0
,
LOCATION_EXTRA
,
1
,
nil
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
c63737050
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c63737050
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToGrave
,
tp
,
0
,
LOCATION_EXTRA
,
nil
)
local
tg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToGrave
,
tp
,
0
,
LOCATION_EXTRA
,
nil
)
...
...
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