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
19e063e6
Commit
19e063e6
authored
Jan 08, 2019
by
nanahira
Committed by
GitHub
Jan 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (#1132)
* fix c88086137's sequence check * considering mr3.. * typo * stupid vscode
parent
948faeb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
c88086137.lua
c88086137.lua
+5
-2
No files found.
c88086137.lua
View file @
19e063e6
...
@@ -13,9 +13,12 @@ end
...
@@ -13,9 +13,12 @@ end
function
c88086137
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c88086137
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
loc
,
seq
,
p
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TRIGGERING_SEQUENCE
,
CHAININFO_TRIGGERING_CONTROLER
)
local
loc
,
seq
,
p
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TRIGGERING_SEQUENCE
,
CHAININFO_TRIGGERING_CONTROLER
)
if
not
bit
.
band
(
loc
,
LOCATION_ONFIELD
)
then
return
false
end
if
loc
&
LOCATION_ONFIELD
==
0
then
return
false
end
if
loc
==
LOCATION_SZONE
then
if
seq
>
4
then
return
false
end
seq
=
seq
+
8
end
if
p
==
1
-
tp
then
seq
=
seq
+
16
end
if
p
==
1
-
tp
then
seq
=
seq
+
16
end
if
loc
==
LOCATION_SZONE
then
seq
=
seq
+
8
end
return
bit
.
extract
(
c
:
GetColumnZone
(
LOCATION_ONFIELD
),
seq
)
~=
0
return
bit
.
extract
(
c
:
GetColumnZone
(
LOCATION_ONFIELD
),
seq
)
~=
0
and
(
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
and
Duel
.
IsChainNegatable
(
ev
)
and
(
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
and
Duel
.
IsChainNegatable
(
ev
)
end
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