Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
2bc86b6e
Commit
2bc86b6e
authored
May 18, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 轟雷機龍 and 竜装合体
the metatable of the target only rely on card, not on name
parent
7acc5cda
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
c12081875.lua
c12081875.lua
+3
-7
c75402014.lua
c75402014.lua
+2
-4
No files found.
c12081875.lua
View file @
2bc86b6e
...
@@ -29,9 +29,7 @@ function c12081875.effcon(e)
...
@@ -29,9 +29,7 @@ function c12081875.effcon(e)
end
end
function
c12081875
.
efffilter
(
c
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12081875
.
efffilter
(
c
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
(
c
:
IsSetCard
(
0x11c
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
()
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
()))
then
return
false
end
if
not
(
c
:
IsSetCard
(
0x11c
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
()
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
()))
then
return
false
end
local
m
=
_G
[
"c"
..
c
:
GetOriginalCode
()]
local
te
=
c
.
discard_effect
if
not
m
then
return
false
end
local
te
=
m
.
discard_effect
if
not
te
then
return
false
end
if
not
te
then
return
false
end
local
tg
=
te
:
GetTarget
()
local
tg
=
te
:
GetTarget
()
return
not
tg
or
tg
and
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
return
not
tg
or
tg
and
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
...
@@ -46,16 +44,14 @@ function c12081875.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -46,16 +44,14 @@ function c12081875.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
ClearTargetCard
()
Duel
.
ClearTargetCard
()
tc
:
CreateEffectRelation
(
e
)
tc
:
CreateEffectRelation
(
e
)
e
:
SetLabelObject
(
tc
)
e
:
SetLabelObject
(
tc
)
local
m
=
_G
[
"c"
..
tc
:
GetOriginalCode
()]
local
te
=
tc
.
discard_effect
local
te
=
m
.
discard_effect
local
tg
=
te
:
GetTarget
()
local
tg
=
te
:
GetTarget
()
if
tg
then
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
if
tg
then
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
end
end
function
c12081875
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c12081875
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
local
m
=
_G
[
"c"
..
tc
:
GetOriginalCode
()]
local
te
=
tc
.
discard_effect
local
te
=
m
.
discard_effect
local
op
=
te
:
GetOperation
()
local
op
=
te
:
GetOperation
()
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
...
c75402014.lua
View file @
2bc86b6e
...
@@ -38,8 +38,7 @@ function c75402014.eqcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -38,8 +38,7 @@ function c75402014.eqcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsContains
(
e
:
GetHandler
())
return
eg
:
IsContains
(
e
:
GetHandler
())
end
end
function
c75402014
.
eqfilter
(
c
,
tp
)
function
c75402014
.
eqfilter
(
c
,
tp
)
local
mt
=
_G
[
"c"
..
c
:
GetCode
()]
return
c
.
zw_equip_monster
and
c
:
IsSetCard
(
0x107e
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsForbidden
()
and
c
:
CheckUniqueOnField
(
tp
,
LOCATION_SZONE
)
return
mt
and
mt
.
zw_equip_monster
and
c
:
IsSetCard
(
0x107e
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsForbidden
()
and
c
:
CheckUniqueOnField
(
tp
,
LOCATION_SZONE
)
end
end
function
c75402014
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c75402014
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
...
@@ -54,8 +53,7 @@ function c75402014.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,8 +53,7 @@ function c75402014.eqop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c75402014
.
eqfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c75402014
.
eqfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
not
tc
then
return
end
if
not
tc
then
return
end
local
mt
=
_G
[
"c"
..
tc
:
GetCode
()]
tc
.
zw_equip_monster
(
tc
,
tp
,
c
)
mt
.
zw_equip_monster
(
tc
,
tp
,
c
)
end
end
end
end
function
c75402014
.
eqlimit
(
e
,
c
)
function
c75402014
.
eqlimit
(
e
,
c
)
...
...
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