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
412f2176
Commit
412f2176
authored
Dec 19, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
announce card
parent
aaa5de32
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
c50078320.lua
c50078320.lua
+3
-3
c78053598.lua
c78053598.lua
+1
-0
constant.lua
constant.lua
+2
-2
No files found.
c50078320.lua
View file @
412f2176
...
@@ -23,17 +23,17 @@ function c50078320.initial_effect(c)
...
@@ -23,17 +23,17 @@ function c50078320.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c50078320
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50078320
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
rp
==
tp
then
return
false
end
local
ex
,
cg
,
ct
,
cp
,
cv
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_ANNOUNCE
)
local
ex
,
cg
,
ct
,
cp
,
cv
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_ANNOUNCE
)
return
ex
and
cv
==
ANNOUNCE_CARD
return
rp
~=
tp
and
ex
and
bit
.
band
(
cv
,
ANNOUNCE_CARD
)
~=
0
end
end
function
c50078320
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50078320
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c50078320
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50078320
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ex
,
cg
,
ct
,
cp
,
cv
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_ANNOUNCE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
local
ac
=
Duel
.
AnnounceCard
(
tp
)
local
ac
=
Duel
.
AnnounceCard
(
tp
,
cv
)
Duel
.
ChangeTargetParam
(
ev
,
ac
)
Duel
.
ChangeTargetParam
(
ev
,
ac
)
end
end
function
c50078320
.
desfilter
(
c
)
function
c50078320
.
desfilter
(
c
)
...
...
c78053598.lua
View file @
412f2176
...
@@ -10,6 +10,7 @@ function c78053598.initial_effect(c)
...
@@ -10,6 +10,7 @@ function c78053598.initial_effect(c)
end
end
function
c78053598
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c78053598
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_DECK
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_DECK
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
TYPE_MONSTER
)
end
end
function
c78053598
.
filter
(
c
,
code
)
function
c78053598
.
filter
(
c
,
code
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCode
(
code
)
and
c
:
IsAbleToHand
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCode
(
code
)
and
c
:
IsAbleToHand
()
...
...
constant.lua
View file @
412f2176
...
@@ -586,7 +586,7 @@ CATEGORY_DICE =0x2000000 --骰子效果
...
@@ -586,7 +586,7 @@ CATEGORY_DICE =0x2000000 --骰子效果
CATEGORY_LEAVE_GRAVE
=
0x4000000
--离开墓地效果
CATEGORY_LEAVE_GRAVE
=
0x4000000
--离开墓地效果
CATEGORY_LVCHANGE
=
0x8000000
--改变等级效果
CATEGORY_LVCHANGE
=
0x8000000
--改变等级效果
CATEGORY_NEGATE
=
0x10000000
--使发动无效效果
CATEGORY_NEGATE
=
0x10000000
--使发动无效效果
CATEGORY_ANNOUNCE
=
0x20000000
--
宣言
效果
CATEGORY_ANNOUNCE
=
0x20000000
--
發動時宣言卡名的
效果
--Hint
--Hint
HINT_EVENT
=
1
HINT_EVENT
=
1
HINT_MESSAGE
=
2
HINT_MESSAGE
=
2
...
@@ -703,7 +703,7 @@ ACTIVITY_ATTACK =5 --
...
@@ -703,7 +703,7 @@ ACTIVITY_ATTACK =5 --
ACTIVITY_BATTLE_PHASE
=
6
-- not available in custom counter
ACTIVITY_BATTLE_PHASE
=
6
-- not available in custom counter
ACTIVITY_CHAIN
=
7
-- only available in custom counter
ACTIVITY_CHAIN
=
7
-- only available in custom counter
--announce type(宣言类型,CATEGORY_ANNOUNCE的OperationInfo的target_param)
--announce type(宣言类型,CATEGORY_ANNOUNCE的OperationInfo的target_param)
ANNOUNCE_CARD
=
1
--宣言卡片
ANNOUNCE_CARD
=
0x7
--宣言卡片
--special cards
--special cards
CARD_MARINE_DOLPHIN
=
78734254
--海洋海豚
CARD_MARINE_DOLPHIN
=
78734254
--海洋海豚
CARD_TWINKLE_MOSS
=
13857930
--光輝苔蘚
CARD_TWINKLE_MOSS
=
13857930
--光輝苔蘚
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