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
Reinen
ygopro-scripts
Commits
64cff0e9
Commit
64cff0e9
authored
Aug 12, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
065c6abd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
27 deletions
+4
-27
c90590303.lua
c90590303.lua
+3
-27
constant.lua
constant.lua
+1
-0
No files found.
c90590303.lua
View file @
64cff0e9
...
...
@@ -44,16 +44,6 @@ function c90590303.initial_effect(c)
e5
:
SetCondition
(
c90590303
.
discon
)
e5
:
SetOperation
(
c90590303
.
disop
)
c
:
RegisterEffect
(
e5
)
--global check for getting activate position
if
not
c90590303
.
global_check
then
c90590303
.
global_check
=
true
local
ge1
=
Effect
.
GlobalEffect
()
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_CHAINING
)
ge1
:
SetCondition
(
c90590303
.
regcon
)
ge1
:
SetOperation
(
c90590303
.
regop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
c90590303
.
xyz_number
=
41
function
c90590303
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -79,24 +69,10 @@ function c90590303.postg(e,c)
return
c
:
IsFaceup
()
end
function
c90590303
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
(
)
local
cid
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_CHAIN_ID
)
return
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
c
:
IsDefensePos
()
and
c90590303
[
cid
]
local
loc
,
pos
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TRIGGERING_POSITION
)
return
e
:
GetHandler
():
IsDefensePos
(
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
loc
==
LOCATION_MZONE
and
bit
.
band
(
pos
,
POS_DEFENSE
)
~=
0
end
function
c90590303
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateEffect
(
ev
)
end
function
c90590303
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
if
not
re
:
IsActiveType
(
TYPE_MONSTER
)
or
loc
~=
LOCATION_MZONE
then
return
false
end
local
rc
=
re
:
GetHandler
()
if
rc
:
IsRelateToEffect
(
re
)
then
return
rc
:
IsDefensePos
()
else
return
rc
:
IsPreviousPosition
(
POS_DEFENSE
)
end
end
function
c90590303
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
cid
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_CHAIN_ID
)
c90590303
[
cid
]
=
true
end
constant.lua
View file @
64cff0e9
...
...
@@ -214,6 +214,7 @@ CHAININFO_DISABLE_PLAYER =0x400 --无效的玩家
CHAININFO_CHAIN_ID
=
0x800
--连锁ID
CHAININFO_TYPE
=
0x1000
--连锁类型
CHAININFO_EXTTYPE
=
0x2000
--连锁额外类型
CHAININFO_TRIGGERING_POSITION
=
0x4000
--连锁的表示形式
--========== Reset ========== --重置条件(注意:重置条件可以多个相加)
RESET_SELF_TURN
=
0x10000000
--自己回合的階段重置
RESET_OPPO_TURN
=
0x20000000
--对方回合的階段重置
...
...
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