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
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
Commits
e827b705
Commit
e827b705
authored
Apr 15, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ff1c2cc5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
9 deletions
+16
-9
c2930675.lua
c2930675.lua
+4
-3
c62530723.lua
c62530723.lua
+4
-3
c98935722.lua
c98935722.lua
+3
-3
utility.lua
utility.lua
+5
-0
No files found.
c2930675.lua
View file @
e827b705
...
@@ -43,15 +43,16 @@ function c2930675.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,15 +43,16 @@ function c2930675.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c2930675
.
cfilter
(
c
,
seq2
)
function
c2930675
.
cfilter
(
c
,
seq2
)
local
seq1
=
c
:
GetSequence
()
local
seq1
=
aux
.
MZoneSequence
(
c
:
GetSequence
())
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10c
)
and
seq1
==
4
-
seq2
and
(
seq1
==
4
-
seq2
or
(
seq2
==
5
and
seq1
==
3
)
or
(
seq2
==
6
and
seq1
==
1
))
end
end
function
c2930675
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c2930675
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
loc
,
seq
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TRIGGERING_SEQUENCE
)
local
loc
,
seq
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TRIGGERING_SEQUENCE
)
seq
=
aux
.
MZoneSequence
(
seq
)
return
rp
~=
tp
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
loc
==
LOCATION_SZONE
return
rp
~=
tp
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
loc
==
LOCATION_SZONE
and
Duel
.
IsExistingMatchingCard
(
c2930675
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
seq
)
and
Duel
.
IsExistingMatchingCard
(
c2930675
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
seq
)
end
end
function
c2930675
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c2930675
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
2930675
)
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
end
end
c62530723.lua
View file @
e827b705
...
@@ -58,15 +58,16 @@ function c62530723.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,15 +58,16 @@ function c62530723.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c62530723
.
cfilter
(
c
,
seq2
)
function
c62530723
.
cfilter
(
c
,
seq2
)
local
seq1
=
c
:
GetSequence
()
local
seq1
=
aux
.
MZoneSequence
(
c
:
GetSequence
())
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10c
)
and
seq1
==
4
-
seq2
and
(
seq1
==
4
-
seq2
or
(
seq2
==
5
and
seq1
==
3
)
or
(
seq2
==
6
and
seq1
==
1
))
end
end
function
c62530723
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c62530723
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
loc
,
seq
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TRIGGERING_SEQUENCE
)
local
loc
,
seq
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TRIGGERING_SEQUENCE
)
seq
=
aux
.
MZoneSequence
(
seq
)
return
rp
~=
tp
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
loc
&
LOCATION_SZONE
==
LOCATION_SZONE
return
rp
~=
tp
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
loc
&
LOCATION_SZONE
==
LOCATION_SZONE
and
Duel
.
IsExistingMatchingCard
(
c62530723
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
seq
)
and
Duel
.
IsExistingMatchingCard
(
c62530723
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
seq
)
end
end
function
c62530723
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c62530723
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
62530723
)
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
end
end
c98935722.lua
View file @
e827b705
...
@@ -72,12 +72,12 @@ function c98935722.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -72,12 +72,12 @@ function c98935722.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c98935722
.
cfilter
(
c
,
seq2
)
function
c98935722
.
cfilter
(
c
,
seq2
)
local
seq1
=
c
:
GetSequence
()
local
seq1
=
aux
.
MZoneSequence
(
c
:
GetSequence
())
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10c
)
and
seq1
==
4
-
seq2
and
(
seq1
==
4
-
seq2
or
(
seq2
==
5
and
seq1
==
3
)
or
(
seq2
==
6
and
seq1
==
1
))
end
end
function
c98935722
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c98935722
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
loc
,
seq
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TRIGGERING_SEQUENCE
)
local
loc
,
seq
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TRIGGERING_SEQUENCE
)
seq
=
aux
.
MZoneSequence
(
seq
)
return
rp
~=
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
loc
==
LOCATION_MZONE
return
rp
~=
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
loc
==
LOCATION_MZONE
and
Duel
.
IsExistingMatchingCard
(
c98935722
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
seq
)
and
Duel
.
IsExistingMatchingCard
(
c98935722
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
seq
)
end
end
...
...
utility.lua
View file @
e827b705
...
@@ -1903,6 +1903,11 @@ function Auxiliary.GetColumn(c,p)
...
@@ -1903,6 +1903,11 @@ function Auxiliary.GetColumn(c,p)
else
return
nil
end
else
return
nil
end
if
c
:
IsControler
(
p
or
0
)
then
return
seq
else
return
4
-
seq
end
if
c
:
IsControler
(
p
or
0
)
then
return
seq
else
return
4
-
seq
end
end
end
function
Auxiliary
.
MZoneSequence
(
seq
)
if
seq
==
5
then
return
1
end
if
seq
==
6
then
return
3
end
return
seq
end
--card effect disable filter(target)
--card effect disable filter(target)
function
Auxiliary
.
disfilter1
(
c
)
function
Auxiliary
.
disfilter1
(
c
)
return
c
:
IsFaceup
()
and
not
c
:
IsDisabled
()
and
(
not
c
:
IsType
(
TYPE_NORMAL
)
or
c
:
GetOriginalType
()
&
TYPE_EFFECT
~=
0
)
return
c
:
IsFaceup
()
and
not
c
:
IsDisabled
()
and
(
not
c
:
IsType
(
TYPE_NORMAL
)
or
c
:
GetOriginalType
()
&
TYPE_EFFECT
~=
0
)
...
...
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