Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Ai
ygopro-222DIY-cards
Commits
52a76625
Commit
52a76625
authored
Nov 11, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes for honrai
parent
e3a55b28
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
10 deletions
+16
-10
expansions/script/c1156015.lua
expansions/script/c1156015.lua
+1
-1
expansions/script/c33700784.lua
expansions/script/c33700784.lua
+5
-5
expansions/script/c33700785.lua
expansions/script/c33700785.lua
+9
-3
expansions/script/c77765004.lua
expansions/script/c77765004.lua
+1
-1
No files found.
expansions/script/c1156015.lua
View file @
52a76625
...
...
@@ -47,7 +47,7 @@ function c1156015.initial_effect(c)
--
end
--
function
c1156015
.
c
h
nfilter
(
c
)
function
c1156015
.
c
k
nfilter
(
c
)
return
c
:
GetOriginalCode
()
==
77765004
and
not
c
:
IsDisabled
()
end
function
c1156015
.
lkfilter
(
c
,
lc
,
tp
)
...
...
expansions/script/c33700784.lua
View file @
52a76625
...
...
@@ -5,18 +5,18 @@ if not RSVoVal then
RSVoVal
=
RSVoVal
or
{}
rsvo
=
RSVoVal
--other link material bug repair
function
Auxiliary
.
LCheckOtherMaterial
(
c
,
mg
,
lc
)
local
le
=
{
c
:
IsHasEffect
(
EFFECT_EXTRA_LINK_MATERIAL
)}
function
Auxiliary
.
LCheckOtherMaterial
(
c
,
mg
,
lc
,
tp
)
local
le
=
{
c
:
IsHasEffect
(
EFFECT_EXTRA_LINK_MATERIAL
,
tp
)}
if
#
le
==
0
then
return
true
end
for
_
,
te
in
pairs
(
le
)
do
local
f
=
te
:
GetValue
()
if
not
f
or
f
(
te
,
lc
,
mg
)
then
return
true
end
if
not
f
or
f
(
te
,
lc
,
mg
,
c
)
then
return
true
end
end
return
false
end
function
Auxiliary
.
LExtraFilter
(
c
,
f
,
lc
)
if
c
:
IsLocation
(
LOCATION_ONFIELD
)
and
not
c
:
IsFaceup
()
then
return
false
end
return
c
:
IsHasEffect
(
EFFECT_EXTRA_LINK_MATERIAL
)
and
(
c
:
IsCanBeLinkMaterial
(
lc
)
or
((
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_SPELL
)
~=
0
or
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_TRAP
)
~=
0
)
and
not
c
:
IsType
(
TYPE_MONSTER
)))
and
(
not
f
or
f
(
c
))
return
c
:
IsHasEffect
(
EFFECT_EXTRA_LINK_MATERIAL
,
tp
)
and
(
c
:
IsCanBeLinkMaterial
(
lc
)
or
((
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_SPELL
)
~=
0
or
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_TRAP
)
~=
0
)
and
not
c
:
IsType
(
TYPE_MONSTER
)))
and
(
not
f
or
f
(
c
))
end
function
rsvo
.
LPLinkFunction
(
c
)
c
:
EnableReviveLimit
()
...
...
@@ -178,4 +178,4 @@ function cm.mattg(e,c)
end
---------------------
end
\ No newline at end of file
end
expansions/script/c33700785.lua
View file @
52a76625
...
...
@@ -61,9 +61,15 @@ end
function
cm
.
lfilter
(
c
)
return
c
:
IsLinkRace
(
RACE_CYBERSE
+
RACE_MACHINE
)
or
c
:
IsType
(
TYPE_SPELL
)
end
function
cm
.
matval
(
e
,
c
,
mg
)
return
c
:
IsCode
(
m
)
function
cm
.
matval
(
e
,
c
,
mg
,
mc
)
if
c
~=
e
:
GetHandler
()
then
return
false
end
local
counter_effects
=
{
mc
:
IsHasEffect
(
77765004
)}
for
_
,
te
in
pairs
(
counter_effects
)
do
local
vf
=
te
:
GetValue
()
if
not
vf
or
vf
(
te
,
c
)
then
return
false
end
end
return
true
end
function
cm
.
mattg
(
e
,
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SPELL
)
end
\ No newline at end of file
end
expansions/script/c77765004.lua
View file @
52a76625
...
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
for
_
,
code
in
ipairs
({
EFFECT_CANNOT_BE_XYZ_MATERIAL
,
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
,
EFFECT_CANNOT_BE_FUSION_MATERIAL
,
EFFECT_CANNOT_BE_LINK_MATERIAL
})
do
for
_
,
code
in
ipairs
({
EFFECT_CANNOT_BE_XYZ_MATERIAL
,
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
,
EFFECT_CANNOT_BE_FUSION_MATERIAL
,
EFFECT_CANNOT_BE_LINK_MATERIAL
,
m
})
do
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
code
)
...
...
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