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
bbf9e034
Commit
bbf9e034
authored
Jan 31, 2017
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CATEGORY_TOHAND
CATEGORY_TOHAND are effects that return a card from field to hand.
parent
1fdc6bc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
c14558127.lua
c14558127.lua
+1
-3
constant.lua
constant.lua
+3
-3
No files found.
c14558127.lua
View file @
bbf9e034
...
...
@@ -14,14 +14,12 @@ function c14558127.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c14558127
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ex1
,
g1
,
gc1
,
dp1
,
dv1
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_TOHAND
)
local
ex2
,
g2
,
gc2
,
dp2
,
dv2
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_SPECIAL_SUMMON
)
local
ex3
,
g3
,
gc3
,
dp3
,
dv3
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_TOGRAVE
)
local
ex4
=
re
:
IsHasCategory
(
CATEGORY_DRAW
)
local
ex5
=
re
:
IsHasCategory
(
CATEGORY_SEARCH
)
local
ex6
=
re
:
IsHasCategory
(
CATEGORY_DECKDES
)
return
((
ex1
and
bit
.
band
(
dv1
,
LOCATION_DECK
)
==
LOCATION_DECK
)
or
(
ex2
and
bit
.
band
(
dv2
,
LOCATION_DECK
)
==
LOCATION_DECK
)
return
((
ex2
and
bit
.
band
(
dv2
,
LOCATION_DECK
)
==
LOCATION_DECK
)
or
(
ex3
and
bit
.
band
(
dv3
,
LOCATION_DECK
)
==
LOCATION_DECK
)
or
ex4
or
ex5
or
ex6
)
and
Duel
.
IsChainDisablable
(
ev
)
end
...
...
constant.lua
View file @
bbf9e034
...
...
@@ -573,11 +573,11 @@ EVENT_CUSTOM =0x10000000 --自訂事件
CATEGORY_DESTROY
=
0x1
--破坏效果
CATEGORY_RELEASE
=
0x2
--解放效果
CATEGORY_REMOVE
=
0x4
--除外效果
CATEGORY_TOHAND
=
0x8
--
加入
手牌效果
CATEGORY_TOHAND
=
0x8
--
回
手牌效果
CATEGORY_TODECK
=
0x10
--回卡组效果
CATEGORY_TOGRAVE
=
0x20
--送去墓地效果
CATEGORY_DECKDES
=
0x40
--
卡组破坏
效果
CATEGORY_HANDES
=
0x80
--
手牌破坏
效果
CATEGORY_DECKDES
=
0x40
--
從卡组送去墓地
效果
CATEGORY_HANDES
=
0x80
--
捨棄手牌
效果
CATEGORY_SUMMON
=
0x100
--含召唤的效果
CATEGORY_SPECIAL_SUMMON
=
0x200
--含特殊召唤的效果
CATEGORY_TOKEN
=
0x400
--含衍生物效果
...
...
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