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
5a64bbae
Commit
5a64bbae
authored
Jan 10, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format: space
parent
8b7791e8
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
40 additions
and
40 deletions
+40
-40
c14017402.lua
c14017402.lua
+1
-1
c14577226.lua
c14577226.lua
+1
-1
c22398665.lua
c22398665.lua
+2
-2
c25586143.lua
c25586143.lua
+1
-1
c29415459.lua
c29415459.lua
+1
-1
c38492752.lua
c38492752.lua
+1
-1
c43366227.lua
c43366227.lua
+1
-1
c43748308.lua
c43748308.lua
+1
-1
c47942531.lua
c47942531.lua
+1
-1
c50907446.lua
c50907446.lua
+2
-2
c52711246.lua
c52711246.lua
+1
-1
c55742055.lua
c55742055.lua
+1
-1
c58827995.lua
c58827995.lua
+2
-2
c61802346.lua
c61802346.lua
+1
-1
c62201847.lua
c62201847.lua
+1
-1
c63175639.lua
c63175639.lua
+1
-1
c63519819.lua
c63519819.lua
+6
-6
c64631466.lua
c64631466.lua
+6
-6
c72204747.lua
c72204747.lua
+1
-1
c75132317.lua
c75132317.lua
+1
-1
c75292259.lua
c75292259.lua
+1
-1
c75574498.lua
c75574498.lua
+1
-1
c78876707.lua
c78876707.lua
+1
-1
c79094383.lua
c79094383.lua
+1
-1
c8200556.lua
c8200556.lua
+1
-1
c8794435.lua
c8794435.lua
+1
-1
c88071625.lua
c88071625.lua
+1
-1
No files found.
c14017402.lua
View file @
5a64bbae
...
@@ -39,7 +39,7 @@ function c14017402.splimit(e,se,sp,st)
...
@@ -39,7 +39,7 @@ function c14017402.splimit(e,se,sp,st)
return
true
return
true
end
end
function
c14017402
.
refcon
(
e
,
re
,
val
,
r
,
rp
,
rc
)
function
c14017402
.
refcon
(
e
,
re
,
val
,
r
,
rp
,
rc
)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
rp
==
1
-
e
:
GetHandler
():
GetControler
()
and
e
:
GetHandler
():
IsAttackPos
()
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
rp
==
1
-
e
:
GetHandler
():
GetControler
()
and
e
:
GetHandler
():
IsAttackPos
()
end
end
function
c14017402
.
ffilter
(
c
)
function
c14017402
.
ffilter
(
c
)
return
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsFusionType
(
TYPE_SYNCHRO
)
return
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsFusionType
(
TYPE_SYNCHRO
)
...
...
c14577226.lua
View file @
5a64bbae
...
@@ -55,7 +55,7 @@ function c14577226.spfilter(c,e,tp,lv)
...
@@ -55,7 +55,7 @@ function c14577226.spfilter(c,e,tp,lv)
return
c
:
IsLevelBelow
(
lv
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsLevelBelow
(
lv
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c14577226
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c14577226
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c14577226
.
tgfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c14577226
.
tgfilter
(
chkc
,
e
,
tp
)
end
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
(
c14577226
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c14577226
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
...
...
c22398665.lua
View file @
5a64bbae
...
@@ -96,11 +96,11 @@ function c22398665.RitualCheck(g,tp,c,atk,greater_or_equal)
...
@@ -96,11 +96,11 @@ function c22398665.RitualCheck(g,tp,c,atk,greater_or_equal)
end
end
function
c22398665
.
RitualCheckAdditional
(
c
,
atk
,
greater_or_equal
)
function
c22398665
.
RitualCheckAdditional
(
c
,
atk
,
greater_or_equal
)
if
greater_or_equal
==
"Equal"
then
if
greater_or_equal
==
"Equal"
then
return
function
(
g
)
return
function
(
g
)
return
(
not
Auxiliary
.
RGCheckAdditional
or
Auxiliary
.
RGCheckAdditional
(
g
))
and
g
:
GetSum
(
Card
.
GetAttack
)
<=
atk
return
(
not
Auxiliary
.
RGCheckAdditional
or
Auxiliary
.
RGCheckAdditional
(
g
))
and
g
:
GetSum
(
Card
.
GetAttack
)
<=
atk
end
end
else
else
return
function
(
g
,
ec
)
return
function
(
g
,
ec
)
if
atk
==
0
then
return
#
g
<=
1
end
if
atk
==
0
then
return
#
g
<=
1
end
if
ec
then
if
ec
then
return
(
not
Auxiliary
.
RGCheckAdditional
or
Auxiliary
.
RGCheckAdditional
(
g
,
ec
))
and
g
:
GetSum
(
Card
.
GetAttack
)
-
Card
.
GetAttack
(
ec
)
<=
atk
return
(
not
Auxiliary
.
RGCheckAdditional
or
Auxiliary
.
RGCheckAdditional
(
g
,
ec
))
and
g
:
GetSum
(
Card
.
GetAttack
)
-
Card
.
GetAttack
(
ec
)
<=
atk
...
...
c25586143.lua
View file @
5a64bbae
...
@@ -74,7 +74,7 @@ end
...
@@ -74,7 +74,7 @@ end
function
c25586143
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25586143
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsControler
(
1
-
tp
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsControler
(
1
-
tp
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
c29415459.lua
View file @
5a64bbae
...
@@ -54,7 +54,7 @@ function c29415459.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -54,7 +54,7 @@ function c29415459.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
c29415459
.
filter
(
c
,
g
)
function
c29415459
.
filter
(
c
,
g
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
g
:
IsContains
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
g
:
IsContains
(
c
)
end
end
function
c29415459
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c29415459
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
cg
=
e
:
GetHandler
():
GetColumnGroup
()
local
cg
=
e
:
GetHandler
():
GetColumnGroup
()
...
...
c38492752.lua
View file @
5a64bbae
...
@@ -15,7 +15,7 @@ function c38492752.initial_effect(c)
...
@@ -15,7 +15,7 @@ function c38492752.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c38492752
.
filter
(
c
,
e
,
tp
)
function
c38492752
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x39
)
and
c
:
IsFaceup
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x39
)
and
c
:
IsFaceup
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c38492752
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c38492752
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c38492752
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c38492752
.
filter
(
chkc
,
e
,
tp
)
end
...
...
c43366227.lua
View file @
5a64bbae
...
@@ -72,7 +72,7 @@ function c43366227.desfilter(c)
...
@@ -72,7 +72,7 @@ function c43366227.desfilter(c)
return
c
:
IsFaceup
()
return
c
:
IsFaceup
()
end
end
function
c43366227
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c43366227
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c43366227
.
desfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c43366227
.
desfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c43366227
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c43366227
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c43366227
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c43366227
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
...
...
c43748308.lua
View file @
5a64bbae
...
@@ -49,7 +49,7 @@ function c43748308.cfilter(c)
...
@@ -49,7 +49,7 @@ function c43748308.cfilter(c)
end
end
function
c43748308
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c43748308
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c43748308
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
2
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c43748308
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
2
,
nil
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
46241344
)
end
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
46241344
)
end
if
Duel
.
IsExistingMatchingCard
(
c43748308
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
2
,
nil
)
if
Duel
.
IsExistingMatchingCard
(
c43748308
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
2
,
nil
)
and
(
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
46241344
)
or
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
46241344
,
0
)))
then
and
(
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
46241344
)
or
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
46241344
,
0
)))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
...
...
c47942531.lua
View file @
5a64bbae
...
@@ -6,7 +6,7 @@ function c47942531.initial_effect(c)
...
@@ -6,7 +6,7 @@ function c47942531.initial_effect(c)
e1
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e1
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e1
:
SetValue
(
c47942531
.
valcheck
)
e1
:
SetValue
(
c47942531
.
valcheck
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--give atk effect only when
summon
--give atk effect only when summon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_SUMMON_COST
)
e2
:
SetCode
(
EFFECT_SUMMON_COST
)
...
...
c50907446.lua
View file @
5a64bbae
...
@@ -131,7 +131,7 @@ function c50907446.FShaddollSpFilter2(c,fc,tp,mc,chkf)
...
@@ -131,7 +131,7 @@ function c50907446.FShaddollSpFilter2(c,fc,tp,mc,chkf)
and
(
chkf
==
PLAYER_NONE
or
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
,
fc
)
>
0
)
and
(
chkf
==
PLAYER_NONE
or
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
,
fc
)
>
0
)
end
end
function
c50907446
.
FShaddollCondition
()
function
c50907446
.
FShaddollCondition
()
return
function
(
e
,
g
,
gc
,
chkf
)
return
function
(
e
,
g
,
gc
,
chkf
)
if
g
==
nil
then
return
aux
.
MustMaterialCheck
(
nil
,
e
:
GetHandlerPlayer
(),
EFFECT_MUST_BE_FMATERIAL
)
end
if
g
==
nil
then
return
aux
.
MustMaterialCheck
(
nil
,
e
:
GetHandlerPlayer
(),
EFFECT_MUST_BE_FMATERIAL
)
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
mg
=
g
:
Filter
(
c50907446
.
FShaddollFilter
,
nil
,
c
)
local
mg
=
g
:
Filter
(
c50907446
.
FShaddollFilter
,
nil
,
c
)
...
@@ -149,7 +149,7 @@ function c50907446.FShaddollCondition()
...
@@ -149,7 +149,7 @@ function c50907446.FShaddollCondition()
end
end
end
end
function
c50907446
.
FShaddollOperation
()
function
c50907446
.
FShaddollOperation
()
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
gc
,
chkf
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
gc
,
chkf
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
mg
=
eg
:
Filter
(
c50907446
.
FShaddollFilter
,
nil
,
c
)
local
mg
=
eg
:
Filter
(
c50907446
.
FShaddollFilter
,
nil
,
c
)
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_FZONE
,
0
)
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_FZONE
,
0
)
...
...
c52711246.lua
View file @
5a64bbae
...
@@ -55,7 +55,7 @@ function c52711246.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,7 +55,7 @@ function c52711246.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
HintSelection
(
t2
)
Duel
.
HintSelection
(
t2
)
Duel
.
Destroy
(
t2
,
REASON_EFFECT
)
Duel
.
Destroy
(
t2
,
REASON_EFFECT
)
end
end
if
b3
and
#
g3
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
52711246
,
3
))
then
if
b3
and
#
g3
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
52711246
,
3
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
t3
=
g3
:
Select
(
tp
,
1
,
1
,
nil
)
local
t3
=
g3
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
c55742055.lua
View file @
5a64bbae
...
@@ -80,7 +80,7 @@ function c55742055.operation1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -80,7 +80,7 @@ function c55742055.operation1(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
end
function
c55742055
.
filter2
(
c
,
e
,
tp
)
function
c55742055
.
filter2
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x107a
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x107a
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c55742055
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c55742055
.
target2
(
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
...
...
c58827995.lua
View file @
5a64bbae
...
@@ -16,8 +16,8 @@ function c58827995.cfilter(c)
...
@@ -16,8 +16,8 @@ function c58827995.cfilter(c)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsLevelAbove
(
1
)
and
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsLevelAbove
(
1
)
and
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
end
end
function
c58827995
.
fselect
(
g
,
tp
)
function
c58827995
.
fselect
(
g
,
tp
)
Duel
.
SetSelectedCard
(
g
)
Duel
.
SetSelectedCard
(
g
)
return
g
:
CheckWithSumGreater
(
Card
.
GetLevel
,
4
)
and
aux
.
mzctcheck
(
g
,
tp
)
return
g
:
CheckWithSumGreater
(
Card
.
GetLevel
,
4
)
and
aux
.
mzctcheck
(
g
,
tp
)
end
end
function
c58827995
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c58827995
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
)
...
...
c61802346.lua
View file @
5a64bbae
...
@@ -19,7 +19,7 @@ function c61802346.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -19,7 +19,7 @@ function c61802346.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c61802346
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c61802346
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
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_CANNOT_ATTACK
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
...
...
c62201847.lua
View file @
5a64bbae
...
@@ -77,7 +77,7 @@ end
...
@@ -77,7 +77,7 @@ end
function
c62201847
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c62201847
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
return
true
return
true
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
...
...
c63175639.lua
View file @
5a64bbae
...
@@ -55,7 +55,7 @@ function c63175639.spfilter(c,e,tp)
...
@@ -55,7 +55,7 @@ function c63175639.spfilter(c,e,tp)
and
c
:
IsLevelAbove
(
5
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsLevelAbove
(
5
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c63175639
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c63175639
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c63175639
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c63175639
.
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
...
...
c63519819.lua
View file @
5a64bbae
...
@@ -80,12 +80,12 @@ function c63519819.equip_monster(c,tp,tc)
...
@@ -80,12 +80,12 @@ function c63519819.equip_monster(c,tp,tc)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
--substitute
--substitute
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetCode
(
EFFECT_DESTROY_SUBSTITUTE
)
e2
:
SetCode
(
EFFECT_DESTROY_SUBSTITUTE
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetValue
(
c63519819
.
repval
)
e2
:
SetValue
(
c63519819
.
repval
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
end
end
function
c63519819
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c63519819
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c64631466.lua
View file @
5a64bbae
...
@@ -73,12 +73,12 @@ function c64631466.equip_monster(c,tp,tc)
...
@@ -73,12 +73,12 @@ function c64631466.equip_monster(c,tp,tc)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
--substitute
--substitute
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetCode
(
EFFECT_DESTROY_SUBSTITUTE
)
e2
:
SetCode
(
EFFECT_DESTROY_SUBSTITUTE
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetValue
(
c64631466
.
repval
)
e2
:
SetValue
(
c64631466
.
repval
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
end
end
function
c64631466
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c64631466
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c72204747.lua
View file @
5a64bbae
...
@@ -16,7 +16,7 @@ function c72204747.filter1(c,e,sp)
...
@@ -16,7 +16,7 @@ function c72204747.filter1(c,e,sp)
and
Duel
.
IsExistingMatchingCard
(
c72204747
.
filter2
,
sp
,
LOCATION_DECK
,
0
,
1
,
nil
,
lv
,
e
,
sp
)
and
Duel
.
IsExistingMatchingCard
(
c72204747
.
filter2
,
sp
,
LOCATION_DECK
,
0
,
1
,
nil
,
lv
,
e
,
sp
)
end
end
function
c72204747
.
filter2
(
c
,
lv
,
e
,
sp
)
function
c72204747
.
filter2
(
c
,
lv
,
e
,
sp
)
return
c
:
IsLevelBelow
(
lv
)
and
c
:
IsSetCard
(
0xc008
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
sp
,
false
,
false
)
return
c
:
IsLevelBelow
(
lv
)
and
c
:
IsSetCard
(
0xc008
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
sp
,
false
,
false
)
end
end
function
c72204747
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c72204747
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c72204747
.
filter1
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c72204747
.
filter1
(
chkc
,
e
,
tp
)
end
...
...
c75132317.lua
View file @
5a64bbae
...
@@ -54,7 +54,7 @@ function c75132317.cfilter(c)
...
@@ -54,7 +54,7 @@ function c75132317.cfilter(c)
end
end
function
c75132317
.
drcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c75132317
.
drcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c75132317
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
2
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c75132317
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
2
,
nil
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
46241344
)
end
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
46241344
)
end
if
Duel
.
IsExistingMatchingCard
(
c75132317
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
2
,
nil
)
if
Duel
.
IsExistingMatchingCard
(
c75132317
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
2
,
nil
)
and
(
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
46241344
)
or
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
46241344
,
0
)))
then
and
(
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
46241344
)
or
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
46241344
,
0
)))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
...
...
c75292259.lua
View file @
5a64bbae
...
@@ -11,7 +11,7 @@ end
...
@@ -11,7 +11,7 @@ end
function
c75292259
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75292259
.
atcon
(
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
c
==
Duel
.
GetAttacker
()
and
bc
and
bc
:
IsRelateToBattle
()
return
c
==
Duel
.
GetAttacker
()
and
bc
and
bc
:
IsRelateToBattle
()
and
bc
:
GetBattlePosition
()
==
POS_FACEUP_ATTACK
and
c
:
IsChainAttackable
(
3
)
and
bc
:
GetBattlePosition
()
==
POS_FACEUP_ATTACK
and
c
:
IsChainAttackable
(
3
)
end
end
function
c75292259
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75292259
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c75574498.lua
View file @
5a64bbae
...
@@ -48,7 +48,7 @@ function c75574498.spfilter1(c,e,tp)
...
@@ -48,7 +48,7 @@ function c75574498.spfilter1(c,e,tp)
return
c
:
IsCode
(
81587028
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
81587028
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c75574498
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c75574498
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c75574498
.
spfilter1
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c75574498
.
spfilter1
(
chkc
,
e
,
tp
)
end
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
(
c75574498
.
spfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c75574498
.
spfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
c78876707.lua
View file @
5a64bbae
...
@@ -59,7 +59,7 @@ end
...
@@ -59,7 +59,7 @@ end
function
c78876707
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c78876707
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
MustMaterialCheck
(
nil
,
tp
,
EFFECT_MUST_BE_XMATERIAL
)
if
chk
==
0
then
return
aux
.
MustMaterialCheck
(
nil
,
tp
,
EFFECT_MUST_BE_XMATERIAL
)
and
Duel
.
IsExistingMatchingCard
(
c78876707
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c78876707
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
and
e
:
GetHandler
():
IsCanOverlay
()
end
and
e
:
GetHandler
():
IsCanOverlay
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
tp
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
tp
,
0
)
end
end
...
...
c79094383.lua
View file @
5a64bbae
...
@@ -28,7 +28,7 @@ end
...
@@ -28,7 +28,7 @@ end
function
c79094383
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c79094383
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c79094383
.
matfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c79094383
.
matfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c79094383
.
matfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c79094383
.
matfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
e
:
GetHandler
():
IsCanOverlay
()
end
and
e
:
GetHandler
():
IsCanOverlay
()
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c79094383
.
matfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c79094383
.
matfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
then
if
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
then
...
...
c8200556.lua
View file @
5a64bbae
...
@@ -77,7 +77,7 @@ end
...
@@ -77,7 +77,7 @@ end
function
c8200556
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c8200556
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
return
true
return
true
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
...
...
c8794435.lua
View file @
5a64bbae
...
@@ -6,7 +6,7 @@ function c8794435.initial_effect(c)
...
@@ -6,7 +6,7 @@ function c8794435.initial_effect(c)
e1
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e1
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e1
:
SetValue
(
c8794435
.
valcheck
)
e1
:
SetValue
(
c8794435
.
valcheck
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--give atk effect only when
summon
--give atk effect only when summon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_SUMMON_COST
)
e2
:
SetCode
(
EFFECT_SUMMON_COST
)
...
...
c88071625.lua
View file @
5a64bbae
...
@@ -26,7 +26,7 @@ function c88071625.initial_effect(c)
...
@@ -26,7 +26,7 @@ function c88071625.initial_effect(c)
e4
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e4
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e4
:
SetValue
(
c88071625
.
valcheck
)
e4
:
SetValue
(
c88071625
.
valcheck
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--give atk effect only when
summon
--give atk effect only when summon
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetCode
(
EFFECT_SUMMON_COST
)
e5
:
SetCode
(
EFFECT_SUMMON_COST
)
...
...
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