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
Reinen
ygopro-scripts
Commits
1f8614bc
Commit
1f8614bc
authored
Aug 20, 2017
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change RACE_CYBERS to RACE_CYBERSE
parent
5d680a10
Changes
28
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
42 additions
and
41 deletions
+42
-41
c13536606.lua
c13536606.lua
+2
-2
c14505685.lua
c14505685.lua
+3
-3
c29716911.lua
c29716911.lua
+1
-1
c32995276.lua
c32995276.lua
+1
-1
c34472920.lua
c34472920.lua
+1
-1
c35911108.lua
c35911108.lua
+3
-3
c36033786.lua
c36033786.lua
+1
-1
c43839002.lua
c43839002.lua
+2
-2
c44956694.lua
c44956694.lua
+2
-2
c45778242.lua
c45778242.lua
+2
-2
c62306203.lua
c62306203.lua
+2
-2
c63528891.lua
c63528891.lua
+1
-1
c645087.lua
c645087.lua
+2
-2
c6622715.lua
c6622715.lua
+1
-1
c67231737.lua
c67231737.lua
+1
-1
c70238111.lua
c70238111.lua
+1
-1
c70950698.lua
c70950698.lua
+3
-3
c7445307.lua
c7445307.lua
+1
-1
c8567955.lua
c8567955.lua
+1
-1
c89238128.lua
c89238128.lua
+2
-2
c91269402.lua
c91269402.lua
+1
-1
c91665064.lua
c91665064.lua
+1
-1
c9190563.lua
c9190563.lua
+1
-1
c92327802.lua
c92327802.lua
+1
-1
c93104632.lua
c93104632.lua
+2
-2
c9523599.lua
c9523599.lua
+1
-1
constant.lua
constant.lua
+1
-1
utility.lua
utility.lua
+1
-0
No files found.
c13536606.lua
View file @
1f8614bc
...
...
@@ -40,7 +40,7 @@ function c13536606.tktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
lg
=
c
:
GetMutualLinkedGroup
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c13536606
.
rfilter
(
chkc
,
tp
,
lg
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c13536606
.
rfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
tp
,
lg
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
13536607
,
0
,
0x4011
,
0
,
0
,
1
,
RACE_CYBERS
,
ATTRIBUTE_LIGHT
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
13536607
,
0
,
0x4011
,
0
,
0
,
1
,
RACE_CYBERS
E
,
ATTRIBUTE_LIGHT
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
rg
=
Duel
.
SelectTarget
(
tp
,
c13536606
.
rfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
,
lg
)
local
ct
=
rg
:
GetFirst
():
GetLink
()
...
...
@@ -53,7 +53,7 @@ function c13536606.tkop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
Duel
.
Release
(
tc
,
REASON_EFFECT
)
>
0
then
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
<
ct
or
(
ft
>
1
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
))
then
return
end
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
13536607
,
0
,
0x4011
,
0
,
0
,
1
,
RACE_CYBERS
,
ATTRIBUTE_LIGHT
)
then
return
end
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
13536607
,
0
,
0x4011
,
0
,
0
,
1
,
RACE_CYBERS
E
,
ATTRIBUTE_LIGHT
)
then
return
end
for
i
=
1
,
ct
do
local
token
=
Duel
.
CreateToken
(
tp
,
13536607
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
c14505685.lua
View file @
1f8614bc
...
...
@@ -20,7 +20,7 @@ function c14505685.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c14505685
.
cfilter
(
c
)
return
c
:
IsFacedown
()
or
not
c
:
IsRace
(
RACE_CYBERS
)
return
c
:
IsFacedown
()
or
not
c
:
IsRace
(
RACE_CYBERS
E
)
end
function
c14505685
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
@@ -30,7 +30,7 @@ function c14505685.sprcon(e,c)
and
not
Duel
.
IsExistingMatchingCard
(
c14505685
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c14505685
.
rcfilter
(
c
)
return
c
:
IsFaceup
()
and
not
c
:
IsRace
(
RACE_CYBERS
)
return
c
:
IsFaceup
()
and
not
c
:
IsRace
(
RACE_CYBERS
E
)
end
function
c14505685
.
rctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c14505685
.
rcfilter
(
chkc
)
end
...
...
@@ -44,7 +44,7 @@ function c14505685.rcop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_RACE
)
e1
:
SetValue
(
RACE_CYBERS
)
e1
:
SetValue
(
RACE_CYBERS
E
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
end
...
...
c29716911.lua
View file @
1f8614bc
...
...
@@ -23,7 +23,7 @@ function c29716911.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c29716911
.
atkfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_CYBERS
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_CYBERS
E
)
end
function
c29716911
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
...
...
c32995276.lua
View file @
1f8614bc
...
...
@@ -17,7 +17,7 @@ function c32995276.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c32995276
.
matfilter
(
c
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsRace
(
RACE_CYBERS
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsRace
(
RACE_CYBERS
E
)
end
function
c32995276
.
cfilter
(
c
,
g
)
return
g
:
IsContains
(
c
)
...
...
c34472920.lua
View file @
1f8614bc
--ハニーボット
function
c34472920
.
initial_effect
(
c
)
--link summon
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_CYBERS
),
2
,
2
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_CYBERS
E
),
2
,
2
)
c
:
EnableReviveLimit
()
--cannot be target/battle indestructable
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c35911108.lua
View file @
1f8614bc
...
...
@@ -26,11 +26,11 @@ function c35911108.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c35911108
.
atktg
(
e
,
c
)
return
c
:
IsRace
(
RACE_CYBERS
)
and
c
~=
e
:
GetHandler
()
return
c
:
IsRace
(
RACE_CYBERS
E
)
and
c
~=
e
:
GetHandler
()
end
function
c35911108
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
nil
,
RACE_CYBERS
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
1
,
nil
,
RACE_CYBERS
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
nil
,
RACE_CYBERS
E
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
1
,
nil
,
RACE_CYBERS
E
)
Duel
.
Release
(
sg
,
REASON_COST
)
end
function
c35911108
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c36033786.lua
View file @
1f8614bc
...
...
@@ -46,7 +46,7 @@ function c36033786.posop(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_PIERCE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_CYBERS
))
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_CYBERS
E
))
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
...
...
c43839002.lua
View file @
1f8614bc
...
...
@@ -13,11 +13,11 @@ function c43839002.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c43839002
.
rmfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_CYBERS
)
and
c
:
IsAbleToRemove
()
and
c
:
GetBaseAttack
()
>
0
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_CYBERS
E
)
and
c
:
IsAbleToRemove
()
and
c
:
GetBaseAttack
()
>
0
and
Duel
.
IsExistingMatchingCard
(
c43839002
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
)
end
function
c43839002
.
thfilter
(
c
,
rc
)
return
c
:
IsRace
(
RACE_CYBERS
)
and
c
:
GetAttack
()
<
rc
:
GetBaseAttack
()
and
c
:
IsAbleToHand
()
return
c
:
IsRace
(
RACE_CYBERS
E
)
and
c
:
GetAttack
()
<
rc
:
GetBaseAttack
()
and
c
:
IsAbleToHand
()
end
function
c43839002
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c43839002
.
rmfilter
(
chkc
,
tp
)
end
...
...
c44956694.lua
View file @
1f8614bc
...
...
@@ -23,7 +23,7 @@ function c44956694.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c44956694
.
thfilter
(
c
)
return
c
:
IsRace
(
RACE_CYBERS
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
44956694
)
return
c
:
IsRace
(
RACE_CYBERS
E
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
44956694
)
end
function
c44956694
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c44956694
.
thfilter
(
chkc
)
end
...
...
@@ -42,7 +42,7 @@ function c44956694.spcon(e,tp,eg,ep,ev,re,r,rp)
return
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
end
function
c44956694
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsRace
(
RACE_CYBERS
)
and
not
c
:
IsCode
(
44956694
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsRace
(
RACE_CYBERS
E
)
and
not
c
:
IsCode
(
44956694
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c44956694
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c45778242.lua
View file @
1f8614bc
...
...
@@ -7,7 +7,7 @@ function c45778242.initial_effect(c)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetCondition
(
c45778242
.
atkcon
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_CYBERS
))
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_CYBERS
E
))
e1
:
SetValue
(
500
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
...
...
@@ -26,7 +26,7 @@ function c45778242.atkcon(e)
return
Duel
.
GetTurnPlayer
()
==
tp
and
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_NORMAL
)
end
function
c45778242
.
repfilter
(
c
,
e
)
return
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_HAND
))
and
c
:
IsRace
(
RACE_CYBERS
)
return
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_HAND
))
and
c
:
IsRace
(
RACE_CYBERS
E
)
and
c
:
IsDestructable
(
e
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
function
c45778242
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c62306203.lua
View file @
1f8614bc
...
...
@@ -28,7 +28,7 @@ function c62306203.initial_effect(c)
end
function
c62306203
.
cfilter
(
c
,
tp
)
return
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
bit
.
band
(
c
:
GetPreviousTypeOnField
(),
TYPE_LINK
)
~=
0
and
bit
.
band
(
c
:
GetPreviousRaceOnField
(),
RACE_CYBERS
)
~=
0
and
bit
.
band
(
c
:
GetPreviousTypeOnField
(),
TYPE_LINK
)
~=
0
and
bit
.
band
(
c
:
GetPreviousRaceOnField
(),
RACE_CYBERS
E
)
~=
0
end
function
c62306203
.
spcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
and
eg
:
IsExists
(
c62306203
.
cfilter
,
1
,
e
:
GetHandler
(),
tp
)
...
...
@@ -52,7 +52,7 @@ function c62306203.spcost2(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
DiscardHand
(
tp
,
c62306203
.
costfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
function
c62306203
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_CYBERS
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsRace
(
RACE_CYBERS
E
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c62306203
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c62306203
.
spfilter
(
chkc
,
e
,
tp
)
end
...
...
c63528891.lua
View file @
1f8614bc
...
...
@@ -12,7 +12,7 @@ function c63528891.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c63528891
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_CYBERS
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_CYBERS
E
)
end
function
c63528891
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
c645087.lua
View file @
1f8614bc
...
...
@@ -56,13 +56,13 @@ function c645087.tkcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c645087
.
tktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
645088
,
0x51
,
0x4011
,
0
,
0
,
2
,
RACE_CYBERS
,
ATTRIBUTE_LIGHT
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
645088
,
0x51
,
0x4011
,
0
,
0
,
2
,
RACE_CYBERS
E
,
ATTRIBUTE_LIGHT
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
end
function
c645087
.
tkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
645088
,
0x51
,
0x4011
,
0
,
0
,
2
,
RACE_CYBERS
,
ATTRIBUTE_LIGHT
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
645088
,
0x51
,
0x4011
,
0
,
0
,
2
,
RACE_CYBERS
E
,
ATTRIBUTE_LIGHT
)
then
return
end
local
token
=
Duel
.
CreateToken
(
tp
,
645088
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
c6622715.lua
View file @
1f8614bc
...
...
@@ -2,7 +2,7 @@
function
c6622715
.
initial_effect
(
c
)
--link summon
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_CYBERS
),
2
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_CYBERS
E
),
2
)
--activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
6622715
,
0
))
...
...
c67231737.lua
View file @
1f8614bc
...
...
@@ -2,7 +2,7 @@
function
c67231737
.
initial_effect
(
c
)
--link summon
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_CYBERS
),
2
,
2
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_CYBERS
E
),
2
,
2
)
--extra attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
67231737
,
0
))
...
...
c70238111.lua
View file @
1f8614bc
...
...
@@ -25,7 +25,7 @@ function c70238111.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c70238111
.
filter
(
c
,
tp
)
return
c
:
IsRace
(
RACE_CYBERS
)
and
c
:
GetLink
()
==
3
and
(
c
:
IsFaceup
()
or
not
c
:
IsLocation
(
LOCATION_MZONE
))
return
c
:
IsRace
(
RACE_CYBERS
E
)
and
c
:
GetLink
()
==
3
and
(
c
:
IsFaceup
()
or
not
c
:
IsLocation
(
LOCATION_MZONE
))
and
c
:
IsAbleToRemove
()
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
)
>
0
end
function
c70238111
.
spfilter
(
c
,
e
,
tp
)
...
...
c70950698.lua
View file @
1f8614bc
...
...
@@ -24,7 +24,7 @@ function c70950698.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c70950698
.
spcfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsRace
(
RACE_CYBERS
)
return
c
:
IsControler
(
tp
)
and
c
:
IsRace
(
RACE_CYBERS
E
)
end
function
c70950698
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c70950698
.
spcfilter
,
1
,
nil
,
tp
)
...
...
@@ -45,13 +45,13 @@ function c70950698.tkcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c70950698
.
tktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
70950699
,
0
,
0x4011
,
0
,
0
,
1
,
RACE_CYBERS
,
ATTRIBUTE_EARTH
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
70950699
,
0
,
0x4011
,
0
,
0
,
1
,
RACE_CYBERS
E
,
ATTRIBUTE_EARTH
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c70950698
.
tkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
70950699
,
0
,
0x4011
,
0
,
0
,
1
,
RACE_CYBERS
,
ATTRIBUTE_EARTH
)
then
if
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
70950699
,
0
,
0x4011
,
0
,
0
,
1
,
RACE_CYBERS
E
,
ATTRIBUTE_EARTH
)
then
local
token
=
Duel
.
CreateToken
(
tp
,
70950699
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
...
...
c7445307.lua
View file @
1f8614bc
...
...
@@ -24,7 +24,7 @@ function c7445307.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c7445307
.
cfilter
(
c
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsRace
(
RACE_CYBERS
)
and
c
:
IsAbleToRemoveAsCost
()
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsRace
(
RACE_CYBERS
E
)
and
c
:
IsAbleToRemoveAsCost
()
end
function
c7445307
.
mzfilter
(
c
,
tp
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
GetSequence
()
<
5
...
...
c8567955.lua
View file @
1f8614bc
...
...
@@ -38,7 +38,7 @@ function c8567955.sumop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_EXTRA_SUMMON_COUNT
)
e1
:
SetTargetRange
(
LOCATION_HAND
+
LOCATION_MZONE
,
0
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_CYBERS
))
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_CYBERS
E
))
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterFlagEffect
(
tp
,
8567955
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
...
...
c89238128.lua
View file @
1f8614bc
...
...
@@ -43,7 +43,7 @@ function c89238128.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RegisterEffect
(
e1
)
end
function
c89238128
.
atkfilter
(
c
,
lg
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_CYBERS
)
and
lg
and
lg
:
IsContains
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_CYBERS
E
)
and
lg
and
lg
:
IsContains
(
c
)
end
function
c89238128
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
lg
=
e
:
GetHandler
():
GetLinkedGroup
()
...
...
@@ -68,7 +68,7 @@ function c89238128.excon(e,tp,eg,ep,ev,re,r,rp)
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c89238128
.
exfilter
(
c
,
lg
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_CYBERS
)
and
c
:
GetEffectCount
(
EFFECT_EXTRA_ATTACK_MONSTER
)
==
0
and
lg
and
lg
:
IsContains
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_CYBERS
E
)
and
c
:
GetEffectCount
(
EFFECT_EXTRA_ATTACK_MONSTER
)
==
0
and
lg
and
lg
:
IsContains
(
c
)
end
function
c89238128
.
extg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
lg
=
e
:
GetHandler
():
GetLinkedGroup
()
...
...
c91269402.lua
View file @
1f8614bc
...
...
@@ -29,7 +29,7 @@ function c91269402.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetFlagEffect
(
tp
,
91269402
)
~=
0
end
function
c91269402
.
filter
(
c
)
return
c
:
IsAbleToHand
()
and
c
:
IsRace
(
RACE_CYBERS
)
and
c
:
IsLevelBelow
(
4
)
return
c
:
IsAbleToHand
()
and
c
:
IsRace
(
RACE_CYBERS
E
)
and
c
:
IsLevelBelow
(
4
)
end
function
c91269402
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c91269402
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c91665064.lua
View file @
1f8614bc
...
...
@@ -10,7 +10,7 @@ function c91665064.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c91665064
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_CYBERS
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_CYBERS
E
)
end
function
c91665064
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c91665064
.
filter
(
chkc
)
end
...
...
c9190563.lua
View file @
1f8614bc
...
...
@@ -23,7 +23,7 @@ function c9190563.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c9190563
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_CYBERS
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsRace
(
RACE_CYBERS
E
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c9190563
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c9190563
.
spfilter
(
chkc
,
e
,
tp
)
end
...
...
c92327802.lua
View file @
1f8614bc
...
...
@@ -47,7 +47,7 @@ function c92327802.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RemoveCounter
(
tp
,
1
,
0
,
0x43
,
1
,
REASON_COST
)
end
function
c92327802
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_CYBERS
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_CYBERS
E
)
end
function
c92327802
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c92327802
.
filter
(
chkc
)
end
...
...
c93104632.lua
View file @
1f8614bc
...
...
@@ -12,13 +12,13 @@ function c93104632.initial_effect(c)
end
function
c93104632
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
93104633
,
0
,
0x4011
,
2000
,
2000
,
4
,
RACE_CYBERS
,
ATTRIBUTE_LIGHT
,
POS_FACEUP_DEFENSE
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
93104633
,
0
,
0x4011
,
2000
,
2000
,
4
,
RACE_CYBERS
E
,
ATTRIBUTE_LIGHT
,
POS_FACEUP_DEFENSE
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c93104632
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101002161
,
0
,
0x4011
,
2000
,
2000
,
4
,
RACE_CYBERS
,
ATTRIBUTE_LIGHT
,
POS_FACEUP_DEFENSE
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101002161
,
0
,
0x4011
,
2000
,
2000
,
4
,
RACE_CYBERS
E
,
ATTRIBUTE_LIGHT
,
POS_FACEUP_DEFENSE
)
then
return
end
local
token
=
Duel
.
CreateToken
(
tp
,
93104633
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
c9523599.lua
View file @
1f8614bc
...
...
@@ -17,7 +17,7 @@ function c9523599.spcon(e,tp,eg,ep,ev,re,r,rp)
return
r
==
REASON_LINK
end
function
c9523599
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsRace
(
RACE_CYBERS
)
return
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsRace
(
RACE_CYBERS
E
)
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
function
c9523599
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
constant.lua
View file @
1f8614bc
...
...
@@ -88,7 +88,7 @@ RACE_PSYCHO =0x100000 --念动力
RACE_DEVINE
=
0x200000
--幻神兽
RACE_CREATORGOD
=
0x400000
--创造神
RACE_WYRM
=
0x800000
--幻龙
RACE_CYBERS
=
0x1000000
--电子界
RACE_CYBERS
E
=
0x1000000
--电子界
--Reason 卡片到当前位置的原因
REASON_DESTROY
=
0x1
--破坏
REASON_RELEASE
=
0x2
--解放
...
...
utility.lua
View file @
1f8614bc
...
...
@@ -2,6 +2,7 @@ Auxiliary={}
aux
=
Auxiliary
POS_FACEUP_DEFENCE
=
POS_FACEUP_DEFENSE
POS_FACEDOWN_DEFENCE
=
POS_FACEDOWN_DEFENSE
RACE_CYBERS
=
RACE_CYBERSE
function
Auxiliary
.
Stringid
(
code
,
id
)
return
code
*
16
+
id
...
...
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