Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
八宫一月
ygopro-scripts
Commits
4716a680
Commit
4716a680
authored
Feb 23, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
errata SR10 union monsters
parent
e85526ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
14 deletions
+22
-14
c42940404.lua
c42940404.lua
+11
-7
c78349103.lua
c78349103.lua
+11
-7
No files found.
c42940404.lua
View file @
4716a680
...
...
@@ -16,7 +16,6 @@ function c42940404.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCondition
(
aux
.
IsUnionState
)
e2
:
SetTarget
(
c42940404
.
sptg
)
e2
:
SetOperation
(
c42940404
.
spop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -25,15 +24,14 @@ function c42940404.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_EQUIP
)
e3
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetCode
(
EFFECT_DESTROY_SUBSTITUTE
)
e3
:
SetCondition
(
aux
.
IsUnionState
)
e3
:
SetValue
(
1
)
e3
:
SetValue
(
c42940404
.
repval
)
c
:
RegisterEffect
(
e3
)
--eqlimit
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetValue
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_MACHINE
)
)
e4
:
SetValue
(
c42940404
.
eqlimit
)
c
:
RegisterEffect
(
e4
)
--search
local
e5
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -45,9 +43,15 @@ function c42940404.initial_effect(c)
e5
:
SetOperation
(
c42940404
.
sop
)
c
:
RegisterEffect
(
e5
)
end
c42940404
.
old_union
=
true
function
c42940404
.
repval
(
e
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_BATTLE
+
REASON_EFFECT
)
~=
0
end
function
c42940404
.
eqlimit
(
e
,
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
or
e
:
GetHandler
():
GetEquipTarget
()
==
c
end
function
c42940404
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
GetUnionCount
()
==
0
local
ct1
,
ct2
=
c
:
GetUnionCount
()
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
and
ct2
==
0
end
function
c42940404
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c42940404
.
filter
(
chkc
)
and
chkc
~=
e
:
GetHandler
()
end
...
...
@@ -78,7 +82,7 @@ end
function
c42940404
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
_ATTACK
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
function
c42940404
.
sfilter
(
c
)
return
c
:
IsSetCard
(
0x36
)
and
c
:
GetCode
()
~=
42940404
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
...
...
c78349103.lua
View file @
4716a680
...
...
@@ -16,7 +16,6 @@ function c78349103.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCondition
(
aux
.
IsUnionState
)
e2
:
SetTarget
(
c78349103
.
sptg
)
e2
:
SetOperation
(
c78349103
.
spop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -25,15 +24,14 @@ function c78349103.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_EQUIP
)
e3
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetCode
(
EFFECT_DESTROY_SUBSTITUTE
)
e3
:
SetCondition
(
aux
.
IsUnionState
)
e3
:
SetValue
(
1
)
e3
:
SetValue
(
c78349103
.
repval
)
c
:
RegisterEffect
(
e3
)
--eqlimit
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetValue
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_MACHINE
)
)
e4
:
SetValue
(
c78349103
.
eqlimit
)
c
:
RegisterEffect
(
e4
)
--search
local
e5
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -47,9 +45,15 @@ function c78349103.initial_effect(c)
e5
:
SetOperation
(
c78349103
.
sop
)
c
:
RegisterEffect
(
e5
)
end
c78349103
.
old_union
=
true
function
c78349103
.
repval
(
e
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_BATTLE
+
REASON_EFFECT
)
~=
0
end
function
c78349103
.
eqlimit
(
e
,
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
or
e
:
GetHandler
():
GetEquipTarget
()
==
c
end
function
c78349103
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
GetUnionCount
()
==
0
local
ct1
,
ct2
=
c
:
GetUnionCount
()
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
and
ct2
==
0
end
function
c78349103
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c78349103
.
filter
(
chkc
)
end
...
...
@@ -80,7 +84,7 @@ end
function
c78349103
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
_ATTACK
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
function
c78349103
.
sfilter
(
c
)
return
c
:
IsType
(
TYPE_UNION
)
and
c
:
IsAbleToHand
()
...
...
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