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
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
Vee4
ygopro-scripts-888
Commits
69f0abbd
Commit
69f0abbd
authored
Mar 10, 2021
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Card.GetOriginalCode()
parent
ce41abfa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
c12081875.lua
c12081875.lua
+3
-3
c25290459.lua
c25290459.lua
+2
-2
c75402014.lua
c75402014.lua
+1
-1
c78063197.lua
c78063197.lua
+2
-2
c89785779.lua
c89785779.lua
+2
-2
No files found.
c12081875.lua
View file @
69f0abbd
...
...
@@ -29,7 +29,7 @@ function c12081875.effcon(e)
end
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
local
m
=
_G
[
"c"
..
c
:
GetCode
()]
local
m
=
_G
[
"c"
..
c
:
Get
Original
Code
()]
if
not
m
then
return
false
end
local
te
=
m
.
discard_effect
if
not
te
then
return
false
end
...
...
@@ -46,7 +46,7 @@ function c12081875.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
ClearTargetCard
()
tc
:
CreateEffectRelation
(
e
)
e
:
SetLabelObject
(
tc
)
local
m
=
_G
[
"c"
..
tc
:
GetCode
()]
local
m
=
_G
[
"c"
..
tc
:
Get
Original
Code
()]
local
te
=
m
.
discard_effect
local
tg
=
te
:
GetTarget
()
if
tg
then
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
...
...
@@ -54,7 +54,7 @@ end
function
c12081875
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
e
:
GetLabelObject
()
if
tc
:
IsRelateToEffect
(
e
)
then
local
m
=
_G
[
"c"
..
tc
:
GetCode
()]
local
m
=
_G
[
"c"
..
tc
:
Get
Original
Code
()]
local
te
=
m
.
discard_effect
local
op
=
te
:
GetOperation
()
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
...
...
c25290459.lua
View file @
69f0abbd
...
...
@@ -12,7 +12,7 @@ function c25290459.initial_effect(c)
end
function
c25290459
.
costfilter
(
c
,
e
,
tp
)
if
not
c
:
IsSetCard
(
0x41
)
or
not
c
:
IsAbleToGraveAsCost
()
or
not
c
:
IsFaceup
()
then
return
false
end
local
code
=
c
:
GetOriginalCode
Rule
()
local
code
=
c
:
GetOriginalCode
()
local
class
=
_G
[
"c"
..
code
]
if
class
==
nil
or
class
.
lvup
==
nil
then
return
false
end
return
Duel
.
IsExistingMatchingCard
(
c25290459
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
class
,
e
,
tp
)
...
...
@@ -26,7 +26,7 @@ function c25290459.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c25290459
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
e
:
SetLabel
(
g
:
GetFirst
():
GetOriginalCode
Rule
())
e
:
SetLabel
(
g
:
GetFirst
():
GetOriginalCode
())
end
function
c25290459
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
end
...
...
c75402014.lua
View file @
69f0abbd
...
...
@@ -53,7 +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
tc
=
g
:
GetFirst
()
if
not
tc
then
return
end
local
mt
=
_G
[
"c"
..
tc
:
GetCode
()]
local
mt
=
_G
[
"c"
..
tc
:
Get
Original
Code
()]
if
mt
.
equip_monster
then
mt
.
equip_monster
(
tc
,
tp
,
c
)
else
...
...
c78063197.lua
View file @
69f0abbd
...
...
@@ -95,7 +95,7 @@ function c78063197.filter(c)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsAbleToChangeControler
()
end
function
c78063197
.
eqfilter
(
c
)
local
m
=
_G
[
"c"
..
c
:
GetCode
()]
local
m
=
_G
[
"c"
..
c
:
Get
Original
Code
()]
return
c
:
IsFaceup
()
and
((
c
:
IsSetCard
(
0x1110
)
and
c
:
IsType
(
TYPE_FUSION
))
or
c
:
IsCode
(
64631466
))
and
m
.
can_equip_monster
(
c
)
end
function
c78063197
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
@@ -113,7 +113,7 @@ function c78063197.eqop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c78063197
.
eqfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
local
tc2
=
g
:
GetFirst
()
local
m
=
_G
[
"c"
..
tc2
:
GetCode
()]
local
m
=
_G
[
"c"
..
tc2
:
Get
Original
Code
()]
if
tc1
:
IsFaceup
()
and
tc1
:
IsRelateToEffect
(
e
)
and
tc1
:
IsControler
(
1
-
tp
)
and
tc2
then
m
.
equip_monster
(
tc2
,
tp
,
tc1
)
end
...
...
c89785779.lua
View file @
69f0abbd
...
...
@@ -34,7 +34,7 @@ function c89785779.filter(c)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsAbleToChangeControler
()
end
function
c89785779
.
eqfilter
(
c
)
local
m
=
_G
[
"c"
..
c
:
GetCode
()]
local
m
=
_G
[
"c"
..
c
:
Get
Original
Code
()]
return
c
:
IsFaceup
()
and
((
c
:
IsSetCard
(
0x1110
)
and
c
:
IsType
(
TYPE_FUSION
))
or
c
:
IsCode
(
64631466
))
and
m
.
can_equip_monster
(
c
)
end
function
c89785779
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
@@ -53,7 +53,7 @@ function c89785779.eqop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c89785779
.
eqfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc2
=
g
:
GetFirst
()
if
not
tc2
then
return
end
local
m
=
_G
[
"c"
..
tc2
:
GetCode
()]
local
m
=
_G
[
"c"
..
tc2
:
Get
Original
Code
()]
if
tc1
:
IsFaceup
()
and
tc1
:
IsRelateToEffect
(
e
)
and
tc1
:
IsControler
(
1
-
tp
)
then
m
.
equip_monster
(
tc2
,
tp
,
tc1
)
end
...
...
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